in reply to Re: Use of uninitialized value in concatenation (.) or string
in thread Use of uninitialized value in concatenation (.) or string

Read the code again. use strict; is everywhere.
Thanks :)
  • Comment on Re: Re: Use of uninitialized value in concatenation (.) or string

Replies are listed 'Best First'.
Re: Re: Re: Use of uninitialized value in concatenation (.) or string
by KPeter0314 (Deacon) on May 20, 2003 at 22:21 UTC
    What is meant is that use strict; requires that variables be initialized.

    To quote from the perldoc:strict where strict vars is implied by not specifying what to be strict about:

    "strict vars" This generates a compile-time error if you access a variable that wasn't declared via "our" or "use vars", localized via "my()", or wasn't fully qualified.
    The use vars qw($OURVAR) = (); pragma actually declares the variable $OURVAR and initializes it to a known null value instead of leaving it uninitialized. Perl cares about the difference.

    -Kurt