in reply to Pragma-like package
is equivalent touse Package LIST;
so, you can use Reporting::import for that sort of thing:BEGIN { require Package; Package->import LIST; }
package Reporting; my @sendtasks; sub import { my $class = shift; for my $task (@_) { .. do the things you want to do .. } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pragma-like package
by dbw (Beadle) on Aug 20, 2007 at 18:54 UTC |