Re: strange error with local and LongReadLen

2008-09-14 Thread Tim Bunce
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 s

strange error with local and LongReadLen

2008-09-12 Thread Martin Evans
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