Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Convert loop and if constructs from C to Perl

by vladdrak (Monk)
on Dec 16, 2006 at 09:10 UTC ( #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? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2023-02-06 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?