MySQL Forums
Forum List  »  Perl

How to use mysql variable in perl API?
Posted by: yao xiao
Date: February 24, 2010 02:08PM

i am writing a program suing perl API to load file into a mysql database; however, the columns in the file are more than the columns in the table,
so i want to use some dummy variables to retrieve those extra column information, but in mysql, the variable is represented by '@' and '@' means array in perl.

i am just wondering in this case how can i use variable in perl?

i have tried @$var, @{$var}, $@var, none of them works. could anyone help?
Thanks in advance!

Options: ReplyQuote

Written By
How to use mysql variable in perl API?
February 24, 2010 02:08PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.