Hacker News new | past | comments | ask | show | jobs | submit login

My most common use of Perl:

     $ someCommandChain | perl -pe 's/because sed regex sucks/'
Maybe I could spend some time learning a new regex dialect to avoid perl entirely, but for the time being this works for me.



Maybe I could spend some time learning a new regex dialect to avoid perl entirely

You should also cut off your nose. It would totally spite your face!


    >     $ someCommandChain | perl -pe 's/because sed regex sucks/'
    >
    > Maybe I could spend some time learning a new regex dialect
Maybe you should first learn the Perl regex dialect (the above regex doesn't parse in Perl).


If it wasn't obvious I just intended to write something informative in there, and couldn't come up with a clever substitution expression that would fit the sentence.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: