go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I think the answer lies in that $_ is set to $test inside the regular expression statement, so it is not a numerical argument unless $test is numerical.
As proof (as I was curious to find out what was going on I tried a couple of things to come to a conclusion)
1. When I changed the $_ to a numerical value inside the regex instead: and the regex will work, without warning. 2. When I set the string $test to a something numerical (12,444.343,etc.) and again it will work without warning. 3. I tried setting $_ to a number outside and again it failed. So what I figured it dealt with the $_ So what I finally did was the following as final proof that I was on the right track: Which when it runs displays the following: -enlil In reply to Re: Troubles with m!(??{substr(...)})!
by Enlil
|
|