Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Separating 'real' errors from ..err.. 'unreal'?

by archfool (Monk)
on Jul 13, 2007 at 14:30 UTC ( [id://626448]=note: print w/replies, xml ) Need Help??


in reply to Separating 'real' errors from ..err.. 'unreal'?

You could wrap your call to PPM::Installer in a block and do the following:
{ no warnings 'uninitialized'; PPM::Installer->whatever(...); }

Replies are listed 'Best First'.
Re^2: Separating 'real' errors from ..err.. 'unreal'?
by ethrbunny (Monk) on Jul 13, 2007 at 16:10 UTC
    I was also trying to selectively pipe STDERR to /dev/null but Im getting a "The system cannot find the path specified." error from calling a command that includes "2>/dev/null" in it. I tried with both back-ticks and 'system'.

    I'll give your idea a try. Thanks.

    Addendum: worked great! Thanks **2
      To redirect STDERR to the null device on windows you need to do it as 2>nul.

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://626448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-25 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found