my $str = sprintf 'job==%d || 'x(@arr-1) . 'job==%d', @arr;
++ your solution, but just a minor point of curiosity: why use @arr-1 instead of $#arr here?
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Suggestion on rewriting small code
by AnomalousMonk
in thread Suggestion on rewriting small code
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |