in reply to Re: looping efficiency
in thread looping efficiency
my($i,$j,$k,$l) = split (//,$num_string);
I haven't done any Benchmark-ing (and won't), but
unpack might be faster than split:
my($i,$j,$k,$l) = unpack '(a)4', $num_string;
Give a man a fish: <%-{-{-{-<
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: looping efficiency
by Marshall (Canon) on Dec 30, 2020 at 01:31 UTC | |
Re^3: looping efficiency
by QM (Parson) on Dec 30, 2020 at 23:00 UTC |