Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Perl::Critic and Subroutines

by daugh016 (Initiate)
on Nov 27, 2012 at 22:22 UTC ( [id://1005935]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl::Critic and Subroutines
in thread Perl::Critic and Subroutines

The point of them is that I am tying to avoid having to comment and uncomment multiple lines of print code. Specifically, the list one is 3 lines and I am doing this multiple times with testing. Also, I like to have informative prints where I have the variable/list name and if it is a list , I like to have a label for each element.

Replies are listed 'Best First'.
Re^3: Perl::Critic and Subroutines
by Anonymous Monk on Nov 27, 2012 at 23:05 UTC

    The point of them is that I am tying to avoid having to comment and uncomment multiple lines of print code ...

    So you're writing some kind of developer aid, like Smart::Comments?

    eval probably won't work the way you want -- try PadWalker or Data::Dumper::Names

Re^3: Perl::Critic and Subroutines
by Anonymous Monk on Nov 27, 2012 at 23:07 UTC

    The point of them is that I am tying to avoid having to comment and uncomment multiple lines of print code ...

    FWIW, that ought to be as simple as calling Ctrl+Q repeatedly (well if you have SciTE, different keyboard shortcuts for different editors)

Log In?
Username:
Password:

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

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

    No recent polls found