W
Willem
Marc Girod wrote:
) On Monday, 23 September 2013 08:30:46 UTC+1, John W. Krahn wrote:
)
)> my @t = $a =~ /\D+|\d+/g;
)> my @s = $b =~ /\D+|\d+/g;
)>
)> Avoids zero length strings.
)
) Indeed, but it implies other changes in the following.
my @t = split /(\d+)/, $a;
my @s = split /(\d+)/, $a;
Avoids both issues.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
) On Monday, 23 September 2013 08:30:46 UTC+1, John W. Krahn wrote:
)
)> my @t = $a =~ /\D+|\d+/g;
)> my @s = $b =~ /\D+|\d+/g;
)>
)> Avoids zero length strings.
)
) Indeed, but it implies other changes in the following.
my @t = split /(\d+)/, $a;
my @s = split /(\d+)/, $a;
Avoids both issues.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT