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 taking refuge in the Monastery: (17)
As of 2015-07-30 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (272 votes), past polls