Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Perl::Critic and Subroutines

by daugh016 (Initiate)
on Nov 27, 2012 at 22:22 UTC ( #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.


Comment on Re^2: Perl::Critic and Subroutines
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
Node Status?
node history
Node Type: note [id://1005935]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-09-23 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls