You want to eval
is this what you want?
#!/usr/bin/perl -w use strict; my $string0 = "Jessy"; my $string1 = "Bob"; my $string2 = "Nancy"; my $num = 0; while( $num != 3 ) { print eval ('$string' . $num),$/; $num++; } __END__ Jessy Bob Nancy
In reply to Re: Printing Variable Variables
by sk
in thread Printing Variable Variables
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |