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

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.




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

Search: