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

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

Replies are listed 'Best First'.
Re^5: Use of uninitialized value
by andye (Curate) on Feb 28, 2007 at 17:10 UTC
    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!