A Goon
Some people are only alive because it is illegal to shoot them.
- Rasheman
Liz and I have been together for 16.584 years. Yay us!
Modified: August 09 2006.
Hits: 6814157/10582075
User: Anonymous Coward
Time: 0.04 seconds.

Read Message

LamePerson =~ s/Psycho Sam/Tridus/g; # hehehe - oh, wait...

Author: The Lord DebtAngel ()
Date: 2000-05-10 00:00:00

...wasn't I told to stop coding in my subjects?

Ah, if Tridus doesn't like it he can start a flame war.

NOTE: it took me three tries, but I finally got it right. I edited this once to spell Pshycho Sam correctly, and a second time to put in the ~, because without it Perl wouldn't know that it's supposed to parse out the regular expression.

Is it not nifty? Sluggy Freelance. Worship the comic.

Come on people! Only 50 or so posts to go, and we've tied our record! We can do it people! - Psycho Sam! - 2000-05-10 00:00:00
-Even better: $lameperson =~ s#[^\W\S\N\.]Psycho Sam\!#$lamercount#gei; - /Dev/Null - 2000-05-10 00:00:00
--*feels stupid* - SoulTaker - 2000-05-10 00:00:00
--ummm....this is beyond my elementary knowledge - The Lord DebtAngel - 2000-05-10 00:00:00
---*laughs* Let's see if anyone else gets it. - /Dev/Null - 2000-05-10 00:00:00
----Sheesh... There's no way someone can guess the meaning of all those parameters... - SoulTaker - 2000-05-10 00:00:00
-----(Points to www.perl.com) - /Dev/Null - 2000-05-10 00:00:00
-Hey wow! This 'someone say something controversial' thing really worked! look at that thread! - Psycho Sam! - 2000-05-10 00:00:00
-BTW, could you put that back into the Genreal info without causing any problems? - Psycho Sam! - 2000-05-10 00:00:00
--no.. its way too cpu intensive to do a count operation on the db now. - Tridus - 2000-05-10 00:00:00
---Couldn't you trick it into doing it? - Psycho Sam! - 2000-05-10 00:00:00
----no... see it still has to run the entire query to find the highest one. - Tridus - 2000-05-10 00:00:00
----Well... - RStefan01 - 2000-05-10 00:00:00
-PSYCHO SAM IS LAME! - Tridus - 2000-05-10 00:00:00
--LamePerson =~ s/Psycho Sam/Tridus/g; # hehehe - oh, wait... - The Lord DebtAngel - 2000-05-10 00:00:00
---Actually, that statement would generate an error, since you forgot the tilde. :P - /Dev/Null - 2000-05-10 00:00:00
----(Edits comment) Done! - The Lord DebtAngel - 2000-05-10 00:00:00
-----Indeed I did. Good boy. - /Dev/Null - 2000-05-10 00:00:00
---Long live Perl! Hip hip, HUZZAH! Hip hip, HUZZAH! Hip hip, HUZZAH! - /Dev/Null - 2000-05-10 00:00:00
----now I see what it does, its lameperson = replace(sometext,'Psycho Sam','Tridus',1) - Tridus - 2000-05-10 00:00:00
-----Feh. Your command takes 53 charachters, whereas Debt's takes 36. YOU LOOSE! - /Dev/Null - 2000-05-10 00:00:00
---*tries to figure out what that code does* - Tridus - 2000-05-10 00:00:00
----Takes the String $LamePerson and replaces every instance of 'Phsyco sam' with 'Tridus' - /Dev/Null - 2000-05-10 00:00:00
-----oh thanks! .. *thinks about that for a minute* hey wait a sec! Thats mean! - Tridus - 2000-05-10 00:00:00
------No no no no no... It's CONTROVERSIAL, not mean. >=) - Psycho Sam! - 2000-05-10 00:00:00
-------you just hush! :-) *tries to dig himself out of this hole* - Tridus - 2000-05-10 00:00:00
--------*throws the dirt back into the hole.* - -=General=- - 2000-05-10 00:00:00
---------*digs the dirt back up, throws -=General=- into the hole, and throws the dirt back in the hole* - SoulTaker - 2000-05-10 00:00:00
----------*knocks SoulTaker out with a shovel* - -=General=- - 2000-05-10 00:00:00
--That's not controversial, that's just mean! - Psycho Sam! - 2000-05-10 00:00:00
---oh... well. umm.... hmm.... I don't know then. - Tridus - 2000-05-10 00:00:00