Okay, bear with me as I'm more confused than ever. Here's another piece directly from the text (pp 30 - 31):
"...$result = $fh->open($filename,[,$mode [,$perms]]) You can reopen a filehandle object on the indicated file by using its open() method. The input arguments are identical to new(). The method result indicates wheter the open was successful.
This is chiefly used for reopening the standard filehandles STDOUT, STDIN, and STDERR. For example:Calls to print() will now write to the file log.txt...."STDOUT->open(">log.txt") or die "Can't reopen STDOUT: $!";
This is also incorrect?
Thanks again for the help,
njcodewarrior
In reply to Re^4: Using IO::File to redirect STDOUT
by njcodewarrior
in thread Using IO::File to redirect STDOUT
by njcodewarrior
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |