in reply to perl suppressing warnings when executing java class
Why are you doing print `$command`?! That's pretty silly; why capture the output instead of letting it print, and then do nothing but print it?
To hide the warnings, why not simply redirect STDERR to null? Or alternatively, redirect STDOUT to a file and save the data directly.
PS: "0 down vote favorite"? Good way to collect some downvotes for trying to tell people how to vote.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl suppressing warnings when executing java class
by sandeepda (Novice) on May 13, 2013 at 21:19 UTC | |
by tobyink (Canon) on May 13, 2013 at 21:31 UTC | |
by Old_Gray_Bear (Bishop) on May 13, 2013 at 23:27 UTC |