Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Loading class

by IlyaM (Parson)
on Mar 07, 2003 at 13:51 UTC ( #241133=note: print w/replies, xml ) Need Help??


in reply to Re: Loading class
in thread Loading class

Perl seems to do some magic with import method call. Even if you don't define it always work:
$ perl -e 'XXX->xxx' Can't locate object method "xxx" via package "XXX" (perhaps you forgot + to load "XXX"?) at -e line 1. $ perl -e 'XXX->import' # no error

--
Ilya Martynov, ilya@iponweb.net
CTO IPonWEB (UK) Ltd
Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
Personal website - http://martynov.org

Replies are listed 'Best First'.
Re: Re: Re: Loading class
by broquaint (Abbot) on Mar 07, 2003 at 13:56 UTC
    Perl seems to do some magic with import method call
    Indeedey, perl does some groovy AUTOLOAD magic at the source level. See. import() magic for more info on the matter.
    HTH

    _________
    broquaint

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://241133]
help
Chatterbox?
[Discipulus]: the very same topic was discussed in CB yesterday at lunch time
[Discipulus]: or can I ask for a module to do the back conversion from flame to txt?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2017-06-23 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (537 votes). Check out past polls.