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
In reply to Re^3: "Pro Perl's" Redirecting Filehandles - Unexpected Result (why)
by tye
in thread "Pro Perl's" Redirecting Filehandles - Unexpected Result
by DarkLord1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |