in reply to Re^3: For the life of me, i can't figure out this "use strict" variable problem
in thread For the life of me, i can't figure out this "use strict" variable problem

I gave both of those a try, but didn't seem to have any luck
my $cfg = new Config::Simple($config_file) || die "ARGG!"; my %Config; eval { %Config = $cfg->vars() }; if ($0) { die "CRITICAL: $config_file is not a valid INI file!\n"; }
... any other ideas? Thanks a bunch BTW :-)
  • Comment on Re^4: For the life of me, i can't figure out this "use strict" variable problem
  • Download Code

Replies are listed 'Best First'.
Re^5: For the life of me, i can't figure out this "use strict" variable problem
by Golo (Friar) on Oct 24, 2004 at 21:43 UTC
    ARGG! at D:\Perl-1.pl line 9, <FH> line 3.
    dies fine for me (suppling a bogus text file as config). Maybe your script dies at a later point. Maybe the problem lies in your supplied config file?

    Take a close look at your config file (line 16 as C::S suggests).
    Try to nail the problem down to the real line using the debugger or by adding checkpoint prints.
Re^5: For the life of me, i can't figure out this "use strict" variable problem
by Arunbear (Prior) on Oct 25, 2004 at 08:40 UTC
    You have made a typing error in the if statement: $0 should be $@