- or download this
The third parameter, the input parameter list, specifies how many
arguments the function wants, and their types. It MUST be passed
...
[a, b, c, d]
\@LIST
- or download this
my $arr = [ pack("d",1), pack("d",1.5), pack("d",3) ];
# or as I would do it...
my $arr = [ map { pack 'd', $_ } ( 1, 1.5, 3 ) ];
- or download this
my @arr = map { pack 'd', $_ } ( 1, 1.5, 3 );