Re: numbers and strings and regex?



On Mon, 30 May 2005 18:30:42 +0100, Brian McCauley <nobull@xxxxxxxx>
wrote:

> if ($name =~ /\d{2}-(\d{2})\.jmx$/i) {
> my $exnum = 0+$1;
> }


Brian,

this work fine but I'm not clear what the

0+$1;

does?

Geoff
.