in reply to Switching between output to file and STDOUT
I get "foo\n" on standard out. However, if I use 3-arg open like so:open(OUTPUT, '>-') or die; print OUTPUT "foo\n";
I get the output directed to a file called '-'. This seems like it might be a bug...can anyone point me to somewhere in the docs where this is documented behavior?open(OUTPUT, ">", '-') print "foo\n";
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Swiching between output to file and STDOUT
by edan (Curate) on Nov 11, 2004 at 10:31 UTC | |
|
Re^2: Swiching between output to file and STDOUT
by gaal (Parson) on Nov 11, 2004 at 10:46 UTC |