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

Yes you're right, I didn't use 'warnings' but shouldn't it die anyway?
  • Comment on Re^2: Perl doesn't give error when module is not found

Replies are listed 'Best First'.
Re^3: Perl doesn't give error when module is not found
by choroba (Cardinal) on Mar 26, 2024 at 11:10 UTC
    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]