in reply to Use of next unless and subs

Am I reading you correctly that in your code you have a subroutine Check_file_name_conditions which returns the two values $do_I_pick_up_request, $When_process_request?

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');