4 ms·
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-]+\.\
by sergeykish 6y ago
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.