in reply to Re: $_[0] as a filehandle
in thread $_[0] as a filehandle

First of all, you're using a reference to a glob as a filehandle - that's bound not to work.

Uh... "Bound not to work"?

perl -le '$x = \*STDOUT; print $x "Bzzzt."'

That used to be the "accepted" way of passing handles around... :-)

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Re: $_[0] as a filehandle
by batkins (Chaplain) on Oct 30, 2003 at 11:52 UTC
    Yes, you're right. I should have tested it out before making that claim. :) I still prefer lexically-scoped filehandles whenever possible, but thanks for pointing out my mistake.

    The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows. - Frank Zappa