TIMTOWTDI, but this is probably the simplest:
HTH.if ($largestring =~ /Total Cost: (\d+)/) { $x = $1; } else { $x = 0; }
In reply to Re: Obtain information from a string
by VSarkiss
in thread Obtain information from a string
by Baz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |