![]() The most direct way to do that is to install ActivePerl ( ). So, to run Perl scripts on Windows, you will need to install Perl first. Windows doesn’t come preinstalled with Perl. The output is a web page that says “Hello.” Print "Content-type: text/html\r\n\r\n" print "Hello!" If you have trouble, you can try using this very simple script as a starting point: #!/usr/bin/perl With this done, you should be able to use Safari to surf to the page on your local web server ( and see the output of the script. % chmod 755 / Library/WebServer/CGI-Executables/ The following shell commands copy a file called to the CGI directory and change its permissions to enable execution: % cp / Library/WebServer/CGI-Executables/ Make sure the script is executable by changing its Unix permissions. Once Apache is active, you can copy your Perl script to the /Library/ WebServer/CGI-Executables/directory. ![]() You will need to enable it by using the Personal Web Sharing option in the Sharing section of System Preferences. This is a toolkit for using AppleScript automation to drive applications directly from Perl.Īpache comes preinstalled on Mac OS X. This is a free, platform-independent windowing toolkit that makes it easy to build graphical user interfaces (GUIs) that look reasonably good and respond well. This is a very handy module when you are debugging Perl scripts. This is simply the easiest way to get a dump of the contents of any Perl variable. This parses RSS feeds into objects to make it easier to navigate them. These modules, and many more in the XML family of modules, provide a wide variety of tools for reading, writing, and navigating XML documents. XML::DOM, XML::Parser, XML::Simple, and XML::XPath XML::RSS for the Atom syndication standard. This supports building RSS 2.0 feeds with enclosure tags using an object-oriented interface. Net::SFTP module, but for the older FTP file-trans-fer standard. ![]() You can log into SSH hosts, navigate around, and upload and download files using simple function calls. The SFTP module gives you access to the full SFTP secure file-transfer standard. You can automate any complex web task with LWP::UserAgent. With this module, you can simulate a web browser surfing to a site, logging in, getting cookies, making requests, and then leaving. This is the more functional version of LWP::Simple. This library allows you to fetch any URL with a single function call. This reads and writes information from an Ogg Vorbis file’s header. This retrieves information from MP4 ( AAC) format files. With MP3::Info your script can read and write the ID3 tags in MP3 files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |