in reply to Re^2: Redirect Subroutine Output
in thread Redirect Subroutine Output
print that string to either STDOUT or MYFILE depending on how I call a print function.
print { $to_file ? *MYFILE : *STDOUT } $str;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Redirect Subroutine Output
by spickles (Scribe) on Aug 26, 2009 at 18:23 UTC | |
by ikegami (Patriarch) on Aug 26, 2009 at 18:43 UTC |