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

I’ve used it for coloring alternating lines differently in UI code, and as a lazy way to log only every so many times some loop runs.

I only know it well because it was covered near the beginning of one of the first programming books I picked up (on Perl 5) and it stuck with me because it seemed wild to me that they had an operator for that.



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

Search: