in reply to Variable name

Are you, by any chance, using a lexical ('my') variable for $fooSymbolic references only work with package variables:

#!/usr/bin/perl use strict; use warnings; our $foo="foo"; my $bar="f"; no strict 'refs'; print ${$bar.'oo'}, "\n";

(BTW, just in case you're intending to create enumerated variables like $var1, $var2, etc., consider using an array instead...)

Replies are listed 'Best First'.
Re^2: Variable name
by nsteiner (Novice) on Dec 08, 2008 at 15:15 UTC
    It worked !
    Thanks a lot.