XP is just a number | |
PerlMonks |
Re^5: REGEX omit dashes - simple but ...by stevieb (Canon) |
on Apr 04, 2016 at 17:23 UTC ( [id://1159518]=note: print w/replies, xml ) | Need Help?? |
You forgot to add your capture group of (\d*). However, that won't really help, as that won't capture your - (dashes), or any numbers after it. Why don't you show us a few lines of example data you're trying to match? Also, Use of uninitialized... is not an error, it's a warning. It's most likely saying that $1 is uninitialized (because you didn't capture anything).
In Section
Seekers of Perl Wisdom
|
|