From 5db417f7cafcc6c30c8205e213a6072c4a67d513 Mon Sep 17 00:00:00 2001 From: Tim Bunce Date: Fri, 5 Sep 1997 00:00:00 +0000 Subject: minor fix for perltrap.pod (this is the same change as commit 9bf4ea843f7631689691908b2ccde8f571b18cde, but as applied) --- pod/perltrap.pod | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'pod/perltrap.pod') diff --git a/pod/perltrap.pod b/pod/perltrap.pod index 9382789969..02abc3b03b 100644 --- a/pod/perltrap.pod +++ b/pod/perltrap.pod @@ -35,7 +35,7 @@ Curly brackets are required on Cs and Cs. =item * -Variables begin with "$" or "@" in Perl. +Variables begin with "$", "@" or "%" in Perl. =item * @@ -168,7 +168,7 @@ There's no switch statement. (But it's easy to build one on the fly.) =item * -Variables begin with "$" or "@" in Perl. +Variables begin with "$", "@" or "%" in Perl. =item * @@ -1451,9 +1451,7 @@ Everything else. =over 5 -=item * Unclassified - -C/C trap using returned value +=item * C/C trap using returned value If the file doit.pl has: @@ -1474,6 +1472,14 @@ Running doit.pl gives the following: Same behavior if you replace C with C. +=item * C on empty string with LIMIT specified + + $string = ''; + @list = split(/foo/, $string, 2) + +Perl4 returns a one element list containing the empty string but Perl5 +returns an empty list. + =back As always, if any of these are ever officially declared as bugs, -- cgit v1.2.1