http://qs1969.pair.com?node_id=11139250


in reply to Array qw difference

The code as it stands makes no sense. You fill @tests on line 3 with strings and then immediately clobber it with an AoA on line 5. You are using neither strict nor warnings - why not?

See also I know what I mean. Why don't you?


🦛

Replies are listed 'Best First'.
Re^2: Array qw difference
by dnamonk (Acolyte) on Nov 29, 2021 at 23:41 UTC
    Sorry, I forgot to use #comments for the first array @tests. Also strict and warning. I am just trying to understand why the array assignment is behaving differently between the two. Ah okay you mean the 2nd one is an array of array. Okay, I understand now. It's an array within an array. Got it! Thanks

      The AoA, HoH, etc., nomenclature is discussed at length in the Perl Data Structures Cookbook (perldsc).

      Update: BTW: You've once again updated a post without citation. Naughty, naughty!


      Give a man a fish:  <%-{-{-{-<