Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Array qw difference

by hippo (Bishop)
on Nov 29, 2021 at 23:36 UTC ( #11139250=note: print w/replies, xml ) Need Help??

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:  <%-{-{-{-<

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139250]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2022-05-21 08:50 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (76 votes). Check out past polls.