in reply to confused with distances

Probably just an array of arrays for each helix. Make it an AoAoA if you want to have an array of helixes.
my $helix_1 = [[-1.115, 8.537, 7.075], [-2.745, 5.280, 7.165], ...
The first atom is $helix_1[0] and the z component (for example) of that would be $helix_1[0][2].

Update: As johnqq notes, I need to make things agree. I'd probably do

my @helix_1 = ([-1.115....

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^2: confused with distances
by johngg (Canon) on Mar 24, 2006 at 13:42 UTC
    I think you probably need to de-reference $helix_1 as you have created a ref. to a list, not a list.

    The first atom should be $helix_1->[0] and the z component $helix_1->[0]->[2].

    There are other notations to do de-referencing but this is the style I find most readable.

    Cheers,

    JohnGG