Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Re: Create a built-in-like sub?

by Juerd (Abbot)
on Feb 01, 2002 at 23:45 UTC ( [id://142815]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Create a built-in-like sub?
in thread Create a built-in-like sub?

use base is new syntax, introduced with Perl 5.004_04, so it should work with your 5.005_03.
You have to type less, and the intent is clear immediately.

It will require the module if needed, and will push it onto @ISA. It will do some other things as well - read the manual.

2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-19 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found