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

Re^2: object contstruction

by kappa (Chaplain)
on Dec 14, 2004 at 12:28 UTC ( [id://414690]=note: print w/replies, xml ) Need Help??


in reply to Re: object contstruction
in thread object contstruction

Or just
my $self = "Module::$t"->new();
as ysth mentions.

Note to original poster: the quotes are there to help perl understand where exactly the package name is. It is sometimes is not as obvious as here:

my $t = 'Module::Test'; my $self = $t->new();
--kap

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-29 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found