in reply to Re^2: Determining presence of odd number of hash elements, other syntax problems
in thread Determining presence of odd number of hash elements, other syntax problems

See perllexwarn (via warnings), especially no warnings 'uninitialized';

  • Comment on Re^3: Determining presence of odd number of hash elements, other syntax problems
  • Download Code

Replies are listed 'Best First'.
Re^4: Determining presence of odd number of hash elements, other syntax problems
by nicku (Novice) on Jul 20, 2011 at 20:25 UTC
    Is there a way to turn those uninitialised warnings off on the command line?

    Yes, but I mean something like this (except actually working): perl -we 'use warnings;no warnings q{uninitialized}; do qq{$file}'

        Note: -w will affect the script and modules, but -M-warnings=uninitialized will only affect the script.
        perl -w -M-warnings=uninitialized -e print+undef

        As we say in Australia, “You little ripper! Your blood‘s worth bottling!” That solves one of the main problems. Thank you.