In a message dated 7/28/2004 4:28:12 PM Eastern Standard Time, [EMAIL PROTECTED] writes: >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"; >$blues = "jazz"; >print ${$a};
This is using a soft, or symbolic, reference. Avoid using them. perldoc perlref explains: [Symbolic References are] powerful, and slightly dangerous, in that it's possible to intend (with the utmost sincerity) to use a hard reference, and accidentally use a symbolic reference instead. To protect against that, you can say use strict 'refs'; -- -will http://www.wgunther.tk (the above message is double rot13 encoded for security reasons) Most Useful Perl Modules -strict -warnings -Devel::DProf -Benchmark -B::Deparse -Data::Dumper -Clone -Perl::Tidy -Beautifier -DBD::SQLite