Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: eval with semicolon

by Tanktalus (Canon)
on Oct 02, 2005 at 15:20 UTC ( [id://496759]=note: print w/replies, xml ) Need Help??


in reply to eval with semicolon

You don't. Well, not any more than you need it after, say, $x++.

eval is not a flow-control construct (like "if" or "unless" or "foreach", etc.), but a function. A function that takes a block. Like any function that takes parameters, you must separate it from the next command with a semicolon. If it's the last statement in a block, perl makes that semicolon optional.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-26 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found