in reply to How do I get the value of a number that is part of a string?

$_ = "answer4u"; /(\d+); $num = $1;
or:
$_ = "answer4u"; ($num) = /(\d+)/;