- or download this
my @num_weights = [36,264,188];
- or download this
my @sub_array = (36,264,188); ##real array
my @num_weights = (\@sub_array); ##real array containing 1 reference
- or download this
my @num_weights = (36,264,188);
my @leftovers = (1,2,3,4);
...
unshift @num_weights, $pick; #add item
say Dumper(@num_weights);
}
- or download this
$VAR1 = 1;
$VAR2 = 36;
$VAR3 = 264;
$VAR4 = 188;