Re: numbers and strings and regex?



On 30 May 2005 20:51:43 GMT, anno4000@xxxxxxxxxxxxxxxxxxxxxxx (Anno
Siegel) wrote:

Anno,

Thanks for the code - I will try it out in a minute.

Brian suggested approach below which works fine but am not clear whta
the $exnum = 0+$1; does?

Geoff

if ($name =~ /\.*?\d{2}-(\d{2})\.jmx$/i) {

# print ("\$1 = $1 \n");

my $exnum = 0+$1;
.