If you’re stuck with this error when trying to compile your own apps:
No rule to make target `/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE/config.h’, needed by `Makefile’.
You will probably find that your Leopard installation is lacking some necessary files.
If you copy the files from your old(er) installation of perl (5.8.6) you should be able to get around this …
sudo cp /System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE/* [...]
CPAN provides a great module for Perl called WWW:Mechanize. To quote CPAN:
WWW::Mechanize, or Mech for short, helps you automate interaction with a website. It supports performing a sequence of page fetches including following links and submitting forms. Each fetched page is parsed and its links and forms are extracted. A link or a form can [...]
Amazon web services development domain have provided some neat perl code here such that you can simply put, get or delete objects inside an Amazon S3 storage bucket with something like this:
./s3curl.pl –id=[aws-access-key-id] –key=[aws-secret-access-key] — http://s3.amazonaws.com/[bucket-name]/[key-name]
I modified the author’s code to make it a bit more win32 friendly, as it is no surprise that [...]
I often use a combination of cygwin with ssh to remotely manage windows servers, as I find this to be a quicker (and hopefully safer) method of access to my windows boxes. To that end, I often need to check windows application event logs. Typically you’d use the mmc, but all I want to do [...]
If you have the requirement to manipulate multitudes of input messages / log files / data templates with dynamic variables, you may be left wondering what is the best approach. One could argue in a friendly way for hours about which language is the best to achieve this outcome (almost like pc vs. mac), but [...]
When load testing MQ you are no doubt going to need to be able to monitor queue statistics in terms of how many messages have been enqueued and dequeued within a given timeframe. You can use native runmqsc commands to query queues in order to find current queue depths but this is just a snapshot [...]
The try…catch…finally clause found in languages like Java are very handy for error handling. In scripting languages like Perl you can achieve the same effect using the eval function as the following code snippet demonstrates.
eval{ &yourSubRoutine($parameters); };
$@ ? $yourLogObject->yourErrorMethod(“I failed with reason: $@”) ):
$yourLogObject->yourTraceMethod(“Everything was good: $?”) );