We don't bite newbies here... much | |
PerlMonks |
Re: loop to allocate values to variablesby gryphon (Abbot) |
on Aug 17, 2005 at 15:27 UTC ( [id://484469]=note: print w/replies, xml ) | Need Help?? |
Greetings travisbickle34, First off, I would strongly recommend you try to redesign your code a bit to not require this. As merlyn likes to point out, when you have to define 20 variables with my, something's wrong. However, if you must do it this way, you could try:
Could you post a little bit more of the problem you're trying to solve? I'd rather recommend a better way than what I've posted above. gryphon
In Section
Seekers of Perl Wisdom
|
|