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


in reply to Read a line with max length ?

Hmm. read FILEHANDLE, $line, $max_len will read exactly $max_len bytes into $line, which:

Nonetheless, if you're really worried, it may do the trick.

--
F o x t r o t U n i f o r m
Found a typo in this node? /msg me
The hell with paco, vote for Erudil!