in reply to How to keys($array_ref)?

On a side note, I feel I should mention that tthe title of your node is slightly confusing. You're trying to get the keys of a hashref (namely, a reference to hash called %chassis in do_stuff), not of an arrayref.

Replies are listed 'Best First'.
Re^2: How to keys($array_ref)?
by networker2149 (Novice) on Sep 17, 2011 at 02:38 UTC

    sorry about that. I have been modifying this code too much and haven't cleaned up. At one point that variable actually was an array reference. I probably should have fixed it before I posted it online. Thanks all for the help though.