in reply to Getting Trouble with REGEXP
$nums =~ s/\D/ /g; [download]
See s/PATTERN/REPLACEMENT/... under "Regexp Quote-Like Operators" in perlop. ( er, the documentation of /g was moved to perlre in 5.10 )