This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Re: perlintro.pod
[perl5.git]
/
pod
/
perlintro.pod
diff --git
a/pod/perlintro.pod
b/pod/perlintro.pod
index
23abd83
..
8a80ef4
100644
(file)
--- a/
pod/perlintro.pod
+++ b/
pod/perlintro.pod
@@
-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";
}