Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: How to delete a method in a subclass?

by ihb (Deacon)
on Dec 21, 2004 at 10:49 UTC ( #416427=note: print w/replies, xml ) Need Help??

in reply to Re: How to delete a method in a subclass?
in thread How to delete a method in a subclass?

I'm a fan of keeping the parenthesis for user-defined subroutines, and you give an example of why.

Your methods will have the string "obsoleted" in them. With warnings enabled a warning will be issued. With strict enabled it'll be a fatal error.

This is because when the methods are defined there is no &obsoleted subroutine and you don't indicate it's a subroutine in any way.

Defining &obsoleted above the methods would solve this, but personally I'd just use parenthesis and not worry about where I define subroutines.


See perltoc if you don't know which perldoc to read!
Read argumentation in its context!

Replies are listed 'Best First'.
Re^3: How to delete a method in a subclass?
by gaal (Parson) on Dec 21, 2004 at 12:10 UTC
    Yes, that's a good point++.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2016-10-22 18:56 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.