in reply to Re: use strict ans begin
in thread use strict and begin

Why would you want to use a package variable and not a lexical one?

Abigail

Replies are listed 'Best First'.
Re: Re: use strict ans begin
by jmcnamara (Monsignor) on Jul 17, 2002 at 11:53 UTC

    You are right. There isn't any obvious reason here to use a package variable instead of a lexical, except perhaps to demonstrate a hole in your knowledge. :-)

    I didn't know that you could declare a variable with my() before a BEGIN block as in your example.

    --
    John.