Driving a module (.pm)

Nigel Hamilton nigel at turbo10.com
Thu Nov 17 12:00:19 GMT 2005


>
> On 17 Nov 2005, at 11:07, Nigel Hamilton wrote:
>> 
>> 	But it means I need to call it with: perl Foo.pm <something> .
>> 	There must be a better way .... any ideas?
>
> unless (caller) {
>  # I'm being invoked directly
> }
>

Sweet!! ;-)



More information about the london.pm mailing list