[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Unexpected behavior from tr function



Richard,

$_ is a reserved statement in Perl signifying an input line character.  
For example,

   while (<>) {
        $line = $_;  # each line will have the value of $_
        print "$line\n";
   }

  In order for it to be interpreted as a literal string, you must escape it with a backslash.


--na'im


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org