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)