in reply to Pls more operators, e.g. <&&=

I don't really like this idea. Perl gets enough "looks like line noise" flak without adding four- and five-character operators to the mix.

If we were running a poll, the feature I would like to see added to the language is a new function analogous to chop that acts on the beginning of a string rather than the end.



Replies are listed 'Best First'.
Re^2: Pls more operators, e.g. <&&= ( chip and chimp? )
by holli (Monsignor) on Nov 15, 2018 at 20:08 UTC
    I think there is a module that implements chip and chimp but I cannot remember the name.


    You can lead your users to water, but alas, you cannot drown them.
      I agree with this idea. Of course "chip" and "chimp" has its regex alternatives like s/.//s and s/\A${chop}//s, but they could be implemented as standard functions.
      It's a bit of topic, but function which zips two arrays also should be available as a standard function.