in reply to passing an array and some scalars to a subroutne

First off, I have pretty much no idea what you were trying to say, your description is incomprehensible. However, just looking at your code:
my ($id_snp, $id_assay, $session, $load_set) = @_; #these variables my (@lines) = @_; #this array
The value of @_ doesn't change between these two lines. That means that the first four values of @lines are going to be the same as the four variables you grab on the first line. Is that what you are trying to do, or is the value of @lines supposed to be the arguments after those four?

Replies are listed 'Best First'.
Re^2: passing an array and some scalars to a subroutne
by Anonymous Monk on Mar 06, 2009 at 14:27 UTC
    Hi,
    Sorry I dint mention that they both are different. @lines is a slurp of a tab delimited file where as the $id_snp, $id_assay, $session, $load_set are values from the database. I need all these values to be loaded into another table in this subroutine. Thanks a lot.