Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Golf: Improve this guy's fail . . . please!

by shmem (Canon)
on Jul 01, 2009 at 00:38 UTC ( #776221=note: print w/ replies, xml ) Need Help??


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


Comment on Re: Golf: Improve this guy's fail . . . please!
Select or Download Code
Re^2: Golf: Improve this guy's fail . . . please!
by ikegami (Pope) on Jul 01, 2009 at 01:04 UTC
      Now that is evil!


      holli

      You can lead your users to water, but alas, you cannot drown them.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://776221]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2014-08-31 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls