Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I wondered if there was a neat way of foreaching through a list of varibles that are names sequentially.
If there is this would save me lots of typing. cheers x
e.g.
my ($calc1, $calc2, $calc3, $calc4); foreach ( #ITERATE THROUGH EACH CALC VARIABLE ) { print "WHATEVER......"; }
Back to
Seekers of Perl Wisdom