|Problems? Is your data what you think it is?|
Passing a scalar to a subroutineby rspishock (Monk)
|on Feb 01, 2012 at 12:45 UTC||Need Help??|
rspishock has asked for the
wisdom of the Perl Monks concerning the following question:
I come seeking the wisdom of the all knowledgeable monks.
I'm working on a script that passes user input into a subroutine and compares the value to a regex for compliance. Below is a couple snippets of code to show what I'm doing. The variable names in the hash have been changed and do not reflect what I am using in my actual script.
I'm having a problem with passing $value into the subroutine. When I test my script, I get the Entering the subroutine message followed by an error stating that I am using an undefined value, and the the closing Exiting the subroutine message.
Can someone please point me in the direction how I can pass this value to my subroutine for verification?
Thanks for all of your help.