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

Re: Re: Uninitialized value

by CharlesClarkson (Curate)
on May 11, 2002 at 13:05 UTC ( #165869=note: print w/replies, xml ) Need Help??


in reply to Re: Uninitialized value
in thread Uninitialized value

Your missing somthing. Test it.

my $junk; print 1 + ($junk || 0);
returns 1, no warnings.
my $junk = 11; print 1 + ($junk || 0);
returns 12, no warnings.
my $junk = 0; print 1 + ($junk || 15);
returns 16, no warnings, not 1 as ravendarke wanted.

HTH,
Charles K. Clarkson
--
Head Bottle Washer,
Clarkson Energy Homes, Inc.

Replies are listed 'Best First'.
Re: Re: Re: Uninitialized value
by BUU (Prior) on May 11, 2002 at 20:10 UTC
    oh. How odd.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://165869]
help
Chatterbox?
[usemodperl]: this is crazy, the web is broken!
[usemodperl]: just because of banking apps on free wifi, and porn, i guess...
usemodperl thinks every1 should serve HTTP on port 80 incase we don't care about encryption, right? wtf

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2018-06-24 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?