in reply to Perl DBI to MySQL LOAD_FILE
Quick thing I noticed:
'$code'; [download]
Single quotes don't interpolate a variable into its value. Try:
"$code"; [download]
...or depending on the real code:
$code; [download]