http://www.perlmonks.org?node_id=11104821


in reply to Re: Suggestion on rewriting small code
in thread Suggestion on rewriting small code

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:  <%-{-{-{-<