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

Re^5: Coding styles: OOP vs. Subs

by Anonymous Monk
on Nov 17, 2005 at 17:17 UTC ( [id://509478]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Coding styles: OOP vs. Subs
in thread Coding styles: OOP vs. Subs

That still seems like bad form to me. Imagine someone comes along and tries to extend it...
use warnings; print ("$_")."blah" for qw /foo, #bar, BAZ/
Just because you can do something doesn't mean you should. (Not that I'm implying that you should never turn off warnings. The OP's code isn't one of those times though).

Replies are listed 'Best First'.
Re^6: Coding styles: OOP vs. Subs
by Perl Mouse (Chaplain) on Nov 17, 2005 at 17:29 UTC
    Huh? What's your point? Valid code throwing warnings prevents someone from introducing bugs?
    Perl --((8:>*
      The point is, seeing code like that lets a maintenance programmer know that the original coder isn't that familiar with Perl, and to tread with caution, because there are undoubtedly obscure bugs lurking around.
        If a maintenance programmer thinks I'm not familiar with Perl after seeing my code, there's no hope for the programmer.

        Besides, I'm my own maintenance programmer.

        Perl --((8:>*

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found