Personally, I haven't ever used chop except in the occasional obfu or golf.. having to look up the substr arguments wouldn't be any noteworthy pain since I just don't need chop that often. Actually, I need substr fairly frequently, so I wouldn't have to look it up at all. :-)

I suppose a few people might miss chop, but I won't be one of them. Just like some people have less use for substr than me. I do think that it is one of the things that you may want to keep because we've always had it just as well as ditch cause it's hardly much use.

So the question is, would it hurt to keep around? I think one argument in favour of ditching is that it's one less thing to advise beginners about.

I don't know. I see your point that this one specific operation will be a lot more awkward afterwards, and I concede that. What I'm not sure about is the significance of that argument. Count me as undecided, with a tendency towards ditching.

Makeshifts last the longest.


In reply to Re: a farewell to chop by Aristotle
in thread a farewell to chop by John M. Dlugosz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.