You can't mix perls and warnings.pm -- warnings.pm for perl-5.18.2 won't work with perl-5.8.8 -- warnings.pm (and strict.pm...) are tightly connected to the perl they're distributed with
perl 5.8.8 did not have the defined-or operator
Comment on Re: Search pattern not terminated at warnings.pm line 508. ( defined-or)