in reply to Use of next unless and subs
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');
|
|---|