in reply to Re^4: php to perl
Very easily.
$foo = "My number is 123456"; $num = $foo; $num =~ s/(\W|\D)//g; print $num;
In Section
Seekers of Perl Wisdom
in reply to Re^4: php to perl
$foo = "My number is 123456"; $num = $foo; $num =~ s/(\W|\D)//g; print $num;