Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: $foo = "Foo::Bar"; $foo->new() works?

by BUU (Prior)
on Jan 23, 2005 at 03:59 UTC ( [id://424329]=note: print w/replies, xml ) Need Help??


in reply to $foo = "Foo::Bar"; $foo->new() works?

Er, the exact same reason:
Foo::Bar::Baz->new()
works. Perl just needs a package name as a string to look up the appropiate method, it doesn't care if the string is in the form of a bareword or contained in a scalar.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-26 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found