$_->[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.