Re: numbers and strings and regex?
- From: Geoff Cox <geoff.cox@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 May 2005 19:43:44 GMT
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
.
- Follow-Ups:
- Re: numbers and strings and regex?
- From: Brian McCauley
- Re: numbers and strings and regex?
- References:
- numbers and strings and regex?
- From: Geoff Cox
- Re: numbers and strings and regex?
- From: Brian McCauley
- numbers and strings and regex?
- Prev by Date: Re: numbers and strings and regex?
- Next by Date: Re: how to sort hash by value, where value is a valid date
- Previous by thread: Re: numbers and strings and regex?
- Next by thread: Re: numbers and strings and regex?
- Index(es):