Jakub Narebski <jnareb@xxxxxxxxx> writes: >> - my @list = git_get_projects_list((my $filter = $project) =~ s/\.git$//); >> + my ($filter = $project) =~ s/\.git$//; > > This doesn't work: it is syntax error: > > Can't declare scalar assignment in "my" > > It has to be either > > + (my $filter = $project) =~ s/\.git$//; Sorry, that is what I meant. -- 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