Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 wandering the Monastery: (4)
As of 2015-07-05 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls