http://www.perlmonks.org?node_id=776221


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<>