BEGIN { package Whatever; $INC{'Whatever.pm'} = __FILE__; use Exporter 'import'; @EXPORT_OK = qw< ... >; ... } package main; use Whatever qw< ... >; ...
- tye
In reply to Re: Exporting namespace elements when package is in same file as main (BEGIN)
by tye
in thread Exporting namespace elements when package is in same file as main
by puterboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |