James Beard wrote:
> I was just trolling through some old jokes, and I came across
> http://www.users.csbsju.edu/~lziegler/ShootingInFoot.html
I know another version of this great text at
http://userpage.fu-berlin.de/~jansro/ht/foot.html
> Does anyone have a "shooting yourself in the foot with perl"?
not yet, but what about this one:
Download the CPAN module Body::Foot and try
#!/usr/bin/perl -w
use Body::Foot qw(shoot);
shoot or die;
bye,
tina
--
--- ICQ #73179850 --- | _ enter the
http://user.berlin.de/~tina.mueller | __| |___ ___ _ _ ___
---- tina's moviedatabase ----| / _` / _ \/ _ \ '_(_-< of
--search & add comments or reviews--| \__,_\___/\___/_| /__/ perception
Given Perl's love of symbols and brevity, and the sound of the way this
is pronounced, this is not even a one liner, it's a one character:
!
--
Jeff
I was just trolling through some old jokes, and I came across
http://www.users.csbsju.edu/~lziegler/ShootingInFoot.html
Does anyone have a "shooting yourself in the foot with perl"?
Later
James
I have something similar that's missing examples for
RPG:
CGI:
perl:
Tcl/Tk:
Python:
ActiveX:
AppleScript:
Visual Basic:
I got a REAL SERIOUS kick out of the Unix example on that page though
* Falling off the floor laughing :D
any help filling in the blanks would be appreciated though :)
--
send mail to mactech (at) webdragon (dot) net instead of the above address.
this is to prevent spamming. e-mail reply-to's have been altered
to prevent scan software from extracting my address for the purpose
of spamming me, which I hate with a passion bordering on obsession.
"You grab the gun and pull the trigger without aiming. The bullet
hits your foot, which is what Perl assumed you wanted."
--
Ilmari Karonen - http://www.sci.fi/~iltzu/
Please ignore Godzilla and its pseudonyms - do not feed the troll.
Make a trigger pulling motion, and Perl will:
autovivify a gun for you
initialize it with bullets
fire a bullet
move your foot so as to coincide with the bullet's trajectory
say "Ouch!" for you
--
Tad McClellan SGML Consulting
ta...@metronet.com Perl programming
Fort Worth, Texas
I hear that soon a new Foot::Intercede module will even step in
and take the bullet for you :-)
andrew
--
Andrew L. Johnson http://members.home.net/andrew-johnson/epwp.html
well, take it from an old hand: the only reason it would be easier
to program in C is that you can't easily express complex problems
in C, so you don't. -- Erik Naggum, on comp.lang.lisp
This is not entirely correct. To be absolutely sure to do what you
mean, it would also
move feet of 3 your worst enemies at the same position
> say "Ouch!" for you
Due to a historical feature, it would not say "Ouch!" for *them*.
The discussion whether to consider it a bug overloaded the mail
server, so a message with a patch to a bug in the above function
was missed. Due to this bug, Perl would fry a bullet instead of
firing it.
Ilya
We can do without the namespace pollution.
There are already lots of those Foot::* modules planned,
Foot::MouthInsert (I expect I'll find lots of use for that one)
Foot::Athlete's (boo to those 3-level hierarchies and
one-character names...)
Foot::Bone::Connected::To::Ankle::Bone
Foot::Ball (DWIMs between pointy-ended ball and soccer varieties
based on locale)
Foot::Print
It more correctly belongs in the Secret::Service module.
heh, heh
[snip]
> It more correctly belongs in the Secret::Service module.
your points are well taken -- however, it should probably be a pragma
anyway:
use foot 'intercede';
This won't further pollute the Foot:: namespace and still allows for
the 'step in' to take the bullet pun.
regards,
andrew (never underestimate the value of a stupid pun).
--
Andrew L. Johnson http://members.home.net/andrew-johnson/epwp.html
Some people, when confronted with a problem, think 'I know,
I'll use regular expressions.' Now they have two problems.
-- Jamie Zawinski, on comp.lang.emacs
And Tom Christiansen says, "you should've used strict and -w !"
-Greg
--
::::::::::::::::::: Greg Andrews ge...@wco.com :::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Can't DWIM this everywhere... you couldn't necessarily distinguish
between a preference for rugby football or soccer from the locale.
Hmmm, perhaps the locale should be extended in order to handle this...
after all this is vital in many production systems.
--
Roman Stawski - ADPgsi
Excellent! Here is a small modification:
Make a trigger pulling motion, and Perl will autovivify a gun for you,
initialize it with bullets, fire a bullet ... and shoot you in the head --
because `head' is the default operand for that function and you didn't
specify another.
Peter
--
Anti-spam -- Pluck the flower from the following to obtain my
correct e-mail address: Peter....@ucd.rose.ie
*applause* That gets my vote.
--
| Craig Berry - cbe...@cinenet.net
--*-- http://www.cinenet.net/users/cberry/home.html
| "The road of Excess leads to the Palace
of Wisdom" - William Blake
>On Thu, 11 May 2000 10:10:03 -0400, Tad McClellan
[snip]
>
>Make a trigger pulling motion, and Perl will autovivify a gun for
>you, initialize it with bullets, fire a bullet ... and shoot you in
>the head -- because `head' is the default operand for that function
>and you didn't specify another.
>
>Peter
>
I think you're wrong here. You are "shooting yourself *in the foot*",
so there's yer operand :-) If you wanted to "shoot yourself" then yes,
the head is the default operand. All working as expected.
--
Csaba Raduly, Software Developer (OS/2), Sophos Anti-Virus
mailto:csaba....@sophos.com http://www.sophos.com/
US Support +1 888 SOPHOS 9 UK Support +44 1235 559933
Life is complex, with real and imaginary parts.
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCS/IT/MU d- s:- a31 C++$ UL+ P+>+++ L++ E- W+ N++ w++>$ O++$
M-(+) V- PGP- t+ X++ R* tv++ b++ DI+++ D++ G- e+++ h-- r-- !y+
-----END GEEK CODE BLOCK-----