in reply to Perl doesn't give error when module is not found

That's because you ignore the advice to always use warnings.

use warnings; print Dumpper 'Hi';

Perl gives us two warnings:

Name "main::Dumpper" used only once: possible typo at ... line 2. print() on unopened filehandle Dumpper at ... line 2.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Perl doesn't give error when module is not found
by Anonymous Monk on Mar 26, 2024 at 11:03 UTC
    Yes you're right, I didn't use 'warnings' but shouldn't it die anyway?
      No. print returns true if successful, and in this case it correctly returns undef.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]