LPM: unless ($line =~ /^#/)

Rich Bowen rbowen at rcbowen.com
Fri Dec 29 14:53:27 CST 2000


Ronald Edward Petty wrote:
> 
> Can someone who knows perlese explain
> 
> unless ($line =~ /^#/)
> 
> does this mean do the unless if the line doesn't start with a #??

It means "unless ($line starts with #) ..."

Which translates into

if the line does not start with #, do the following.

unless is the negation of if

-- 
Rich Bowen --  Director of Web Application Development
http://www.cre8tivegroup.com/  --  rich at cre8tivegroup.com
Have trouble remembering things?   http://www.idforgetmyhead.com/



More information about the Lexington-pm mailing list