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

Re: Uninitialized value

by BUU (Prior)
on May 10, 2002 at 22:06 UTC ( [id://165788]=note: print w/replies, xml ) Need Help??


in reply to Uninitialized value

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: Uninitialized value
by CharlesClarkson (Curate) on May 11, 2002 at 13:05 UTC

    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.
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-25 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found