@hoge = (1, 2, 3, 4, 5, 6); # 2, 3番目の値 @foo = (2, 3) @foo = @hoge[1, 2]; # 1〜3番目の値 @bar = (1, 2, 3) @bar = @hoge[0..2]; # 1〜3番目と6番目の値 @baz = (1, 2, 3, 6) @baz = @hoge[0..2, 5];