in reply to Split into an array

pfaut is on the right track, but the grep won't work like you want. Perl's grep takes a list, so the grep is going to return the whole multi-line string output. You can either (untested code ahead):
my @job_autorep= split /\s+/, `autorep -j $job_name | grep "$job_nam +e"`;
or
my @job_autorep = map { split /\s+/ } grep /$jobname/, split /\n/, ` +autorep -j $job_name`;