#!/usr/bin/perl # by collin chua use Sound::Effect qw~samuraiSwordSound~; use CGI qw~:cgi~; $me = Sound::Effect->new(); $me->set_volume("loud"); # This routine depictng me as how gracious I handle my virtual sword, +even come with superb sound effects too :) &cut_enemy_with_my_katana( $me->get_sound("fast_draw"), $me->get_sound("angular_slash"), $me->get_sound("scabbard_return") ); $me = CGI->new(); # After my valourous deed, its me back to search for more virtual swor +d techniques... $me->redirect('http://www.google.com'); sub cut_enemy_with_katana{ #Very elegant sword techniques but gory details here.... }

Janitored by Arunbear - replaced pre and br with code tags


In reply to Bushido In Perl by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.