![]() |
|
There's more than one way to do things | |
PerlMonks |
Re^3: Regex matching after ASCII charactersby elTriberium (Friar) |
on Oct 05, 2011 at 21:36 UTC ( #929888=note: print w/replies, xml ) | Need Help?? |
The problem with your code is the "BR|GR". Perl will now match any of these 2:
OR: The second one matches. The solution would be to set $prompt_host to:
In Section
Seekers of Perl Wisdom
|
|