in reply to Problem With Split

how about:
my $thing = '12340019'; my @splat = $thing =~ m/\d{4}/g;
my $num = '0019'; $num = int $num;

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.