|
|
| The stupid question is the question not asked | |
| PerlMonks |
a regex to split this...by s_m_b (Acolyte) |
| on Aug 09, 2006 at 07:38 UTC ( [id://566382]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.s_m_b has asked for the wisdom of the Perl Monks concerning the following question:
should be simple, but I just cannot get it working:
domain\userid (or) domain/userid from $ENV{'REMOTE_USER'} I've tried using both undef, $userid = split('/', $ENV{'REMOTE_USER'}; (and) $username =~ /(cyc(\|\/)(.*?)/; - 'cyc' is the domain string btw. I get either nothing back from $1, $2 etc, or various errors relating to the regex upsetting the split.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||