Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

The Lighter Side of Perl Culture (Part IV): Golf

by eyepopslikeamosquito (Chancellor)
on Mar 06, 2005 at 12:30 UTC ( #437032=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
          class HelloWorldApp {
             public static void main(String[] args) {
                System.out.println("Hello World!");
             }
          }
    
  2. or download this
    print "Hello World\n";
    
  3. or download this
    say "Hello World";
    
  4. or download this
    : >Well, if that's your goal, you're gonna have to work a little harde
    +r.
    : >I sent this out last week, but it never made it off my machine.  It
    +'s
    ...
    Well, hey, I said you'd have to work a *little* harder, not a lot hard
    +er.  :-)
    
    Larry
    
  5. or download this
    1  Ton Hospel                 $ 4,384,000.00 (10/13)
    2  Rick Klement               $ 3,712,000.00 (12/13)
    3  Eugene van der Pijll       $ 3,540,000.00 (10/13)
    4  Stephen Turner             $ 1,955,200.00 (11/13)
    5  Mtv Europe                 $ 1,837,040.00 (9/13)
    
  6. or download this
    sub
    b{[@b=(abs||No,bottle."s"x!!++$_,of,beer),on,the,wall]}print
    "@{+b},\n@b,\nTake one down, pass it around,\n@{+b}.\n"
    for-pop||-99..-1
    
  7. or download this
    : OK.  Still, it'd be nice to get anonymous scalars somehow.
    
    The Huffman encoding of that is do{\my$x}.
    
  8. or download this
    Golfing Technique                     Inventor           Year
    -----------------                     --------           ----
    ...
    -i and $^I for data value             The Sperling       2002
    Control @- via regex parens aka       The ySas           2008
    ySas' device, see [id://851128]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://437032]
Approved by Corion
Front-paged by rlb3
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-30 06:06 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 (270 votes), past polls