in reply to Re: "Useless use of a constant" in grep block?
in thread "Useless use of a constant" in grep block?

So, either you're using some other version (please state which), or the code you posted is not the code that generated that warning.
Or option 3: The point of the OP wasn't "why did I get this warning?", but, rather, "I made this mistake and didn't get a warning. Maybe it should issue one?"
  • Comment on Re^2: "Useless use of a constant" in grep block?

Replies are listed 'Best First'.
Re^3: "Useless use of a constant" in grep block?
by kcott (Archbishop) on Aug 02, 2017 at 01:44 UTC

    Firstly, my apologies for the late reply. I usually log in daily; this week I skipped a couple of days.

    I read the quote in the title ("Useless use of a constant") as the message received after making "a stupid mistake"; and the quote in the body ("Probably useless use of a constant ...") as the preferred message.

    On rereading, I think you're right and my interpretation was incorrect.

    — Ken