--- Peter Jay Salzman <[EMAIL PROTECTED]> wrote:
<snip>
>       /(\d+).*/;
>       $temperature = $+;

$1 holds the \d+ matching, because it has parens. 
Multiple sets of parens will match $1, $2, ... based
on the left to right order of the parens.

If $temperature already had one or more digits \d+ and
some other junk, replace digits and junk with digits:

$temperature =~ s/(\d+).*/$1/; 

Note, if $temperature has a newline character in the
middle somewhere, then .* will not match it.

---
Jim

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
_______________________________________________
vox-tech mailing list
[EMAIL PROTECTED]
http://lists.lugod.org/mailman/listinfo/vox-tech

Reply via email to