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>... ' "$@" }
In reply to Re: Perl and Shell (text conversion)
by jeffenstein
in thread Perl and Shell (text conversion)
by Bryan882
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |