Driving a module (.pm)

Richard Clamp richardc at unixbeard.net
Thu Nov 17 11:33:46 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
}


-- 
Richard Clamp <richardc at unixbeard.net>



More information about the london.pm mailing list