Matthew Persico wrote:
> Jon Ericson wrote:
> >   open(STDERR, ">&STDOUT) || die "Can't dup
stdout: $!";
> >
> > I don't find this hard to read or write.  I think
overloading < and >
> > to do this would be confusing and rarely used.
> >
> 
> Au contraire - I'd use it in a heartbeat. Besides, I
bet that with the
> judicious use of overload, you could probably
simulate it in current
> Perl.

I occasionally redirect filehandles in Perl, but only
STDOUT, STDERR and STDIN.  And I only do it once a
script.  Open already does exactly what is needed.  I
think that changing the syntax in this way is
overkill.  But if it's a pragma, and if I can still
use open, I guess its no skin off my nose.

Jon

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

Reply via email to