in reply to Use of uninitialized value in pattern match (m//)
If this is the exact code you had on your windows box, you likely had a bug there too, even if you never noticed it.
The problem looks like you are matching against $_ in your eslif condition when you want to be matching against $str. Change that line to:
}elsif ($str =~/^\s*$/) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use of uninitialized value in pattern match (m//)
by Sushma (Initiate) on Nov 09, 2012 at 09:47 UTC | |
by Corion (Patriarch) on Nov 09, 2012 at 09:53 UTC |