I am not discovering America, but this:
s/(\S+)$//s);
$x = $1;
$y = $_;
is the hell of a lot faster than an equivalent
/^(.*?)(\S+)$/);
$x = $2;
$y = $1;
One can really feel that with moderately long lines (50K or so).
I am not discovering America, but this:
s/(\S+)$//s);
$x = $1;
$y = $_;
is the hell of a lot faster than an equivalent
/^(.*?)(\S+)$/);
$x = $2;
$y = $1;
One can really feel that with moderately long lines (50K or so).
Leave a comment