in reply to Re: "Pro Perl's" Redirecting Filehandles - Unexpected Result (space)
in thread "Pro Perl's" Redirecting Filehandles - Unexpected Result
Thanks, I'll give it a try.
I was looking carefully at the material in the book and the author definitely uses the space between the direction mode symbol (the angle bracket) and the special symbol (the ampersand).
In the previous section (which discusses duplicating files) of the book, the author has a special not that says: "These special modes only work with the two-argument form of open; they do not work with teh mode separated from the name." So I had presumed that the 3-argument form of open wouldn't work. I'll give it a try...maybe the author is wrong.
Just out of curiosity, in the 2-argument form of open, why in your opinion does the space between the mode specifier (i.e., the angle bracket) and the ampersand cause the problem of creating the mysterious file &STDOUT?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "Pro Perl's" Redirecting Filehandles - Unexpected Result (why)
by tye (Sage) on Jan 18, 2008 at 21:55 UTC | |
by DarkLord1 (Novice) on Jan 19, 2008 at 05:17 UTC | |
by tye (Sage) on Jan 19, 2008 at 06:19 UTC | |
by ack (Deacon) on Feb 28, 2008 at 20:23 UTC | |
by parv (Parson) on Jan 19, 2008 at 05:40 UTC |