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.
In reply to perl 5.10 bug or not? by sotona
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |