in reply to Perl Golf Proposal
Keeping in mind that this golf challenge asks for a program rather than a subroutine... :)
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl Golf Proposal
by cLive ;-) (Prior) on May 23, 2001 at 07:01 UTC | |
by chipmunk (Parson) on May 23, 2001 at 07:19 UTC |
In Section
Meditations