Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Perl doesn't give error when module is not found

by Jenda (Abbot)
on Mar 26, 2024 at 14:19 UTC ( [id://11158525]=note: print w/replies, xml ) Need Help??


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

Even if a pair of braces ain't exactly required, it's still better to include them, to make sure your intent is clear. If you wrote it as print Dump($myvar); you'd receive Undefined subroutine &main::Dump called at..., but written like this, the Dumper was treated as a filehandle.

Similar to this:

print STDERR "This is an error!\n";

Jenda
1984 was supposed to be a warning,
not a manual!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11158525]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2025-11-16 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.