Dollar Underscore Is Evil

The DollarUnderscore and related variables are all evil. The following is a use of two of them in PerlLanguage at once:

    while(<>) {
        if /begin\w+(.*?)\w+end/ {
             print $1, "\n";
        }
    }


CategoryRant*


CategoryPerl


EditText of this page (last edited December 24, 2010) or FindPage with title or text search