Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Open in for loop/array structure

by jwkrahn (Abbot)
on Jun 03, 2008 at 20:52 UTC ( [id://690005]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Open in for loop/array structure
in thread Open in for loop/array structure

why did you have to put the first chunk of numbers in single quotes (i.e. '00' .. '18'), but not the rest of them?

I used the quotes because without them perl would remove the leading zeros.

how in the for loop, the code knows to use each name in the array.

That is the way that for/foreach loops work.

Log In?
Username:
Password:

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

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

    No recent polls found