Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Exactly the same here, re: Perl.

My brain thinks in Perl's regex language and then I have to translate the inconsistent bits to the language I'm using. Especially in the shell - I'm way more likely to just drop a perl into the pipeline instead of trying to remember how sed/grep/awk (GNU or BSD?) prefer their regex.



hah, I'm the same too, straight to 'perl -lne'. I believe that was one of Larry Wall's goals when creating Perl:

> Perl is kind of designed to make awk and sed semi-obsolete.

https://github.com/Perl/perl5/commit/8d063cd8


GNU grep supports Perl regexp with -P



As does git grep!




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

Search: