in reply to Re^2: exists EXPR error
in thread exists EXPR error

Hi Eily

I'm not sure what you mean, this %h{a} is not a hash slice, it has no meaning.

(slices always start with an @ :)

> @array[0] will provoke a warning ... even in list context, 

Hmm not sure if I like that.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

Replies are listed 'Best First'.
Re^4: exists EXPR error
by choroba (Cardinal) on Dec 15, 2014 at 13:58 UTC
    New slice syntax in 5.20:
    %h{ qw(key1 key2) } # Returns: key1 value1 key2 value2
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Thanks, but what's the difference to the old slice syntax?

      Ah got it! ( bad coffee today ;)

      Cheers Rolf

      (addicted to the Perl Programming Language and ☆☆☆☆ :)