[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Slurp weirdness



Yitzchak Scott-Thoennes wrote:
> 
> In article <38FAC4FF.73BC026B@mailgate.net>,
> Paolo Campanella <paolo@mailgate.net> wrote:
> > open (PROC,'/proc/net/tcp');
> > while (<PROC>) {
> >  push(@lines,$_);
> > }
> > close PROC;
> 
> No advice about /proc weirdness, but be aware that <FH> has a list context:
> 
> open (PROC,'/proc/net/tcp');
> @lines = <PROC>
> close PROC;

The 'split' must have crept in as one of a bunch of experiments I tried
to nail down the problem, and forgot to remove - very un-fun :-(

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe