On Fri, Nov 27, 2009 at 8:34 PM, Majian <jian...@gmail.com> wrote: > Could you explain it ? > > What is the meaning of the $.? And Why use the "%2" operator? >
$. means the line number, see perldoc perlvar and look for $. %2 means the modulus operator. # perl -le 'print $_%2 for 0..3' 0 1 0 1 HTH. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/