http://www.perlmonks.org?node_id=61185


in reply to Re: Grep Effeciency
in thread Grep Effeciency

Hey Baku,
The reason i loop over the same array, because the "#--- more code" line is actually, taking that array, and doing a foreach loop on it, splitting every line at the | then, doing the calulations and printing the results. Is this inneffecient? I figure searching just once for the NETID and just parsing that data, then moving on is the best way? But, I dont knonw nearly as much about perl as many people here :)

Thanks

Dipul