Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

shooting yourself in the foot ...

4 views
Skip to first unread message

Tina Mueller

unread,
May 10, 2000, 3:00:00 AM5/10/00
to
hi,

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


Jeff Zucker

unread,
May 10, 2000, 3:00:00 AM5/10/00
to
James Beard wrote:
>
> Hi all,

>
> 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"?

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

James Beard

unread,
May 11, 2000, 3:00:00 AM5/11/00
to

Hi all,

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

The WebDragon

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
In article <391A2049...@citr.com.au>, James Beard
<jmb...@ozemail.com.au> wrote:

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.

Ilmari Karonen

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
In article <391A2049...@citr.com.au>, James Beard wrote:
>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"?

"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.


Tad McClellan

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
On 11 May 2000 09:10:45 GMT, Ilmari Karonen <il...@sci.invalid> wrote:
>In article <391A2049...@citr.com.au>, James Beard wrote:
>>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"?
>
>"You grab the gun and pull the trigger without aiming. The bullet
> hits your foot, which is what Perl assumed you wanted."


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

Andrew Johnson

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
In article <slrn8hlfpr...@magna.metronet.com>,
Tad McClellan <ta...@metronet.com> wrote:
[snip]
> 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

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

Ilya Zakharevich

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
[A complimentary Cc of this posting was sent to Tad McClellan
<ta...@metronet.com>],
who wrote in article <slrn8hlfpr...@magna.metronet.com>:

> 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

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

Tad McClellan

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
On Thu, 11 May 2000 16:55:01 GMT, Andrew Johnson <andrew-...@home.com> wrote:
>In article <slrn8hlfpr...@magna.metronet.com>,
> Tad McClellan <ta...@metronet.com> wrote:
>[snip]
>> 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
>
>I hear that soon a new Foot::Intercede module will even step in
>and take the bullet for you :-)


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

Andrew Johnson

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
In article <slrn8hlu90...@magna.metronet.com>,

Tad McClellan <ta...@metronet.com> wrote:
> On Thu, 11 May 2000 16:55:01 GMT, Andrew Johnson <andrew-...@home.com> wrote:
[snip]

> >
> >I hear that soon a new Foot::Intercede module will even step in
> >and take the bullet for you :-)
>
>
> We can do without the namespace pollution.
>
> There are already lots of those Foot::* modules planned,

[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).

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

Andrews

unread,
May 11, 2000, 3:00:00 AM5/11/00
to
ta...@metronet.com (Tad McClellan) writes:
>
>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
>

And Tom Christiansen says, "you should've used strict and -w !"

-Greg
--
::::::::::::::::::: Greg Andrews ge...@wco.com :::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Roman Stawski

unread,
May 12, 2000, 3:00:00 AM5/12/00
to
Tad McClellan wrote:
>
> Foot::Ball (DWIMs between pointy-ended ball and soccer varieties
> based on locale)
>

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

Peter Heslin

unread,
May 13, 2000, 3:00:00 AM5/13/00
to
On Thu, 11 May 2000 10:10:03 -0400, Tad McClellan <ta...@metronet.com> wrote:
>On 11 May 2000 09:10:45 GMT, Ilmari Karonen <il...@sci.invalid> wrote:
>>In article <391A2049...@citr.com.au>, James Beard wrote:
>>>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"?
>>
>>"You grab the gun and pull the trigger without aiming. The bullet
>> hits your foot, which is what Perl assumed you wanted."
>
>
>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

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

Craig Berry

unread,
May 14, 2000, 3:00:00 AM5/14/00
to
Ilmari Karonen (il...@sci.invalid) wrote:
: >Does anyone have a "shooting yourself in the foot with perl"?

:
: "You grab the gun and pull the trigger without aiming. The bullet
: hits your foot, which is what Perl assumed you wanted."

*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

Csaba Raduly

unread,
May 16, 2000, 3:00:00 AM5/16/00
to
14 May 2000: A formal bug report was sent to Seti@Home, because the
following message originated from p...@no.spam (Peter Heslin) was
reported as containing signs of intelligence:

>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-----

0 new messages