in reply to Seeking clarification on 'local' in Class::DBI txn code

perldoc -f local

Replies are listed 'Best First'.
Re: perldoc -f local
by Happy-the-monk (Canon) on Mar 21, 2004 at 14:30 UTC

    perldoc -f local

    That doesn't answer the OP's question.
    Interestingly though, in the OP's code there are three lines of useful documentation telling us what it does.
    The question that still needs to be answered is Why does it do it without explicitly setting it to = 0;

    Update:
    The answer is to be found more than just a little below the surface of   perldoc DBI   where it says:

    Also note that in this older form of "connect", the "$dbh->{AutoCommit}" attribute is undefined

    Still not that obvious.

    Sören

      perldoc -f local refers you to perldoc perlsub for details, where it says "If no initializer is given for a particular variable, it is created with an undefined value."