Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The result I get is:my ($id_snp, $id_assay, $session, $load_set) = @_; #these variables my (@lines) = @_; #this array my $plate_id = $cgi->param('plate'); my $barcode = Verifynumber($plate_id); my $plate = $barcode->{Number}; my $dna_well; $dna_well = $STATEMENTS->get("geno_manifest.sql_lib::get_dnawell", +[$plate, lc$lines[2]]); print "dna_well: $dna_well->[0]->[0]"; print "SNP: $id_snp, assay:$id_assay , session $session, load_set: + $load_set";
Also, the dna_well which is processed in this subroutine hasn't got a problem. Could any one suggest me what I am doing wrong here. And why is that using the array values if used along with the variables. Thanks for you help in advanceSNP: 8925827, assay:67 , session 5884, load_set: 227dna_well: 5381721( + which is right. and the rest of the results are the values of the scalar are from the array @lines). SNP: True, assay:3200768 , session A1, load_set: EPS316120dna_well: 53 +81817SNP: True, assay:3200768 , session A2, load_set: EPS31807
Thanks a lot.True 3200768 A1 EPS316120 8.535 17.575 GG 0.90 True 3200768 A2 EPS318077 8.820 17.126 GG 0.95 True 255 A3 EPS316121 17.084 13.650 GA 0.97 True 3200768 A4 EPS318078 8.541 16.653 GG 0.94 True 16744448 A5 EPS316122 18.267 3.880 AA + 1.00 True 255 A6 EPS318079 13.130 11.004 GA 0.91
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: passing an array and some scalars to a subroutne
by bellaire (Hermit) on Mar 06, 2009 at 13:52 UTC | |
by Anonymous Monk on Mar 06, 2009 at 14:27 UTC | |
Re: passing an array and some scalars to a subroutne
by toolic (Bishop) on Mar 06, 2009 at 14:17 UTC | |
Re: passing an array and some scalars to a subroutne
by olus (Curate) on Mar 06, 2009 at 14:22 UTC | |
Re: passing an array and some scalars to a subroutne
by Bloodnok (Vicar) on Mar 06, 2009 at 14:11 UTC |