I am getting this:
[EMAIL PROTECTED]:~$ perl -e "'123456-123456' =~ /^ (\d{2}){3} (?: - (\d{2}){3} 
)? $/x ? print 'yep' : print 'nope';"
Panic opt close in regex m/^ (\d{2}){3} (?: - (\d{2}){3} )? $/ at -e line 1.

Google does not turn much if anything about this error... Why is this 
happening? If I remove ?: everything goes well but it defies the idea of the 
exercise to get an optional 3 pair set of digits parsed as $4 $5 $6 in the 
same pass as $1 $2 $3.

Thanks

Peter

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


Reply via email to