in reply to it seems i don't understand =~

$value =~ s/\D//g; $value =~ $1 if( $value =~ /(\d+)/ ){ $value =~ $1 } else { undef $value; }

Replies are listed 'Best First'.
Re^2: it seems i don't understand =~
by ikegami (Patriarch) on Mar 30, 2009 at 02:28 UTC
    That doesn't even compile, among other problems.
    A reply falls below the community's threshold of quality. You may see it by logging in.