|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: In perl v5.6.1, using an array slice disables some "use strict" functionality
|
On Sat, May 20, 2006 at 09:25:41AM -0400, Eric wrote:
> That't quite interesting! Out of intense curiosity, what does $foo
> contain after the third line is executed under 5.6.1? "bar" or the
> contents of $bar or something else?
It contains the string "bar"
$ cat foo
use strict;
()[0..0];
my $foo = bar;
use Data::Dumper;
print Dumper $foo;
$ perl foo
$VAR1 = 'bar';
-mct
-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|