Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Useless <c>unless</c>

by davidrw (Prior)
on Aug 05, 2005 at 23:25 UTC ( [id://481396]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Useless <c>unless</c>
in thread Useless unless

Can't use the ternary operator where the if/unless/otherwise is being used as a modifier.
modifier? do you mean assignment like my $x = $A ? $B : $C; ?
The trap is simply that it is unless rather than if.
How is that different a statement being !$x rather than $x and just missing/misreading the 'bang'?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found