in reply to How to print STDOUT to a file
You have to use a file handle.
open (FOUT, "filename") || die("you cant open"); print FOUT $str;
or another way is to use >filename.txt in the command prompt to redirect the output from printing STDOUT, provided if your are using windows os.
Prasad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to print STDOUT to a file
by Anonymous Monk on Nov 14, 2005 at 11:46 UTC | |
by prasadbabu (Prior) on Nov 14, 2005 at 11:59 UTC | |
by Anonymous Monk on Nov 14, 2005 at 12:09 UTC | |
by salva (Canon) on Nov 14, 2005 at 12:22 UTC |