On 7/31/07, John W. Krahn <[EMAIL PROTECTED]> wrote:
snip
> > my @a = <STDIN> =~ /^(\d)(\d)?(\d)?(\d)?(\d)?$/g
>
> You are using the /g option but the pattern is anchored at the beginning and
> ending of the line so it will only match once making the /g option
> superfluous.  (Even if you added the /m option it would still only contain one
> line because the readline is in scalar context so the /g option would still be
> superfluous.  :-)
snip

Yep, it was left over from trying to make a simpler regex to do what I
wanted.  Luckily it was superfluous rather than harmful.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to