Yes, it can be made to work without the double colon. ;-)
package common; require common::sense; *import = sub { $code = common::sense->can('import') and goto $code }
use common sense; print $foo;
[tai@miranda (pts/0) ~]$ perl -Ilib example.pl Global symbol "$foo" requires explicit package name at example.pl line + 2. Execution of example.pl aborted due to compilation errors.
In reply to Re^6: Doubt in Eval
by tobyink
in thread Doubt in Eval
by rajan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |