Locally disable the strict (UPDATE: NO, DON'T! Praises go to Hofmator for correcting this goof):
Or use eval:#!/usr/bin/perl -w use strict; my $i = "test"; my $test = "success"; { no strict 'refs'; print "$$i\n"; }
#!/usr/bin/perl -w use strict; my $i = "test"; my $test = "success"; print eval qq{"\$$i\\n"};
--bwana147
In reply to Re: using strict refs
by bwana147
in thread using strict refs
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |