Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by perlqs

  1. perlqs

    Accessing element of array of arrays

    This should demonstrate what I'm trying to do: #!/usr/bin/perl use strict; use warnings; my @AoA1 = ([1, 'a'], [2, 'b']); my @AoA2; push @AoA2, @AoA1; $AoA2[0][0] = $AoA1[0][0]; print "$AoA1[0][0], $AoA2[0][0]\n"; $AoA2[0][0] ++; print "$AoA1[0][0], $AoA2[0][0]\n"; Notice that when...
  2. perlqs

    Accessing element of array of arrays

    Hi. I'm a relatively new Perl programmer, and I'd like some help working with two arrays of arrays. I want to store a value from the first one, @AoA1, into the second one, @AoA2, without changing @AoA1. At first I was trying $AoA2[foo][bar] = $AoA1[foo][bar]. Now, I don't even really understand...

Part and Inventory Search

Back
Top