in reply to Re: Perl assign scalar to array
in thread Perl assign scalar to array

[This post is obsolete]

@a[2..5] is an array slice, not a hash slice. @h{'a','b'} would be a hash slice.

Replies are listed 'Best First'.
Re^3: Perl assign scalar to array
by davido (Cardinal) on Oct 14, 2015 at 23:16 UTC

    Thanks for finding a typo. Fixed.


    Dave