FAQ
This fixes the incorrect warning given in this case:

$ perl5.8.7 -we'$^O !~ /xxx/'
Useless use of not in void context at -e line 1.

$ perl5.9.3 -we'$^O !~ /xxx/'
Useless use of negative pattern binding (!~) in void context at -e line 1.

Search Discussions

  • Nicholas Clark at Nov 14, 2005 at 8:34 pm

    On Mon, Nov 14, 2005 at 12:28:16PM -0800, Yitzchak Scott-Thoennes wrote:
    This fixes the incorrect warning given in this case:

    $ perl5.8.7 -we'$^O !~ /xxx/'
    Useless use of not in void context at -e line 1.

    $ perl5.9.3 -we'$^O !~ /xxx/'
    Useless use of negative pattern binding (!~) in void context at -e line 1.
    I don't know.
    It changes a warning. So in one sense it's a new warning.
    [And sadly it wouldn't surprise me if somewhere someone is grepping out that
    'not' warning, and so would get copious error logs or other "fun" if it
    changed.]

    I'd like 5.10. Then I could avoid thinking about this. :-)

    Nicholas Clark
  • Yitzchak Scott-Thoennes at Nov 14, 2005 at 8:50 pm

    On Mon, Nov 14, 2005 at 08:34:20PM +0000, Nicholas Clark wrote:
    On Mon, Nov 14, 2005 at 12:28:16PM -0800, Yitzchak Scott-Thoennes wrote:
    This fixes the incorrect warning given in this case:

    $ perl5.8.7 -we'$^O !~ /xxx/'
    Useless use of not in void context at -e line 1.

    $ perl5.9.3 -we'$^O !~ /xxx/'
    Useless use of negative pattern binding (!~) in void context at -e line 1.
    I don't know.
    It changes a warning. So in one sense it's a new warning.
    [And sadly it wouldn't surprise me if somewhere someone is grepping out that
    'not' warning, and so would get copious error logs or other "fun" if it
    changed.]

    I'd like 5.10. Then I could avoid thinking about this. :-)
    I sympathize.

    I'm checking all the patches I've submitted for maintworthiness, and
    it looks like these should go in:

    [ 21007] By: rgs on 2003/09/02 21:21:27
    Log: Subject: some method calls not autoloaded
    From: Yitzchak Scott-Thoennes <sthoenna@efn.org>
    Date: Tue, 2 Sep 2003 15:06:29 -0700
    Message-ID: <20030902220629.GA2952@efn.org>
    Branch: perl
    ! pod/perlfunc.pod pod/perlsub.pod

    [ 25486] By: rgs on 2005/09/19 12:38:26
    Log: Subject: bleadperl DProf.xs:140: warning: `unused' attribute ignored
    From: Yitzchak Scott-Thoennes <sthoenna@efn.org>
    Date: Sun, 18 Sep 2005 19:46:37 -0700
    Message-ID: <20050919024637.GA2860@efn.org>
    Branch: perl
    ! ext/Devel/DProf/DProf.xs

    [ 25586] By: rgs on 2005/09/23 15:12:03
    Log: Subject: [PATCH] quiet a few warnings
    From: Yitzchak Scott-Thoennes <sthoenna@efn.org>
    Date: Wed, 21 Sep 2005 18:45:56 -0700
    Message-ID: <20050922014555.GA2852@efn.org>
    Branch: perl
    ! cygwin/cygwin.c embed.fnc proto.h


    and the more substantial:

    [ 22163] By: davem on 2004/01/16 19:24:14
    Log: Subject: Re: [perl #24816] Magic vars seem unsure if they are purely numeric
    From: Yitzchak Scott-Thoennes <sthoenna@efn.org>
    Date: Thu, 15 Jan 2004 14:10:37 -0800
    Message-Id: <20040115221037.GA2392@efn.org>

    Add sv_2iv_flags() to allow magic to be optionally processed.
    Branch: perl
    ! doop.c embed.fnc embed.h global.sym pod/perlapi.pod pp.c
    ! proto.h sv.c sv.h t/op/bop.t


    You had some idea to combine various functions instead of just adding
    an sv_2iv_flags, I know, but that sounds like something to work on in
    blead.


    Also, this patch didn't make the Oct 16th cutoff, but is doc-only:

    [ 26047] By: rgs on 2005/11/08 17:35:58
    Log: Subject: [DOC PATCH] mention @-, @+ in perl56delta.pod
    From: Yitzchak Scott-Thoennes <sthoenna@efn.org>
    Date: Tue, 8 Nov 2005 08:46:42 -0800
    Message-ID: <20051108164642.GD7972@efn.org>
    Branch: perl
    ! pod/perl561delta.pod pod/perl56delta.pod

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
categoriesperl
postedNov 14, '05 at 8:30p
activeNov 14, '05 at 8:50p
posts3
users2
websiteperl.org

People

Translate

site design / logo © 2022 Grokbase