in reply to Effective way in perl

What problems do you have with this code? Is it slow, uses too many resources, ...? "Effective" is a word with many meanings.

Did you take a look at the various Logging-modules on CPAN?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: Effective way in perl
by Rajsri (Initiate) on Jul 16, 2009 at 15:06 UTC
    Hi, My code has repetation of same lines i.e execution of same command output has been redirected to two separate log files. Is there any way, I can use reduce the number of lines of the program in perl. Please advise.