#!/usr/bin/perl package Quest; sub new { bless { type => "seek grail", who => "arthur and his knights" }; } sub go_at_it { goto CASTLE; CASTLE: my $obstacle = new French (accent => "outrageous"); $obstacle->greet("Hello"); $obstacle->confess("I am King Arthur"); $obstacle->offer("join our quest") if $obstacle->request("shelter" +); $obstacle->open(CASTLE) && seek($obstacle->{master}{grail}); $obstacle->query("why",&Scalar::Util:blessed($obstacle),"in englan +d?"); if ($! =~ /cow/){ die "Run away!" }; } sub MYOB { threaten(caller()); } package French; sub new { my $pkg = shift; bless { @_ }, $pkg; } sub greet { return "'Allo. Whoo is eet?"; } sub confess { my $self = shift; $self->{master} = "Guy de Loimbard"; return $self->{master}; } sub offer { my $grail = new Acme::Pretence::Grail; tell $others, { $self->tell(caller(),$self->{master}{grail} == 1) +}; return "He's already got one, you see?"; } sub open { if caller() eq 'english' return caller() = 'pig'; } sub query { caller()->MYOB(); } sub threaten { caller != frightening && caller == pig-dog; # must make bigint type + thing to substact dogs from pigs and stuff close(caller()->{socket}), delete(caller()->{head}); kill FART => caller()->pid(); goto &Acolyte::Taunt; }


Update: Dyslexia strikes again. nights were made knights.

-nuffin
zz zZ Z Z #!perl

In reply to Re: Taunt by nothingmuch
in thread Taunt by Acolyte

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.