Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: perl in line editing help

by Corion (Patriarch)
on Aug 27, 2013 at 11:27 UTC ( [id://1051121]=note: print w/replies, xml ) Need Help??


in reply to perl in line editing help

Have you thought about simply changing print to a subroutine call instead?

sub status { if( $ENV{DEBUG}) { print "@_"; }; }; status( "this is name",$self->{name},"\n" );

Also see Log::Log4Perl.

Also, you might want to learn to use your text editor. Most text editors can do various forms of search and replace.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found