Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Variable variable?

by Trimbach (Curate)
on Mar 14, 2002 at 12:44 UTC ( [id://151652]=note: print w/replies, xml ) Need Help??


in reply to Re: Variable variable?
in thread Variable variable?

True, but you won't get a compile-time error for non-existant method calls no matter how you call the bogus method. i.e.
package main; my $camel = new Camel; print "Who", "?\t", $camel->woh, "\n";
Compiles just fine... if you're gonna mistype the name of a method it doesn't matter whether the method name is symbolic or hard-coded (thought the typo on a symbolic reference may be far from the method call and harder to find.)

Gary Blackburn
Trained Killer

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found