----- Original Message ----- 
From: "$Bill Luebkert" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 31, 2005 4:21 PM
Subject: Re: warning messages on module Win32::Process::Memory


> Sisyphus wrote:
>
> > Those warnings are all generated by Memory.pm  - you could specify 'no
> > warnings' near the start of Memory.pm (or just  comment out 'use
warnings;'
> > in Memory.pm) and all warnings produced by Memory.pm will then be not
seen.
> > (Warnings produced by your script will be unaffected by this.) If you
just
> > wanted to hide only the warnings about uninitialized values that
Memory.pm
> > generates you would specify (in Memory.pm):
>
> Wouldn't it be better to remove the 'bugs' (I use the word loosely) that
> are causing the warnings ?
>

Generally, imho, it is better to remove the "bugs" (used equally, if not
more, loosely).

Maybe that's what the op wants to do .... or maybe he just wants to suppress
those particular warnings. It's not entirely clear to me. If he wants to
remove the "bugs" he'll take note of your advice on how to approach that,
and if he simply wants to selectively suppress warnings then I hope that
what I wrote is of assistance.

I should probably also have mentioned the option of redirecting warnings and
error messages as a means of keeping them from cluttering up stdout:

perl script.pl 2>stderr.log

The advantage of that is that the warnings and error messages are still
available if you need them.

Cheers,
Rob

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to