sotona has asked for the wisdom of the Perl Monks concerning the following question:
my $email = 'someuser@example.com' $email =~ /(.*) (<.*>)/; say "1='$1' 2='$2'";
produces 1='example.com' 2='', but it should give 1='' 2=''. Are there any ideas how to work around this in a right way? Upgrading to newer Perl versions are not an option at the moment.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl 5.10 bug or not?
by SuicideJunkie (Vicar) on Aug 16, 2013 at 16:06 UTC | |
|
Re: perl 5.10 bug or not?
by davido (Cardinal) on Aug 16, 2013 at 16:04 UTC | |
|
Re: perl 5.10 bug or not?
by AnomalousMonk (Archbishop) on Aug 16, 2013 at 17:59 UTC | |
|
Re: perl 5.10 bug or not?
by ww (Archbishop) on Aug 16, 2013 at 20:32 UTC | |
by tobyink (Canon) on Aug 16, 2013 at 22:09 UTC | |
by ww (Archbishop) on Aug 16, 2013 at 23:57 UTC | |
by AnomalousMonk (Archbishop) on Aug 17, 2013 at 06:55 UTC | |
by sotona (Scribe) on Aug 20, 2013 at 15:28 UTC | |
by Corion (Patriarch) on Aug 20, 2013 at 15:58 UTC |