summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-11-26 15:53:56 +0000
committerFather Chrysostomos <sprout@cpan.org>2010-11-28 13:17:06 -0800
commit2dc78664124f51814246e5b3da10c8a9f5fe2726 (patch)
treecf749927370f04975bb52b0cef8940bd634f727e /toke.c
parentd42388159bbfea27efd2de1d76aa62e99f6c8240 (diff)
downloadperl-2dc78664124f51814246e5b3da10c8a9f5fe2726.tar.gz
Make my $pi := 4; a syntax error.
Previously it interpreted := as an empty attribute list, and issued a deprecation warning. This change permits := to be used as a binding operator.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 584aea0247..d2868c2b57 100644
--- a/toke.c
+++ b/toke.c
@@ -5228,7 +5228,8 @@ Perl_yylex(pTHX)
break;
PL_bufptr = s; /* update in case we back off */
if (*s == '=') {
- deprecate(":= for an empty attribute list");
+ Perl_croak(aTHX_
+ "Use of := for an empty attribute list is not allowed");
}
goto grabattrs;
case XATTRBLOCK: