On Thu, Dec 1, 2011 at 5:32 AM, Rob Dixon <rob.di...@gmx.com> wrote: > > If I am understanding you correctly then there is no need for anything > so convoluted as your transpose subroutine. The program below does what > you need. > > HTH, > > Rob > > > use strict; > use warnings; > > my @unknown_abs = ( 0.1, 0.2, 0.35, 0.33, 0.41 ); > > my @unknown_conc = ( 0.729843646443355, 1.47255203636502, 2.58661462124751, > 2.43807294326318, 3.03223965520051 ); > > for my $i (0 .. $#unknown_abs) { > printf "%4.2f %4.2f\n", $unknown_abs[$i], $unknown_conc[$i]; > } >
This one makes sense to me. I was in the last part of writing my program and I couldn't think of a solution so I googled and came up with ideas using list module(failure) and then using transpose which seemed to work. Another bit of coding to add to my knowledge-base. Thanks -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/