Automated Internet Explorer screenshots using Win32::OLE
by Sinan Unur
With Perl it is always easier than you think
Hello berrybrew, the Strawberry Perl version manager
A fruitier perlbrew for Windows
The ultimate guide to Windows and Unix file line ending conversion in Perl
Think you know how to fix CRLF in one line of Perl? There might be more to it than you think ...
How to redirect and restore STDOUT
STDOUT is the Perl filehandle for printing standard output. Unless a filehandle is specified, all standard printed output in Perl will go to the terminal. Because STDOUT is just a global variable, it can be redirected and restored. Want to implement logging on a program without changing every print statement in the source code? Want to capture the standard output of a perl CRON job? Read on.
Test if the user is root
When Perl is executing a program, it maintains the user id of the process owner in a global variable ($<). When a Perl program is executed by root or a user with root privileges (e.g. using the sudo command), the user id variable is always set to zero. This can be checked at the command line: