in reply to Re: Reg: Performance
in thread Reg: Performance

Thank you Salva. The problem is, it takes more time while write the output into the file. Please tell me, in your scenario how to write only the data which is matched into the file instead of into the console. - Thank you.

Replies are listed 'Best First'.
Re^3: Reg: Performance
by happy.barney (Friar) on Oct 28, 2010 at 10:17 UTC
    from shell
    perl script.pl > file.txt
    or in code
    open OUT, '>', 'file.txt'; ... print OUT ...