bzzt wrote:
The followin code doesn't work if I use strict. Is the only solution not to use strict. #!/usr/local/bin/perl use strict; my $blues; $a = "blues";
1) you didn't do my $a; 2) $a should be avoided because its used by perl (perldoc -f sort)
$blues = "jazz"; print ${$a};
This is a soft reference (IE it uses the name of the variable as the reference and not a ref (perldoc -f ref)
Try this: (It uses a hard ref, which is strict safe)
perl -mstrict -we 'my $blues = "jazz";my $test = \$blues;print ${$test}";'
perldoc perlref
for more info
HTH :)
Lee.M - JupiterHost.Net
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>