Sam
09-23-2003, 04:31 PM
I've got an array named @event which was contrived by splitting a scalar string
ex:
@event=split('<br><br>',"Line1<br><br>Line 2<br><br>Line 3");
#@event[0]=Line1
#@event[1]=Line 2
#@event[2]=Line 3
I then change @event[1] to something else, "Line 4" for example. How would I reverse that split, making the final string "Line1<br><br>Line 4<br><br>Line 3"?
I'm sure this is pretty simple, but help is much appreciated
ex:
@event=split('<br><br>',"Line1<br><br>Line 2<br><br>Line 3");
#@event[0]=Line1
#@event[1]=Line 2
#@event[2]=Line 3
I then change @event[1] to something else, "Line 4" for example. How would I reverse that split, making the final string "Line1<br><br>Line 4<br><br>Line 3"?
I'm sure this is pretty simple, but help is much appreciated