Re: Help needed on split & join function.

2001-11-02 Thread Jeff 'japhy' Pinyan
On Nov 2, eventualdeath said: >Statement 1 :- >@read = join ('\n', split(//, @read)); Well, you don't want to use join() here. join() takes a LIST and returns a STRING. If you use it, your array will have ONE element. That doesn't sound terribly useful. (And you've got '\n' where you probabl

Help needed on split & join function.

2001-11-02 Thread eventualdeath
Hi The script below does not do what I want which is to search a guestbook for a particular word and if that word appear, to show the records. Currently, after the script is run, it returns a blank page. I've confirmed that the fault lies with statement 1, in other words, if I replace statement1