Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: When -w and use strict aren't enough...

by andyford (Curate)
on Jun 15, 2006 at 21:56 UTC ( [id://555645]=note: print w/replies, xml ) Need Help??


in reply to Re: When -w and use strict aren't enough...
in thread When -w and use strict aren't enough...

This intrigues me.
but
Why do you say "Probably don't want to..."?
because
"it's too much work"?
or because
"it's dangerous/bad/ugly"?
  • Comment on Re^2: When -w and use strict aren't enough...

Replies are listed 'Best First'.
Re^3: When -w and use strict aren't enough...
by ikegami (Patriarch) on Jun 15, 2006 at 22:24 UTC
    Don't know, but one downside (upside?) is that your functions are no longer accessible from outside the package. That can easily be fixed by doing one of the following for exportable functions:
    *handleNewYear = my $handleNewYear = sub { # do something really useful };
    sub handleNewYear { # do something really useful } my $handleNewYear = \&handleNewYear;
Re^3: When -w and use strict aren't enough...
by tilly (Archbishop) on Jun 17, 2006 at 01:09 UTC
    Because it is ugly. And will be sure to generate negative comments from any maintainance programmer. And cannot be mixed with OO techniques.

    Other than that, it is a veru good idea. But its goodness is simply not worth the arguments that you're bound to generate.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-16 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found