in reply to Golf: Improve this guy's fail . . . please!
Erm... sure 'yes we can'. But more fun than golf (and more valuable to the blogger) would be: count the errors. Arbitrary section picked at a glance:
sub fill_hash { # get filename print "Enter 'ls' or a filename to scan: "; my $file_name = shift || ; while ($file_name =~ m/^ls/) { system("$file_name"); print "\nEnter 'ls' or a filename to scan: "; $file_name = ; }
WTF? for sure,
syntax error at foo line xx, near "|| ;"
Ah well... golf, then :-)
map{$s{$_}++}/./gfor<>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Golf: Improve this guy's fail . . . please!
by ikegami (Patriarch) on Jul 01, 2009 at 01:04 UTC | |
by holli (Abbot) on Jul 24, 2009 at 20:48 UTC |