in reply to Re^2: Comparing hash keys and values with Regular Expressions
in thread Comparing hash keys and values with Regular Expressions
CountZero
Ok, I admit I made a mistake when saying the output was the same.. Sorry 'bout that, but that's how we learn, right? After testing that piece of code again, with '=', I got the output I desired. But when tested with 'eq', I got the following message as well as an empty output:
Useless use of String eq in void context
I also got this error message for every single line of my code:
Use of uninitialized value in String eq
So what's that all about then? :s And how can I correct it by using 'eq' instead of '=' then?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Comparing hash keys and values with Regular Expressions
by ww (Archbishop) on Jun 30, 2012 at 21:24 UTC | |
|
Re^4: Comparing hash keys and values with Regular Expressions
by Anonymous Monk on Jun 30, 2012 at 21:25 UTC |