in reply to Re: What's the opposite of // (err) operator?
in thread What's the opposite of // (err) operator?

On a tangent, your shebang line draws my attention. I remember -w from the distant past. I looked up -s and it parses switches, but this code doesn't use any. So, is this just something you always use for quick test scripts? I also read about -l but don't see what it would be used for. (And does it notice that the following character is not an octnum so it gangs the -w switch and leaves the argument blank?)

Replies are listed 'Best First'.
Re: -slw ?
by ikegami (Patriarch) on May 11, 2011 at 06:57 UTC
      So it makes print act like say?
        So it makes print act like say?

        Yes. I (perhaps not originally so) requested a say be backported to P5. I even implemented it and sent patches to p5p but they were rejected for various spurious reasons.

        I used -l as a substitute in the interim, but it took such a long time that -l had become a habit by the time say became available.

        When I moved to 5.10, I did try to break the habit of -l, but you have to add use feature qw[ say ]; or use 5.010; to the top of every script,and that is harder than -l, so I pretty much gave up on say. On the rare occasions I want to print without a newline, I use printf instead.


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.