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


in reply to Re: Reading file and matching lines
in thread Reading file and matching lines

Wouldn't it be better if you had just used $searching_for_G and /^h/? (I haven't tested this). It may well just be me, but 0 == index ... sticks out oddly to my eyes.