Is it possible to add the -w tag to the first line of the perl program, and then run the program from a shell such as bash or dos and write all warnings to a file?
perl somescript.pl > somefile.txt
This is a return to checking COBOL programs at school. I would like all the warnings in front of me on a piece of paper so that I can go through my program and fix them one by one. If the above command does not work, is there a way to programmatically get all script warnings in a file? Thanks guys!
source
share