Skip to content

Commit 71eb28d

Browse files
committed
$# and $* throw a compilation error, not a warning
1 parent c2b9cbd commit 71eb28d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pod/perlvar.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,7 +2626,7 @@ X<$#>
26262626

26272627
C<$#> was a variable that could be used to format printed numbers.
26282628
After a deprecation cycle, its magic was removed in Perl v5.10.0 and
2629-
using it now triggers a warning: C<$# is no longer supported>.
2629+
using it now triggers a compilation error: C<$# is no longer supported>.
26302630

26312631
This is not the sigil you use in front of an array name to get the
26322632
last index, like C<$#array>. That's still how you get the last index
@@ -2641,7 +2641,7 @@ X<$*>
26412641

26422642
C<$*> was a variable that you could use to enable multiline matching.
26432643
After a deprecation cycle, its magic was removed in Perl v5.10.0.
2644-
Using it now triggers a warning: C<$* is no longer supported>.
2644+
Using it now triggers a compilation error: C<$* is no longer supported>.
26452645
You should use the C</s> and C</m> regexp modifiers instead.
26462646

26472647
Deprecated in Perl 5.

0 commit comments

Comments
 (0)