in reply to How can I access the values of an "array" extracted using Range

When a variable does not contain what I expected, I grab my most trusted helper: Data::Dumper and add a quick print Dumper($foo); to the program. The data-structure will become clear at once.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics
  • Comment on Re: How can I access the values of an "array" extracted using Range
  • Download Code

Replies are listed 'Best First'.
Re^2: How can I access the values of an "array" extracted using Range
by ralph (Initiate) on Feb 20, 2012 at 04:21 UTC
    Thanks CountZero:

    That's good to know.

    One thing that has surprised me about Perl is how different it is from all the other languages with which I'm vaguely familiar.

    ralph