Just another Perl shrine | |
PerlMonks |
Re: dynamically initializing variables with perlby busunsl (Vicar) |
on Jan 07, 2003 at 07:11 UTC ( [id://224884]=note: print w/replies, xml ) | Need Help?? |
Looks like you want to have variables called $C1, $C2, a.s.o. Normally you use an array for things like that: or without the for loop: Update: Changed $C[0] to $C[$i] Thanks to Hofmator for this catch.
In Section
Seekers of Perl Wisdom
|
|