in reply to Re: Forcing array context on a file handlein thread Forcing array context on a file handle
1 while <$file>; print $.;
Indeed. But that's idiomatic, so lisp programmers probably won't understand it and PerlCritic would probably have an apoplectic hissy fit.
RIP Neil Armstrong
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (330 votes). Check out past polls.