On Tuesday 05 June 2001  3:41 pm, Rich Fernandez wrote:
> > -----Original Message-----
> > From: Timothy Kimball [mailto:[EMAIL PROTECTED]]
> >
> > print STDOUT $query->header(
> >     -type => "video/mpeg",
> > );
> >
> > open MOVIE, $vidfile or die "Couldn't open $vidfile: $!";
> > while ( read(VIDFILE, $_, 100_000) ) { print STDOUT; }
> > close MOVIE;
>
> Thanks, this is exactly what I was looking for, but it brings
> up another question...
>
> Is there an advantage to using "read", as you did above, as opposed
> to just saying:
>
> while(<MOVIE>){print;}
> close MOVIE;

I think the 1st method is safer with binary data.  Also, I think it's 
more efficient.

>
> Or is it just a case of TMTOWTDI?

That's a bloody long TLA!!
-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 
    

Reply via email to