This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: perlintro.pod
[perl5.git] / pod / perlintro.pod
index 23abd83..8a80ef4 100644 (file)
@@ -560,7 +560,7 @@ The results end up in C<$1>, C<$2> and so on.
 
     # a cheap and nasty way to break an email address up into parts
 
-    if ($email =~ /([^@]+@(.+)/) {
+    if ($email =~ /([^@])+@(.+)/) {
         print "Username is $1\n";
         print "Hostname is $2\n";
     }