in reply to Regex triggering uninitialised values
You need the use of * when you want to find 0 or more elements of the pattern ( say.. \d in your example ) and + if you want to find 1 or more elements of your pattern.
So in your program, you're trying to find a \d everytime, so.. if you have \d*, you're telling perl that your regexp might find 0 or more numbers.
Greetings
|
|---|