Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: How would you simplify this code?

by elTriberium (Friar)
on Apr 07, 2011 at 05:46 UTC ( #897940=note: print w/replies, xml ) Need Help??


in reply to Re: How would you simplify this code?
in thread How would you simplify this code?

That's a good comment, however what if these 2 (or other) attributes are only required in this subroutine and not in all subroutines of the class?
  • Comment on Re^2: How would you simplify this code?

Replies are listed 'Best First'.
Re^3: How would you simplify this code?
by chromatic (Archbishop) on Apr 07, 2011 at 17:26 UTC

    Some classes work out that way. It's not necessarily a design smell.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2023-05-30 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?