How do I get detailed information on a warning?
-
To get full details of a warning you can use the diagnostics option, with the -M option of perl or enable it in the program.
#!/usr/bin/perl use diagnostics;
or
$ perl -Mdiagnostics ./yourprog.pl
You can see the output with the diagnostics if you mistype the print statement e.g:
Put this code in a file called hw.pl and run it.
#!/usr/bin/perl use diagnostics; pint "Hello, world!\n"
$ perl hw.pl
© Lightnetics 2024