Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Actually, it's worse than that

by mrpeabody (Friar)
on Jan 02, 2004 at 19:44 UTC ( #318402=note: print w/replies, xml ) Need Help??

in reply to Re^4: = rather than =~ ? (too brief?)
in thread = rather than =~ ?

One should never, ever write "my $foo = 1 if /(foo)/;". From perlsub:

NOTE: The behaviour of a "my" statement modified with a statement modifier conditional or loop construct (e.g. "my $x if ...") is undefined. The value of the "my" variable may be "undef", any previously assigned value, or possibly anything else. Don't rely on it. Future versions of perl might do something different from the version of perl you try it out on. Here be dragons.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2016-10-23 07:39 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (300 votes). Check out past polls.