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

With regards to BEGIN

The only reason AWK needs a BEGIN is due to it's implied data loop. As far as I know perl has an explicit data loop and as such needs no BEGIN.

Oh god, perl has an implied data loop mode doesn't it. Sigh, now I am reading perl manpages to find out.

Update: of course it does, -n or -p





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

Search: