http://qs1969.pair.com?node_id=252490


in reply to space saving wanted!

Have you considered using an array? If thats really not possible, you could:
#!perl $calc1 = 1; $calc2 = 15; $calc3 = 7.5; $calc4 = 9; for (1..4) { my $var = 'calc' . $_; print $var, "\t", $$var, "\n"; } __END__ calc1 1 calc2 15 calc3 7.5 calc4 9
But that really is horrible. You should definately be using an array.

Smitz