bar(); sub bar { (print STDERR "miscellanea") if ( (int rand(10) > 5 ); 1; }
I can think of running it and sending to a file via the shell.. perl x 2> out and then I can look at out, but.. that seems extreme. ..
In reply to capture STDERR from within code? by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |