Re: git-cvs-import retries
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 18, 2006, 18:42 UTC
- Message-ID
- <7vvevco6e3.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <mj+md-20060218.130645.5680.albireo@ucw.cz>
Martin Mares <mj@ucw.cz> writes:
> But it did and I finally understand why: _line() can exit not only > by return, but also by falling over when readline() returns undef.
Ah, you are right and I feel stupid. It's been a while since I wrote real Perl code the last time, and forgot that "the last evaluation" rule when I was reading the code.
It did not help that one of the languages I use in my day-job (which I am too ashamed to even name) uses "if fell off at the end return undef" rule X-<.