Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Variable variable?

by Trimbach (Curate)
on Mar 14, 2002 at 12:44 UTC ( #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? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2021-10-26 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?