From f849b90f095acfc37a039067f818e0076e99a576 Mon Sep 17 00:00:00 2001 From: Jan Dubois Date: Tue, 20 Nov 2007 07:39:50 -0800 Subject: [PATCH] Improve example code From: "Jan Dubois" Message-ID: <076601c82bce$a4fcfe00$eef6fa00$@com> p4raw-id: //depot/perl@32430 --- pod/perlsyn.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index 177ff4c..8468723 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -607,7 +607,7 @@ is applied recursively to the first argument. These rules look complicated, but usually they will do what you want. For example you could write: - when (/^\d$/ && $_ < 75) { ... } + when (/^\d+$/ && $_ < 75) { ... } Another useful shortcut is that, if you use a literal array or hash as the argument to C, it is turned into a -- 2.7.4