[UKLUG] Re: LPM: unless ($line =~ /^#/)
Ronald Edward Petty
repett0 at sweb.uky.edu
Fri Dec 29 14:58:19 CST 2000
so can u do
unless()
{
}
else
{
}
and else be the say the opposite? kinda like if.
Ron
On Fri, 29 Dec 2000, Rich Bowen wrote:
> 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/
>
>
> _______________________________________________
> UKLUG website: http://www.uky.edu/StudentOrgs/UKLUG
> UKLUG mailing list addr: Llug at slug.louisville.edu
> mailing list info: http://slug.louisville.edu/cgi-bin/mailman/listinfo/llug
>
More information about the Lexington-pm
mailing list