2 ms·
sigh Why is it all who moan about Perl immediately point to a regex written in perl and cry "Look! That's perl! It's unreadable!" No dumbass, that's a regex, a
by snorkel 18y ago
sigh
Why is it all who moan about Perl immediately point to a regex written in perl and cry "Look! That's perl! It's unreadable!" No dumbass, that's a regex, and regex by the way, looks about the same in every language. It just so happens perl is better at regex than most other languages and perl coders aren't afraid to use it (and unfortunately many abuse it).
- mtts 18y agoHe's not. Read the example again. He's pointing to code that: - uses the implicit $_ variable - twice - and modifies what it points to The regex is just for dramatic effect.
- snorkel 18y agoHe didn't point out that directly but I do agree that $_ is overused among perl coders.
- kingkongrevenge 18y agoI don't think so. As long as there are no issues of nested scopes you should use $_ plenty.