Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Breaking The Rules

by Unanimous Monk (Sexton)
on May 30, 2006 at 22:17 UTC ( #552643=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    my $var=1;
    print $var if defined $var;
    
  2. or download this
    use warnings;
    my $var=1;
    print $var unless $var eq undef;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://552643]
help
Chatterbox?
[Corion]: Hurr - use lib glob '/opt/perl/foo*'; - I'm not really sure if that is sane ;-D

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-01-19 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.