quoted
quoted
quoted
quoted
"Johannes" == Johannes Schindelin [off-list ref] writes:
Johannes> + next if $name =~ '/$';
This is misleading. That's a regex there. And it also falsely matches a
string ending in "/\n", but I bet there are parts of git that break on those
filenames too. :)
Consider:
next if $name =~ m{/\z};
which matches precisely when the filename ends in /.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[off-list ref] <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!