>> @tmp =  map { (split)[2] } grep { /localhost/ } <FILE>;
>
>This is a bad idea if the file you are reading from is at all large.

Yes memory consuming of using map and grep is the fact.
But AFAIK postgresql.conf is not big at all (just a few lines) b/c I'm pretty 
familiar with it. :)

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to