http://qs321.pair.com?node_id=1217752


in reply to Perl and Shell (text conversion)

It looks like LanX has the correct answer. After shell quoting, that line would be: $result = ; which surely isn't what you intended.

Also, you check @ARGV in the embedded script, but don't pass any arguments to it. You should add "$@" after the last single quote to pass the arguments to the function. i.e.:

function fConvert { perl -e ' ...<snip>... ' "$@" }