From: Martin Langhoff (CatalystIT) Date: Thu, 23 Nov 2006 22:09:58 GMT Subject: Re: [PATCH] git-cvsimport: add suport for CVS pserver method HTTP/1.x proxying Message-ID: <45661C36.9010101@catalyst.net.nz> In-Reply-To: <7v64d5keke.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > Except that this statement made me go "huh?" wondering what it > would do to the $filehandle to evaluate <$filehandle> in a void > context: > > + # Skip the empty line of the proxy server output > + <$s>; It's a perl idiom that will discard one line of the $filehandle. If we are 200% certain that it is empty, then it's fine. OTOH, it may well be a bug in the particular proxy implementation IƱaki is using -- I don't know enough about CVS proxying to tell. > The "I/O Operators" section talks about evaluating <$s> in a > scalar context (i.e. "$rep = <$s>"), which we all know would > return a single line, and in list context, which swallows This is in scalar context, and that's safe to rely on. Whether it is clear enough in this non-Perl-native project... is a good flamewar waiting to happen :-) cheers, martin -- ----------------------------------------------------------------------- Martin @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St OFFICE: +64(4)916-7224 MOB: +64(21)364-017 Make things as simple as possible, but no simpler - Einstein