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

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}'

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

Replies are listed 'Best First'.
Re^5: Determining presence of odd number of hash elements, other syntax problems
by Corion (Patriarch) on Jul 20, 2011 at 20:44 UTC
      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.