Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> both a regex like /\A(\d+(?:\.\.\d+)?)(?:,(?1))*\z/
That's overkill in that case,... > and checking eval for errors. ... checking eval for errors is enough, once the code fails. Your all-covered approach reminds me of parents insisting to drive their kids to school while they keep their bike's helmet on. Like this you are scaring them away from learning how to bike by themselves.
Cheers Rolf In reply to Re^6: loop iterator in a string
by LanX
|
|