print that string to either STDOUT or MYFILE depending on how I call a print function.
print { $to_file ? *MYFILE : *STDOUT } $str;
In reply to Re^3: Redirect Subroutine Output
by ikegami
in thread Redirect Subroutine Output
by spickles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |