On Fri, Aug 7, 2015 at 12:17 AM, Cook, Malcolm <[email protected]> wrote:
:
> parallel echo '{= $_ = ($arg[1] > 1 ? "a" : "b") =}' ::: 0 ::: 2
>
> should echo "b" to stdout since zero is not greater than one

You are treating $_ as if the change happens to the whole string - not
the individual parameters. Given that, what should this do:

parallel echo '{= $_ =~ s/.jpg// =}' ::: a.jpg ::: b.jpg


/Ole

Reply via email to