I have a database in the form of a text file, where the fields are segregated by a pipe "|" character.
The HTML form that sends the data to my cgi script has many fields. I would like to remove the pipe character from all of the incoming data, if accidentally or intentionally input by the viewer.
So do I have to address each field separately:
etc. etc or is there one generic command that will remove the pipe character from each and every one of the incoming fields.
Thanks for some help.
The HTML form that sends the data to my cgi script has many fields. I would like to remove the pipe character from all of the incoming data, if accidentally or intentionally input by the viewer.
So do I have to address each field separately:
Code:
$f_name =~ s/\|//g;
$l_name =~ s/\|//g;
$address =~ s/\|//g;
Thanks for some help.