P is for Practical | |
PerlMonks |
Problems with a regex?by dwlepage (Novice) |
on Aug 14, 2012 at 15:20 UTC ( [id://987380]=perlquestion: print w/replies, xml ) | Need Help?? |
dwlepage has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I'm stuck on something and was hoping someone could shed some light. I'm attempting to match on a certain value stored in an array but for whatever reason it will not match.
Here is the code:
__DATA__ set service "MY NEW SERVICE (TMP)" protocol tcp src-port 0-65535 dst-port 4103-4103 set service "MY NEW SERVICE (TMP)" + tcp src-port 0-65535 dst-port 4105-4105
When I run it I get: For some reason the value is not matching in the subroutine. It seems to have something to do with the parens in the string but i'm at a loss. Does anyone have an idea?
Back to
Seekers of Perl Wisdom
|
|