Remove the space from "> &". ">&" is an "open mode" like ">>" and "+<" and even ">&=". In modern Perl, you might even prefer to put the mode in a separate argument:
open( OLDOUT, ">&", STDOUT ) or die "Can't dup STDOUT to OLDOUT: $!\n";
- tye
In reply to Re: "Pro Perl's" Redirecting Filehandles - Unexpected Result (space)
by tye
in thread "Pro Perl's" Redirecting Filehandles - Unexpected Result
by DarkLord1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |