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

He'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.




He didn't point out that directly but I do agree that $_ is overused among perl coders.


I don't think so. As long as there are no issues of nested scopes you should use $_ plenty.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: