On Fri, Sep 12, 2008 at 02:54:26PM +0100, Martin Evans wrote:
> Using perl 5.9.5 on Windows the following:
>
> perl -d -e "use DBI; use strict;use warnings;my $h = DBI->connect;{local
> $h->{LongReadLen} = 10;print "hello\n";}"
>
> outputs "use of uninitialized variable in subroutine entry" when stepping
> on the statement setting LongReadLen. This does not happen in 5.8.8 on
> Linux.
>
> If you remove the "local" all is ok.
>
> Any ideas why?
I'd hazard a guess that perl is storing an undef before it stores the 10.
Using trace() at a suitable level should show the STORE method calls.
Tim.