Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Creating packages on the fly

by vkon (Curate)
on Jun 06, 2006 at 09:28 UTC ( [id://553780]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Creating packages on the fly
in thread Creating packages on the fly

you're right, Jouke::Foo->whatever_method() isn't covered in my example.

Here is one that do:

sub UNIVERSAL::AUTOLOAD { print STDERR "[[@_]]"; } package main; Jouke::Foo->whatever_method();
outputs
D:\TESTS\tperl>perl -w autocr.pl [[Jouke::Foo]]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-20 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found