in reply to Re^4: php to perl
Very easily.
$foo = "My number is 123456"; $num = $foo; $num =~ s/(\W|\D)//g; print $num;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: php to perl
by Anonymous Monk on Jul 09, 2011 at 23:50 UTC |
In Section
Seekers of Perl Wisdom