Re:Four features that justify a new Unix shell
by esaym on Saturday October 24, 2020 @12:58PM
(#24880408)
Space was because HN uses it as italics and I don't know the escape. And yes there are cleaner ways, but the point was a real world example of having something not work out in pure shell but yet quickly barfing out something working with perl. And yes, looks like I didn't escape the dot, funny!
[ Parent
| on HN ]
Re:Four features that justify a new Unix shell
by sergeykish on Sunday October 25, 2020 @08:58AM
(#24885954)
Got it. Sure, I like one liners and I like piping. Ruby is strongly influenced by Perl:
$ find . -iname '*.ogg' | ruby -nle 'puts $1 if $_ =~ /\/([\w-]+\.\w\w\w)$/'
I think the reason people badmouth Perl is because it is safe. People claim PHP improved but all I can see is language without design. JavaScript has lots of bad parts and we should not talk about them. I like AWK matchers though not its functions. I am not familiar with Perl but it is designed.