From: Vincent Pit Date: Sat, 24 Aug 2013 17:50:56 +0000 (-0300) Subject: Quote "$]" to work around a bug in old perls X-Git-Tag: v0.08~4 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fsubs-auto.git;a=commitdiff_plain;h=46cd890ea5937a0a5a6f3270391c80720671c3ac Quote "$]" to work around a bug in old perls --- diff --git a/lib/subs/auto.pm b/lib/subs/auto.pm index 3bc6ba1..d92f17a 100644 --- a/lib/subs/auto.pm +++ b/lib/subs/auto.pm @@ -87,7 +87,7 @@ my %core; delete @core{qw}; BEGIN { - *_REFCNT_PLACEHOLDERS = eval 'sub () { ' . ($] < 5.011002 ? 0 : 1) . '}' + *_REFCNT_PLACEHOLDERS = eval 'sub () { ' . ("$]" < 5.011002 ? 0 : 1) . '}' } my $tag = wizard data => sub { \(my $data = _REFCNT_PLACEHOLDERS ? 2 : 1) };