48 characters:
example usage: perl missing.pl bar .jpg 0000 0050#!perl $m=pop;for$"(pop..$m){$_="@ARGV";-e||warn"$_\n"}
Hurrah for the range operator and magical auto-increment!
As best I can figure it, the only way to accurately accomplish the bonus (checking for a comparison string that's too big) is to check all the files in the directory. Otherwise there could be one file in there with a unique part of the right length.
In reply to Re: Perl Golf Proposal
by chipmunk
in thread Perl Golf Proposal
by sharle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |