I am sending a text file with SQL statements via Form to a CGI.
Are you trying to upload a file, or are you just sending the file contents as an ordinary parameter?
I am trying to make the file as a one line (and deleting extra spaces too), to later split them using the ; as delimiters.
The problem is that after the operation, no lines are stored in the array.
Any idea about what is happening?
use CGI; my $cgi_this = new CGI; my $str_file = $cgi_this->param('file'); $str_file =~ s/\s+/ /gs; my @arr_sqlqueries = split (/;/, $str_file); ....
Please show us the form.
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>