The stupid question is the question not asked | |
PerlMonks |
Re: basic doubtby Athanasius (Archbishop) |
on Oct 27, 2012 at 04:05 UTC ( [id://1001159]=note: print w/replies, xml ) | Need Help?? |
Hello vis29, and welcome to the Monastery! The code shown applies the regex to whatever string is currently stored in the default variable $_, and if the regex matches it assigns the string "not recognized" to the scalar variable $uname. The regex says:
I’m guessing that the code doesn’t do (anything like) what was intended, but without seeing the surrounding context it’s hard to say exactly what that was. Here is one guess:
Hope that helps, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|