Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Useless unless

by ysth (Canon)
on Aug 07, 2005 at 04:52 UTC ( [id://481613]=note: print w/replies, xml ) Need Help??


in reply to Useless unless

a if (my $o) = b; c unless $o;
Um, that's a list assignment in scalar context you've got there; probably not what you intended:
$ perl -wl print "if!" if (my $o) = 0; print "unless!" unless $o; __END__ if! unless!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found