Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
P is for Practical
 
PerlMonks

Perl Poetry

 | Log in | Create a new user | The Monastery Gates | Super Search | 
 | Seekers of Perl Wisdom | Meditations | PerlMonks Discussion | 
 | Obfuscation | Reviews | Cool Uses For Perl | Perl News | Q&A | Tutorials | 
 | Poetry | Recent Threads | Newest Nodes | Donate | What's New | 

( #1590=superdoc: print w/ replies, xml ) Need Help??
"Poetry" is in the eye of the beholder; it could be any of:
  • Poetry written in Perl
  • Using perl to generate poetry
  • Poetry about Perl/PerlMonks
New Poems
Haiku to Stubborn Forgetfulness
on Nov 06, 2009 at 15:01
1 direct reply by ack
    Tired are my fingers. Slap my forehead with my palm. Must learn to use strict!
    ack Albuquerque, NM

[Offer your reply]
the best shuffle algorithm
on Oct 24, 2009 at 10:02
1 direct reply by zentara
    use Soupy; my $shuffle_your_worries_away = 1; do( Soupy_Shuffle() ) && $shuffle_your_worries_away;

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku

[Offer your reply]
Tao Te Ching Chapter 79
on Oct 20, 2009 at 15:37
0 direct replies by NateTut
    Apologies to Lao Tzu & Stephen Mitchell
    # # Tao Te Ching # # By Lao Tzu # # Translated By Stephen Mitchel +l # # Chapter 79 # sub Failure { # Failure is an opportunity. print 'Blame';} # If you blame someone else, while (1){print 'Blame';} # there is no end to the blame. # sub Master { # Therefore the Master my $Obligation++; # fulfills her own obligations my $Mistakes--; # and corrects her own mistakes +. do {my $Needed++} until (my $Done); # She does what she needs to do my $Others = 0;} # and demands nothing of others +.

[Offer your reply]
From C++ class
on Oct 05, 2009 at 16:18
1 direct reply by Anonymous Monk
    It's not the most eloquent way to put it, and it's still got some code structure instead simply flowing, but I've never tried this before. It's venting/jest.
    #!/usr/bin/perl use strict; open (BLACKBOARD, "+>blackboard"); #look around no strict; use less 'time'; my $hand = 'reluctant'; @chalk = 'obsolete'; sub cheat {print BLACKBOARD "I will not use Perl in C class\n";} until ($caught) { use warnings; &cheat; $teacher_enters = int(rand(10)); if ($teacher_enters == 1) { no warnings; $caught = "red handed"; close BLACKBOARD; delete @chalk[1,2,4]; } else {redo} } die "You are not to use Perl in C class, start the assignment again!";

[Offer your reply]
Ice cream and cake!
on Sep 12, 2009 at 14:53
1 direct reply by bv

    Hint

    #!/usr/bin/perl use 5.10.0;use strict; my ($ice_cream, $cake, @cookies); verse1( $ice_cream, $cake & $cake ); verse2( $ice_cream & $cake ); verse3( split /,/, "slip,"x3 . "slide" ); verse4(); verse2( $ice_cream and $cake ); map { s/_/ /g; say $_," ice cream n cake" } qw( Now_who_dat_is_with_the Party_aint_live_without_the Whatcha_wa +nt_some All_the_kids_like ); verse2( "$ice_cream and $cake" ); verse3( ("slip,"x3 . "slide") =~ m/(\w*)/g ); verse4(); verse2( $ice_cream && $cake ); verse1( $ice_cream, $cake + $cake ); ($ice_cream and @cookies) xor eat($ice_cream, @cookies); sub verse1 { for ( 1 .. 4 ) { say $_[0] and $_[1]; } } sub verse2 { for ( 1 .. 4 ) { say $_[0]; do{ $_[0] }; } } sub verse3 { say time, join(', ', @_); say join(', ', @_[0..2]) and $_[3] for (1 .. 2); $SIG{STOP} = sub { sleep 1; TAG_TEAM: } } sub verse4 { my $boy; $SIG{ALRM} = sub { say "slip n slide" }; ride( $boy ), kill (ALRM, $$) for (1 .. 3); sleep 1; map { $_++ } ($ice_cream, $cake); } sub ride { say "Whee!" }; sub eat { say "YUM!"; } __END__
    print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))

[Offer your reply]
Frustration and not giving up.
on Sep 08, 2009 at 19:32
1 direct reply by agent_smith
    I was stuck on something @work today and wanted to give up, but this struck me as I stared at the problem for the 100th time. Be gentle, it's my first time.
    if ( $at[0] !~ /succeed/ ) { try(); try(); }

[Offer your reply]
Golden slumbers
on Sep 03, 2009 at 10:33
0 direct replies by bronto
    # The Beatles, again sleep $pretty_darling ; do { not $cry and $i } ; WILL_SING: $a_lullaby ;

    Ciao!
    --bronto


    In theory, there is no difference between theory and practice. In practice, there is.

[Offer your reply]
poetry generator (playing with Win32::OLE::Excel )
on Sep 03, 2009 at 08:50
1 direct reply by Ratazong
    Why are the PerlMonks working?
    They're hacking and golfing so fine.
    And thinking and singing and smiling,
    Cause seeking perl wisdom takes time!


    Dear fellow monks!
    Above is an exemplary output of my perl poetry generator, a small piece of code I wrote to learn about multi-dimensional arrays and Win32::OLE::Excel.
    It is a port of a Pascal-program I created ~20 years ago ... any hint on how may I make it more "perlish"?
    best regards
    Rata

    #!/usr/bin/perl -w use strict; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Excel'; my $Excel = Win32::OLE->new('Excel.Application', 'Quit'); my $sheet = $Excel->Workbooks->Open($ARGV[0])->Sheets->item("words"); + # note to myself: add error handling here! my @words; foreach my $col('A'..'F') { my $row=1; my @list = (); my @value = (); do { @value= $sheet->Range("$col".$row++)->{'Value'}; if (defined ($value[0])) { push (@list, $value[0]); } } while(defined ($value[0])); push (@words, \@list); } my $rhyme = int(rand( scalar(@{$words[4]}) )); my $poem = $words[0][int(rand( scalar(@{$words[0]})))]." are ".$words[ +1][int(rand( scalar(@{$words[1]})))]." ".$words[2][int(rand( scalar(@ +{$words[2]})))]."?\n". "They're ".$words[2][int(rand( scalar(@{$words[2]})))]." an +d ".$words[2][int(rand( scalar(@{$words[2]})))]." ".$words[4][$rhyme] +.".\n". "And ".$words[2][int(rand( scalar(@{$words[2]})))]." and ". +$words[2][int(rand( scalar(@{$words[2]})))]." and ".$words[2][int(ran +d( scalar(@{$words[2]})))].",\n". "Cause ".$words[2][int(rand( scalar(@{$words[2]})))]." ".$w +ords[3][int(rand( scalar(@{$words[3]})))]." ".$words[5][$rhyme]."!\n" +; print ("$poem\n"); $Excel->Speech->speak($poem); # let us hear it! exit 0; #Provide the name of an Excel-file as parameter! #Excel content (in a sheet called "words"): # # A B C D E F #Why the PerlMonks coding perl wisdom in vain is pain #Where the people hacking c-sharp like none is fun #How the fanboys smiling unix so fine takes time # great coders thinking posix # small thinkerslearning shell scripts # code monkeys asking java # writing # pasting # ...

[Offer your reply]
A New Journey to Perl
on Aug 25, 2009 at 00:13
0 direct replies by ack
    Young neighbor learns Perl. Wonders if it is worth it. Patience; "You will see."
    ack Albuquerque, NM

[Offer your reply]
P E R L
on Aug 13, 2009 at 04:26
0 direct replies by abubacker


    People are Eager to Rescue the Learners


[Offer your reply]
 (1-10) of 300 Next entries--> 

Add your poem
Title:
Text


  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Login:
    Password
    remember me
    What's my password?
    Create A New User

    Community Ads
    Chatterbox
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users
    Others taking refuge in the Monastery: (11)
    Corion
    GrandFather
    atcroft
    Gavin
    herveus
    Eyck
    biohisham
    djp
    goeb
    gnosti
    darkman0101
    As of 2009-11-21 10:07 GMT
    Sections
    The Monastery Gates
    Seekers of Perl Wisdom
    Meditations
    PerlMonks Discussion
    Categorized Q&A
    Tutorials
    Obfuscated Code
    Perl Poetry
    Cool Uses for Perl
    Perl News
    Information
    PerlMonks FAQ
    Guide to the Monastery
    What's New at PerlMonks
    Voting/Experience System
    Tutorials
    Reviews
    Library
    Perl FAQs
    Other Info Sources
    Find Nodes
    Nodes You Wrote
    Super Search
    List Nodes By Users
    Newest Nodes
    Recently Active Threads
    Selected Best Nodes
    Best Nodes
    Worst Nodes
    Saints in our Book
    Leftovers
    The St. Larry Wall Shrine
    Offering Plate
    Awards
    Craft
    Snippets Section
    Code Catacombs
    Quests
    Editor Requests
    Buy PerlMonks Gear
    PerlMonks Merchandise
    Planet Perl
    Perlsphere
    Use Perl
    Perl.com
    Perl 5 Wiki
    Perl Jobs
    Perl Mongers
    Perl Directory
    Perl documentation
    CPAN
    Random Node
    Voting Booth

    Future historians will find that the material characteristic of the current era is...

    Aluminium
    Plastic
    Oil
    Water
    Carbon dioxide
    Copper
    Iron
    Silicon
    Salt
    Uranium
    Hydrogen
    Other

    Results (729 votes), past polls