summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/pod/perlrequick.pod
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-08-09 17:48:49 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-08-09 17:48:49 +0000
commit069768bdb70fb3052599d3e70898a0ed0e1c31d2 (patch)
tree1492d59179e2c9b07cb6c6754f78a3ef6e608e68 /gnu/usr.bin/perl/pod/perlrequick.pod
parentf2ebe24544ebe30f7ed499fda280dce09361f966 (diff)
Import of stock perl 5.8.5
Diffstat (limited to 'gnu/usr.bin/perl/pod/perlrequick.pod')
-rw-r--r--gnu/usr.bin/perl/pod/perlrequick.pod5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/pod/perlrequick.pod b/gnu/usr.bin/perl/pod/perlrequick.pod
index bb15c46e5c7..7abd895e8a8 100644
--- a/gnu/usr.bin/perl/pod/perlrequick.pod
+++ b/gnu/usr.bin/perl/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,