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

Re: [FWP] Slurp weirdness



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;

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