bluebloodpole has asked for the wisdom of the Perl Monks concerning the following question:
open(SORT, "| perl sort3.plx") or *SORT = *STDOUT;
to try to open a non-existent file as inopen(SORT, "| perl foo.plx") or *SORT = *STDOUT;
Instead of assigning the file handle to STDOUT it fails with:Can't open perl script "foo.plx": No such file or directory
It seems related to the pipe.Is this to be expected? If so why? What's the recommended workaround?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: open to pipe fails with exit on Windows
by romandas (Pilgrim) on Oct 07, 2009 at 02:47 UTC | |
|
Re: open to pipe fails with exit on Windows
by jakobi (Pilgrim) on Oct 07, 2009 at 09:35 UTC |