in reply to Re: Incrementing a hash of array value
in thread Incrementing a hash of array value

I thought that at first. But then I realised that they might be deliberately autovivifying the second element of the array.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re^2: Incrementing a hash of array value

Replies are listed 'Best First'.
Re^3: Incrementing a hash of array value
by EdwardG (Vicar) on Jul 23, 2004 at 11:06 UTC

    But that is the root of the OP's problem. They apparently want to increment those 'M01...' strings, relying on the magic of ++.

     

      ...or maybe they want to add some kind of counter in the second element of the array.

      Who knows? There's not enough information. Any assumptions that we make are just... er... assumptions.

      --
      <http://www.dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg