On Thu, Sep 16, 2010 at 12:29 PM, Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> wrote: > On Thu, Sep 16, 2010 at 09:31, Giuseppe Bilotta > <giuseppe.bilotta@xxxxxxxxx> wrote: > >> +sub git_get_remotes { >> + my ($limit) = @_; >> + open my $fd, '-|' , git_cmd(), 'remote'; >> + return () unless $fd; >> + my @remotes = map { chomp ; $_ } <$fd>; >> + close $fd or return (); > > return unless $fd; > chomp(my @remotes = <$fd>); > close $fd or return; Thanks a lot. I guess this shows pretty much how Perl is not exactly my primary language 8-) -- Giuseppe "Oblomov" Bilotta -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html