rkshyam has asked for the wisdom of the Perl Monks concerning the following question:
Hi I have a simple question: I need to print the output on the screen and to a file. I know how to do this using tee command on Linux/Unix. But I dont know in perl. I tried using tee command here too but didnt work.Should I to install any perl modules like IO::tee or File::Tee etc to make it work? I tried downloading these packages using ppm but again it failed.I have also searched in perl monk and didnot get the required correct information. Can you please help me? Thanks in advance. Sample output to print both on screen and file: print "File split start time is ", eval 'scalar localtime';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: print the output on the screen and to a file
by Anonymous Monk on Mar 30, 2012 at 07:12 UTC | |
by rkshyam (Acolyte) on Mar 30, 2012 at 10:56 UTC | |
Re: print the output on the screen and to a file
by ramlight (Friar) on Mar 30, 2012 at 12:59 UTC | |
Re: print the output on the screen and to a file
by wwe (Friar) on Mar 30, 2012 at 11:36 UTC | |
by rkshyam (Acolyte) on Mar 30, 2012 at 11:49 UTC | |
by Marshall (Canon) on Mar 30, 2012 at 12:33 UTC |