ACJavascript has asked for the wisdom of the Perl Monks concerning the following question:
HEY AGAIN! hehe Heres another stupid question by me hehe :D
I am trying to have an array of Words seperated by commas " , " -- Now when the user types in some words if they say a swear the scripts looks through the array and puts a **** in the words place.. Now I can get it to do it but for some reason it only works for the first word in the array.. So PLEASE HELP Hehe...
Thats pretty much it, Any help is much appreciated!
Thanks!!
I am trying to have an array of Words seperated by commas " , " -- Now when the user types in some words if they say a swear the scripts looks through the array and puts a **** in the words place.. Now I can get it to do it but for some reason it only works for the first word in the array.. So PLEASE HELP Hehe...
open(info,"thedatabase.db"); @bb=<info>; close(info); foreach $l(@bb){ $comment = s/$l/****/g; }
Thats pretty much it, Any help is much appreciated!
Thanks!!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Array Trouble!
by The Mad Hatter (Priest) on Apr 10, 2003 at 00:29 UTC | |
by ACJavascript (Acolyte) on Apr 10, 2003 at 01:28 UTC | |
Re: Array Trouble!
by dvergin (Monsignor) on Apr 10, 2003 at 21:37 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom