http://qs321.pair.com?node_id=46933


in reply to How to make warnings disappear

I bumped into this feature while reading some of the scripts in the eg/ directory (of the perl installation). A lot of, uhm, interesting code in there :-)

The "fun" thing about this is that it is a feature we all depend on almost every day (hint: module writing).

Oh, the joys of deprecated constructs, perl -e '@a{a,b,c,d} = (); do { print if $_ NE d } for keys a'

*shrug* :-)

Autark.

Replies are listed 'Best First'.
Re: How to make warnings disappear
by Dominus (Parson) on Dec 16, 2000 at 01:18 UTC
    NE isn't just deprecated any more. I actually got rid of it for good in 5.6.1.

    And good riddance.

      Could that be called constructive destruction ? :-)

      I was just thinking, why hasn't this "disgusting" "ignore" business been deprecated ? Then again, I guess that would be counterintuitive. After all, they were introduced to avoid warnings from -w. But they could surely be removed all together ? As long as they match m/\w+/ or some such ?

      Autark.

        Says autark:
        > I was just thinking, why hasn't this
        > "disgusting" "ignore" business been deprecated ?
        Excuse me? Please think about what you are saying!

        Just how do you propose to deprecate the absence of a warning? Maybe you want Perl to emit a warning message that says Useless use of "ig" constant in void context may produce a warning in a future version of Perl?

        Huh?