Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Inserting more than one entry into a MySql DB

by chromatic (Archbishop)
on Feb 01, 2002 at 19:16 UTC ( #142746=note: print w/replies, xml ) Need Help??


in reply to Inserting more than one entry into a MySql DB

If I read you correctly, you've declared a single element array:
@icodes="CEN01-SJU1-022102A CEN02-MEX1-022702P CTE01-SJU1-022202A CTE02-MEX1-022802P";
In that case, Perl is happily looping through each element of the array, all one entries. How about:
@icodes = ('CEN01-SJU1-022102A', 'CEN02-MEX1-022702P', 'CTE01-SJU1-022202A', 'CTE02-MEX1-022802P');

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://142746]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2023-12-09 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (37 votes). Check out past polls.

    Notices?