Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: When -w and use strict aren't enough...

by fletcher_the_dog (Friar)
on Nov 04, 2003 at 18:40 UTC ( #304505=note: print w/ replies, xml ) Need Help??


in reply to When -w and use strict aren't enough...

Even if there wasn't AUTOLOAD and eval, perl's loose typing makes it impossible to check method names at compile time. Consider this snippet:

sub foo{ my $thing = shift; print $thing->to_xml; }
$thing could be anything, there is no way at compile time for perl to know if $thing has a "to_xml" method


Comment on Re: When -w and use strict aren't enough...
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2015-07-04 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls