in reply to File length ??
See perldoc perlvar about $/. Or you could remove the linebreaks:while(<DATA>){ next if $_ eq $/; push @data, $_; } # shorter: $_ ne $/ and push @data, $_ while <DATA>;
See perldoc -f chomp.while(<DATA>){ chomp; next if $_ eq ''; push @data, $_; }
Makeshifts last the longest.
|
|---|