Re: scape . character
- From: chas.owens@xxxxxxxxx (Chas Owens)
- Date: Fri, 27 Apr 2007 12:16:31 -0400
On 4/27/07, Jeff Pang <pangj@xxxxxxxxxxxxx> wrote:
> umm, why are you testing twice? Just capture the last digit (instead
> of the whole version number) in the first regex.
>
> next unless /\s+\d+\.\d+\.(\d+)\s+/;
> print "$1\n"
>
b/c he asked two questions,
1) how to capture version string;
2) how to capture last number from version string.
surely I know testing one time is enough.
Sorry, it just looked odd that you were making one capture and then
doing nothing with it but doing another capture.
.
- References:
- scape . character
- From: Tatiana Lloret Iglesias
- Re: scape . character
- From: Jeff Pang
- Re: scape . character
- From: Tatiana Lloret Iglesias
- Re: scape . character
- From: Jeff Pang
- Re: scape . character
- From: Chas Owens
- Re: scape . character
- From: Jeff Pang
- scape . character
- Prev by Date: Re: improving my code: array of references
- Next by Date: Re: improving my code: array of references
- Previous by thread: Re: scape . character
- Next by thread: Re: scape . character
- Index(es):
Relevant Pages
|
|