in reply to Re^2: How can I convert my script for submitting SLURM jobs from Bash to Perl?
in thread How can I convert my script for submitting SLURM jobs from Bash to Perl?

I think the first script needs to be:

#!/usr/bin/perl #SBATCH -A 1234 #SBATCH -t 2-00:00 #SBATCH -n 24 use warnings; use strict; system("module add gromacs && srun resp.com")==0 or warn "Warning: command failed, code $?";

module add gromacs is likely modifying the "local" runtime environment as MidLifeXis explained in his post, above.