note
aufflick
good point - completely correct.<p>
taking a look at the -M syntax in perlrun, a cute thing you could do is to implement (or override) import() in your package, and respond to triggers passed in:<p>
<code>package DoIt;
sub import {
&run if( $_[0] eq 'run' );
}</code><p>
the following commandline:<p>
<code>perl -MDoIt=run,arg1,arg2</code><p>
will call the DoIt::run sub with @_ set to qw(run arg1 arg2).
621378
621406