in reply to Re: Text::CSV not able to execute insert query dynamically.
in thread Text::CSV not able to execute insert query dynamically.

hi...its giving the expected value of $query

'$row->[0]', '$row->[1]', '$row->[2]', '$row->[3]'

Replies are listed 'Best First'.
Re^3: Text::CSV not able to execute insert query dynamically.
by kennethk (Abbot) on Sep 16, 2014 at 20:45 UTC
    But if you don't eval the string, Perl won't know to interpolate the values; it just inserts the literal $row->[0]. See my post above for a better solution.

    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.