Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-11-27 15:50 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls