Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How to declare variables per loop

by ~~David~~ (Hermit)
on Oct 11, 2011 at 14:03 UTC ( #930824=note: print w/ replies, xml ) Need Help??


in reply to How to declare variables per loop

You should probably just use a hash instead of a million variables. Something like this would work:
my $file_location_of; $file_location_of->{abc_this_01} = "C:/Stuff/abc_this_01.csv"; ...
Or you could actually write a loop to populate the hash. That way you wouldn't have to write a bunch of the same stuff over and over.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2016-06-26 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (330 votes). Check out past polls.