Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Shorten one liners with Class::Autouse

by bsb (Priest)
on Mar 30, 2007 at 08:13 UTC ( #607413=note: print w/ replies, xml ) Need Help??

in reply to Shorten one liners with Class::Autouse

A vaguely related footnote:

Ending a module with __PACKAGE__; instead of the usual 1; could be used to call a method on the result of the require.

$ cat package Eg; sub hello { print "Hello World\n"; } __PACKAGE__; $ perl -e '(require Eg)->hello()' Hello World

Comment on Re: Shorten one liners with Class::Autouse
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://607413]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2016-02-10 05:08 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (332 votes), past polls