Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: using strict and functions

by rob_au (Abbot)
on Jan 18, 2002 at 04:27 UTC ( #139683=note: print w/replies, xml ) Need Help??


in reply to Re: using strict and functions
in thread using strict and functions

One point here ... Your use of the loop construct of for (;;) is very C-stylish and possibly not the best way to perform a simple forward iteration as your suggest. A more straight-forward way would be to make use of the range operator. eg.
for (0..5) { # stuff goes here }

If you require lexical scoping of the iteration variable, you can do so with the variable name and the my keyword.

This syntax and the range operator are discussed in perlsyn and perlop respectively.

 

perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://139683]
help
Chatterbox?
[marioroy]: Discipulus Hubris, that's not me :( :(, I do not know the reason, but was inspired years ago to do MCE. Back then made a promise that I would hang in there no matter the difficulties or hurdles along the way. This is the journey that is almost completed
[choroba]: software is never completed
[choroba]: becuase the hardware always changes beneath it, at least
[Discipulus]: yes i think I know a bit about you: if I would had the competence and the will to accomplish something like MCE.. i'd be running here and there with flags and t-shirt about.. ;=)
Lady_Aleena rolls over on the sofa, pulling a light blanket over her, and falls to sleep.
[Discipulus]: but world is fun beacause it is manifold
[Discipulus]: anyway congratulations marioroy imho your work is very good and useful

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-05-26 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?