Or at least it looks like you're mixing up $flatfile, $filename and $linename in several places.
also a couple of useless things that are in your code:
is the same as@flatfields = ("$sys_time", "$consent", "$user_name", "$company", "$u +ser_email");
since those values are already strings (and even if they weren't, perl will convert them for you when you treat them as strings anyway).@flatfields = ($sys_time, $consent, $user_name, $company, $user_email +);
And map{} does a local $_ already, so there's no need to do an explicit local $_ in your code.
So taking all that in account, you may want
instead.$linename = join(",", map { s/"/""/g; qq("$_") } $sys_time, $consent, +$user_name, $company, $user_email);
In reply to Re: a classic : 'Premature end of script headers' problem
by Joost
in thread a classic : 'Premature end of script headers' problem
by hmbscully
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |