in reply to Re^2: Short version of database push for multiple variables
in thread Short version of database push for multiple variables

In case the original version doesn't work for you (error "Search pattern not terminated at ..."), your Perl might be too old (<5.10).  In this case, you could say instead

my @a = map defined $_ ? $_ : 'NA', split /\t/, $line;

Or upgrade Perl.

Replies are listed 'Best First'.
Re^4: Short version of database push for multiple variables
by Anonymous Monk on May 13, 2012 at 18:18 UTC
    My version is 5.8.5. When I try your code I get the following error; Did not find leading dereferencer, detected at offset 14434String found where operator expected at Process.pl line 146, near "// 'NA'" Thanks for your help!
      ... near "// 'NA'"

      There is no "//" in my code, so it's unlikely you'd get this error :)