![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^2: Suggestion on rewriting small codeby AnomalousMonk (Bishop) |
on Aug 21, 2019 at 15:21 UTC ( #11104821=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|