Search results for "module:File::GetLineMaxLength"

File::GetLineMaxLength - Get lines from a file, up to a maximum line length River stage one • 1 direct dependent • 1 total dependent

While generally reading lines of data is easy in perl (eg "<$Fh>"), there's apparently no easy way to limit the read line to a maximum length (as in the C call "fgets(char *s, int size, FILE *stream)"). This can lead to potential DOS situations in yo...

ROBM/File-GetLineMaxLength-1.01 - 20 Aug 2007 06:29:52 UTC

File::fgets - Read either one line or X characters from a file River stage zero No dependents

An implementation of the C fgets() function. fgets my $string = fgets($fh, $limit); Reads either one line or at most $limit bytes from the $fh. Returns undef at end of file. NOTE: unlike C's fgets, this will read $limit characters not $limit - 1. Per...

MSCHWERN/File-fgets-v0.0.4 - 01 Jun 2010 20:42:37 UTC
2 results (0.069 seconds)