summaryrefslogtreecommitdiff
path: root/pod/perlrequick.pod
diff options
context:
space:
mode:
authorMark Kvale <kvale@phy.ucsf.edu>2004-02-24 03:32:34 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-02-24 19:30:12 +0000
commit16e8b84077a7f90c46bd95640feeb546b4bfbf75 (patch)
treefdb703a9468564d0bd4f2f7d7cdbdd2907cd4742 /pod/perlrequick.pod
parent4c621fafb1207a431474b7e038369b162e2416f5 (diff)
downloadperl-16e8b84077a7f90c46bd95640feeb546b4bfbf75.tar.gz
Bugfix for perlrequick and perlretut
Message-Id: <200402241132.34656.kvale@phy.ucsf.edu> p4raw-id: //depot/perl@22368
Diffstat (limited to 'pod/perlrequick.pod')
-rw-r--r--pod/perlrequick.pod5
1 files changed, 3 insertions, 2 deletions
diff --git a/pod/perlrequick.pod b/pod/perlrequick.pod
index bb15c46e5c..7abd895e8a 100644
--- a/pod/perlrequick.pod
+++ b/pod/perlrequick.pod
@@ -380,8 +380,9 @@ C<$pattern> won't be changing, use the C<//o> modifier, to only
perform variable substitutions once. If you don't want any
substitutions at all, use the special delimiter C<m''>:
- $pattern = 'Seuss';
- m'$pattern'; # matches '$pattern', not 'Seuss'
+ @pattern = ('Seuss');
+ m/@pattern/; # matches 'Seuss'
+ m'@pattern'; # matches the literal string '@pattern'
The global modifier C<//g> allows the matching operator to match
within a string as many times as possible. In scalar context,