On Fri, May 04, 2001 at 04:42:07PM -0700, Nathan Wiger wrote:
> I'm wondering what this will do?
> 
>    $thingy = $STDIN;
> 
> This seems to have two possibilities:
> 
>    1. Make a copy of $STDIN
> 
>    2. Read a line from $STDIN

While perhaps inconsistent, I'd really rather it did #2.  Here's the
basic argument... compare how often you dup a filehandle with how
often you read from one.  Duping is swamped by several orders of
magnitude.  Dup with $fh = $STDIN.copy; (or whatever).  $line =
$STDIN.next should still work normally.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <[EMAIL PROTECTED]>       Kwalitee Is Job One
Do you have a map? Because I keep getting lost in your armpits.

Reply via email to