in reply to Re: defined array question
in thread defined array question

But you're not using defined on an array, you're using defined on an array slice. perldoc -f defined is silent on what this does

Considering that an array slice still returns an array I'd say the behaviour would be the same and should be considered depreciated. The only exception I see is if the slice is just one element, then you are performing defined on a scalar which I assume is still okay. :)

Chris

Lobster Aliens Are attacking the world!

Replies are listed 'Best First'.
Re: Re: Re: defined array question
by davorg (Chancellor) on Aug 30, 2002 at 15:35 UTC
    Considering that an array slice still returns an array I'd say the behaviour would be the same

    Nope. An array slice returns a list, not an array.

    depreciated

    That's "deprecated". "Depreciated" means something completely different.

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

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