Keep It Simple, Stupid | |
PerlMonks |
autoboxby jmcnamara (Monsignor) |
on Oct 14, 2003 at 16:03 UTC ( [id://299162]=perlnews: print w/replies, xml ) | Need Help?? |
autobox "endows Perl's core datatypes with the capabilities of first-class objects". This is best demonstrated with an example:
And when you run it:
Or (perhaps) the first autobox JAPH (with the above Print in a separate package):
Or consider the following example from the pod: Let the holy wars commence.
--
Back to
Perl News
|
|