Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^3: replace conditionals with polymorphism

by Corion (Pope)
on Feb 10, 2009 at 08:29 UTC ( #742697=note: print w/ replies, xml ) Need Help??

in reply to Re^2: replace conditionals with polymorphism
in thread replace conditionals with polymorphism

You likely know this, but others mightn't:

Perl provides the class with no name. It's identical to the main:: namespace:

package Hello; @Hello::ISA=''; package main; sub p { print for @_ }; Hello->p('World')

Comment on Re^3: replace conditionals with polymorphism
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-11-25 12:55 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (675 votes), past polls