How to suppress non fatal messages

Discussion in 'Perl Misc' started by Nene, Mar 11, 2011.

  1. Nene

    Nene Guest

    Hi,
    The modules works but it prints out some nonfatal message to the
    screen, how do I suppress that?


    pty_allocate(nonfatal): posix_openpt(): Success at /usr/lib/perl5/
    site_perl/5.8.8/i686-linux/IO/Pty.pm line 24.



    pty_allocate(nonfatal): posix_openpt(): Success at /usr/lib/perl5/
    site_perl/5.8.8/i686-linux/IO/Pty.pm line 24.
    Nene, Mar 11, 2011
    #1
    1. Advertising

  2. Nene

    ilovelinux Guest

    On 11 mrt, 15:04, Nene <> wrote:
    > Hi,
    > The modules works but it prints out some nonfatal message to the
    > screen, how do I suppress that?
    >
    > pty_allocate(nonfatal): posix_openpt(): Success at /usr/lib/perl5/
    > site_perl/5.8.8/i686-linux/IO/Pty.pm line 24.


    I could not test it, but try enclosing the offending statement in a do-
    block with "no warnings":

    my $pty = do { no warnings; IO::pty->new() };

    This will suppress other, useful warnings as well, so I think this is
    a bug in IO/Tty/Tty.xs, see http://cpansearch.perl.org/src/TODDR/IO-Tty-1.10/Tty.xs,
    near line 464.
    ilovelinux, Mar 15, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Clive
    Replies:
    0
    Views:
    3,006
    Clive
    Aug 12, 2003
  2. =?Utf-8?B?UGFjZXIgRGF3bg==?=

    How do I suppress the display of validation messages

    =?Utf-8?B?UGFjZXIgRGF3bg==?=, May 25, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    576
    Jimi200478
    May 25, 2006
  3. Replies:
    6
    Views:
    762
  4. Ioannis Vranos
    Replies:
    2
    Views:
    285
    Ian Collins
    Apr 17, 2009
  5. Replies:
    1
    Views:
    152
Loading...

Share This Page