I have a challenge for the monastery! My wife is working on a painting that makes reference to Magritte's famous Treason of Images. She requested that I provide her with the phrase "This is not a pipe." in perl.
How many different ways can you come up with to say "This is not a pipe" in syntactically correct perl. While this could take the form of a JAPH, I think that something more along the lines of my suggestions below is what she wants.</>
I'll follow up with a post once she's made up her mind as to what she likes.
My ideas:
Update! Fixed dumb mistake in examples, thanks to thor./[^|]/; # Is this not a pipe? /^[^|]$/; # Is none of this a pipe? $this neq 'a pipe'; # $this is not 'a pipe' # Prints this is not a pipe. $image = 'this is a pipe'; s/is /is not /g foreach ($image); print $image;
TGI says moo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: This is not a pipe
by hardburn (Abbot) on Mar 11, 2005 at 19:26 UTC | |
by jhourcle (Prior) on Mar 13, 2005 at 23:59 UTC | |
by hardburn (Abbot) on Mar 14, 2005 at 14:13 UTC | |
by Revelation (Deacon) on Mar 16, 2005 at 22:49 UTC | |
|
Re: This is not a pipe
by pijll (Beadle) on Mar 11, 2005 at 23:26 UTC | |
by Tanktalus (Canon) on Mar 12, 2005 at 01:21 UTC | |
by pijll (Beadle) on Mar 12, 2005 at 13:59 UTC | |
by ChemBoy (Priest) on Mar 14, 2005 at 05:14 UTC | |
by pijll (Beadle) on Mar 14, 2005 at 10:54 UTC | |
by Zaxo (Archbishop) on Mar 12, 2005 at 08:55 UTC | |
by belg4mit (Prior) on Mar 12, 2005 at 12:29 UTC | |
|
Re: This is not a pipe
by Tanktalus (Canon) on Mar 11, 2005 at 22:38 UTC | |
|
Re: This is not a pipe
by idsfa (Vicar) on Mar 11, 2005 at 22:31 UTC | |
|
Re: This is not a pipe
by kscaldef (Pilgrim) on Mar 13, 2005 at 01:05 UTC | |
|
Re: This is not a pipe
by Hero Zzyzzx (Curate) on Mar 11, 2005 at 20:10 UTC | |
|
Re: This is not a pipe
by thor (Priest) on Mar 11, 2005 at 19:36 UTC | |
by TGI (Parson) on Mar 11, 2005 at 19:53 UTC | |
by Roy Johnson (Monsignor) on Mar 12, 2005 at 00:12 UTC | |
by thor (Priest) on Mar 12, 2005 at 05:14 UTC | |
|
Re: This is not a pipe
by sfink (Deacon) on Mar 12, 2005 at 08:10 UTC | |
|
Re: This is not a pipe
by johndageek (Hermit) on Mar 14, 2005 at 16:48 UTC | |
|
Re: This is not a pipe
by Adrade (Pilgrim) on May 09, 2005 at 07:56 UTC | |
|
Re: This is not a pipe
by gmpassos (Priest) on Mar 13, 2005 at 23:27 UTC |