Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Convert loop and if constructs from C to Perl

by vladdrak (Monk)
on Dec 16, 2006 at 09:10 UTC ( [id://590183]=note: print w/replies, xml ) Need Help??


in reply to Convert loop and if constructs from C to Perl

Perl requires you to always enclose if/elsif/else affected code in in curly braced blocks... that is, unless they occur in a post context e.g. 'print 1 if $a;'.
  • Comment on Re: Convert loop and if constructs from C to Perl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found