Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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.


Comment on Re: How to declare variables per loop
Download Code

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 scrutinizing the Monastery: (15)
As of 2014-09-18 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (116 votes), past polls