Logo

Programming-Idioms

History of Idiom 134 > diff from v22 to v23

Edit summary for version 23 by dmaestro:
New Perl implementation by user [dmaestro]

Version 22

2017-09-12, 14:22:40

Version 23

2018-08-18, 22:07:08

Idiom #134 Create a new list

Declare and initialize a new list items, containing 3 elements a, b, c.

Idiom #134 Create a new list

Declare and initialize a new list items, containing 3 elements a, b, c.

Extra Keywords
array vector slice tuple
Extra Keywords
array vector slice tuple
Code
my @items = ($a, $b, $c);
Doc URL
https://perldoc.perl.org/perldata.html#List-value-constructors