Well the error message says it all... however if you know what you're doing (and chances are you can do differently, e.g. through hashes or proper sub references, just do a Super Search):
#!/usr/bin/perl -w use strict; sub foobar { print "Here I am!\n"; } my $var = 'bar'; no strict "refs"; &{'foo'.$var};
You can lexically enable and disable strict as you need, always bearing in mind that you must know what you're doing...
-- TMTOWTDI
In reply to Re: Strict, strings and subroutines
by trantor
in thread Strict, strings and subroutines
by hatter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |