in reply to unsure how to use variable
our $holding1 = "green"; our $holding2 = "blue"; our $holding3 = "yellow"; for (my $count = 3; $count >= 1; $count--) { print do {no strict 'refs'; ${"holding$count"}}, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unsure how to use variable
by Your Mother (Archbishop) on Feb 18, 2012 at 06:11 UTC |