in reply to Re^2: Use of uninitialized value
in thread Use of uninitialized value

Fletch, agreed that it's untidy as it is, but  $code[0].$code[1].$code[2] ne join( ".", @code ).

Best,

andye

Update: Anno is right, I did overlook a pair of quotes. Ignore me. :)

Replies are listed 'Best First'.
Re^4: Use of uninitialized value
by Anno (Deacon) on Feb 28, 2007 at 17:07 UTC
    You overlooked a pair of quotes. Assuming that @code contains three elements, "$code[0].$code[1].$code[2]" is indeed the same as join '.', @code.

    Anno

      Did I?

      Surely if @code = qw(foo bar baz)

      then $code[0].$code[1].$code[2] eq "foobarbaz"

      whereas  (join '.', @code) eq "foo.bar.baz"

      ?

      All the best,

      andye

      Update: You're completely right, I overlooked a pair of quotes. :)

        Update: You're completely right, I overlooked a pair of quotes. :)

        That is because the OP's code was so messy to begin with: one more reason to write it in a saner, more terse way!