dk has asked for the wisdom of the Perl Monks concerning the following question:
but this does not even compile:$_ = \*STDOUT; print $_ "moo\n";
ideas? ( and no, please don't suggest $_=$_->[0], it's no fun)$_->[0] = \*STDOUT; print $_->[0] "moo\n"; String found where operator expected at a.pl line 2, near "] "moo\n"" (Missing operator before "moo\n"?) syntax error at a.pl line 2, near "] "moo\n"" Execution of a.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print to a filehandle
by imp (Priest) on Dec 21, 2006 at 13:25 UTC | |
by jettero (Monsignor) on Dec 21, 2006 at 13:28 UTC | |
by polettix (Vicar) on Dec 21, 2006 at 14:22 UTC | |
by f00li5h (Chaplain) on Dec 21, 2006 at 13:34 UTC | |
by Fletch (Bishop) on Dec 21, 2006 at 14:17 UTC | |
by Anonymous Monk on Dec 21, 2006 at 14:22 UTC |