|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Perl doesn't give error when module is not foundby Jenda (Abbot) |
| on Mar 26, 2024 at 14:19 UTC ( [id://11158525]=note: print w/replies, xml ) | Need Help?? |
|
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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||