The grepping part ensures that we do not try to export functions that do not really exist (-auth and such are just pragmas, the corresponding functions do not exist).sub import { # … Auth->export_to_level(1, grep { $_ !~ /^-/ } @_); }
In reply to Re^2: Configuring module by import keyword
by zoul
in thread Configuring module by import keyword
by zoul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |