Some Nice Perl Tips

Alias of perl builtin variables
==========================================================
use English

The English module provides aliases for the Perl builtin variables. $ARG is equivalent to $_
$1 equivalent to $MATCH
$` equivalent to $PREMATCH
$’ equivalent to $POSTMATCH

Locate the source path of a perl script during run time
============================================
use FindBin;
$FindBin::Bin

Leave a Reply

Your email address will not be published. Required fields are marked *