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


in reply to Re: Read a line with max length ?
in thread Read a line with max length ?

Be sure to local()ize that $/ within a block so you don't cause yourself grief elsewhere.

--isotope
http://www.skylab.org/~isotope/