If that's the case, when you call the subroutine you'll want to capture those return values into a var in your current scope to use them.
my ($do, $when) = Check_file_name_conditions($job_C, $node); next unless ($do eq 'Y' && $when eq 'Now');
In reply to Re: Use of next unless and subs
by chakram88
in thread Use of next unless and subs
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |