Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: If Statement

by defyance (Curate)
on Nov 04, 2002 at 18:55 UTC ( [id://210246]=note: print w/replies, xml ) Need Help??


in reply to If Statement

Would this not work without the brackets?
$a = $b if $a != $b;
This is valid for such a simple operation according to the Pocket Ref. Infact, one of the first examples of control statments looks like so:
expr1 if expr2 ; expr1 foreach list ;
Did I read this wrong?

UPDATE:Guess I didn't read it wrong!

-- Can't never could do anything, so give me and inch, I'll make it a mile.

Log In?
Username:
Password:

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

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

    No recent polls found