in reply to how can i modify the array ?
First of all, You really should use CGI.pm, strict, and warnings. With that said: you can easily modify $sign_msg and then join all the variables back one string.
($number, $sign_name, $sign_email, $sign_homepage, $sign_icon, $sign_t +ime, $sign_msg ) = split ( /__/, $line ) ; $sign_msg = "Hello, World!\n"; # Do your modification here $newline = join ( /__/, ($number, $sign_name, $sign_email, $sign_homep +age, $sign_icon, $sign_time, $sign_msg ); push @newarray, $newline;
-Ben Jacobs (dooberwah)
http://dooberwah.perlmonk.org
"one thing i can tell you is you got to be free"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (dooberwah) Re: how can i modify the array ?
by Anonymous Monk on Jun 05, 2002 at 20:12 UTC | |
|
Re: (dooberwah) Re: how can i modify the array ?
by 12monkey (Initiate) on Jun 05, 2002 at 20:21 UTC |