in reply to Re^2: "Pro Perl's" Redirecting Filehandles - Unexpected Result (space)
in thread "Pro Perl's" Redirecting Filehandles - Unexpected Result
Because otherwise how would you open a file named "&STDOUT" if that was what you wanted to do? Before there was 3-argument open, the safe way to open a file was open HANDLE, "> $name" (with the space being important there) and that should be safe even if the user entered "&STDOUT" for $name.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: "Pro Perl's" Redirecting Filehandles - Unexpected Result (why)
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 |