Keep It Simple, Stupid | |
PerlMonks |
Re: Order of terms in square bracesby imp (Priest) |
on Feb 03, 2007 at 00:44 UTC ( [id://598034]=note: print w/replies, xml ) | Need Help?? |
Because dashes in character classes are used to express ranges, like [a-z], except when they are the first item. Because of this you should always either put them as the first item, or escape them with \
In Section
Seekers of Perl Wisdom
|
|