LPM: unless ($line =~ /^#/)
Graydon Dodson
grdodson at lexmark.com
Fri Dec 29 14:58:45 CST 2000
> Can someone who knows perlese explain
>
> unless ($line =~ /^#/)
>
> does this mean do the unless if the line doesn't start with a #??
>
> Im not sure
"unless" can be thought as equivalant to "if !" (if not).
Therefore
unless ($line =~ /^#/)
is the same as
if !($line =~ /^#/)
or in words;
"if $line does not start with a '#'".
Hope this helps
Graydon Dodson grdodson at lexmark.com
Lexmark International Inc.
More information about the Lexington-pm
mailing list