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')
In reply to Re^3: replace conditionals with polymorphism
by Corion
in thread replace conditionals with polymorphism
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |