if (defined $opt->{array}) {
my $array_opt = join("\n",@{$array});
$script .= <<EOF;
-OPT=\$(sed -n -e "\$PBS_ARRAYID p"<<'_HERE_DOC_END'
+OPT=\$(sed -n -e "\$PBS_ARRAYID p"<<'_HERE_DOC_END_'
$array_opt
_HERE_DOC_END_
)
exec $command "\$OPT";
EOF
}
- die "--array is currently not implemented";
} else {
$script .= <<EOF;
# there's no array, so just executing the command with arguments