in reply to Null-stripping performance
I'd recommend:
or$value = unpack "x$index Z4", $string;
$value = substr($string, $index, 4); $value =~ y/\0//d;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Null-stripping performance
by Thelonius (Priest) on Feb 26, 2007 at 14:37 UTC | |
by qiau (Initiate) on Feb 26, 2007 at 17:19 UTC |
In Section
Seekers of Perl Wisdom