Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: How to make warnings disappear

by autark (Friar)
on Dec 16, 2000 at 01:16 UTC ( #46933=note: print w/replies, xml ) Need Help??

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* :-)


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 ?


        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?


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2020-12-01 15:03 GMT
Find Nodes?
    Voting Booth?
    How often do you use taint mode?

    Results (10 votes). Check out past polls.