
July 30th, 1999, 03:21 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
I am trying to write posted information from a form <textarea> into a file.
For reading back from file I am using the following perl:-
open(INFILE, "filename");
@ALLRECORDS = <INFILE>;
close INFILE;
and processing each record with:-
foreach $record (@ALLRECORDS) { }
I cut out the newlines from the textarea value before writing the records to file with:-
$textareavalue =~ s/n/#/g;
This adds the # symbol where I would expect the newlines (n), but still the 'foreach $record' line takes each line of the textarea as a seperate record.
Is there something else I have to cut out with the s/// command?
|