Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Look ahead and join if the line begins with a +

by broquaint (Abbot)
on Apr 11, 2002 at 10:36 UTC ( [id://158277]=note: print w/replies, xml ) Need Help??


in reply to Re: Look ahead and join if the line begins with a +
in thread Look ahead and join if the line begins with a +

Just a small note - local() automatically undef()ines whatever gets passed to it.
$foo = "I am a package var, yes I am"; { local $foo; print "\$foo is no more\n" if not defined $foo; } print qq(\$foo returns!\n) if defined $foo; __output__ $foo is no more $foo returns!

HTH

broquaint

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://158277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (10)
As of 2024-04-18 14:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found