summaryrefslogtreecommitdiff
path: root/pod/perlsyn.pod
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>1998-04-03 20:39:03 -0500
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-05-14 14:47:29 +0000
commit3aefca0416eab0f2104345964c03107793baf1d6 (patch)
tree5203fb60a3e6c05dd90a6fe0ce19d84517b07b61 /pod/perlsyn.pod
parentecbaadc1f9d5bbebf204a971c75e312b0e7fa9ae (diff)
downloadperl-3aefca0416eab0f2104345964c03107793baf1d6.tar.gz
[PATCH 5.004_64] anydbm.t
Date: Sat, 4 Apr 1998 01:39:03 -0500 (EST) Subject: [PATCH 5.004_64] threads on OS/2 Date: Sat, 4 Apr 1998 01:44:29 -0500 (EST) Subject: [PATCH 5.004_64] Better handling of Perl DLLs under OS/2 Date: Sat, 4 Apr 1998 01:47:58 -0500 (EST) Subject: [PATCH 5.004_64] Immediate stop in debugger Date: Sat, 11 Apr 1998 19:50:58 -0400 (EDT) Subject: [PATCH 5.005_64] ptags broken Date: Sat, 11 Apr 1998 22:08:21 -0400 (EDT) Subject: [PATCH 5.004_64] Document switch syntax via RE Date: Sun, 12 Apr 1998 01:12:33 -0400 (EDT) p4raw-id: //depot/perl@941
Diffstat (limited to 'pod/perlsyn.pod')
-rw-r--r--pod/perlsyn.pod12
1 files changed, 12 insertions, 0 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index 205be7d97a..f7913700db 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -409,6 +409,18 @@ or
$nothing = 1;
}
+or, using experimental C<EVAL blocks> of regular expressions
+(see L<perlre/"(?{ code })">),
+
+ / ^abc (?{ $abc = 1 })
+ |
+ ^def (?{ $def = 1 })
+ |
+ ^xyz (?{ $xyz = 1 })
+ |
+ (?{ $nothing = 1 })
+ /x;
+
or even, horrors,
if (/^abc/)