Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl and Shell (text conversion)

by jeffenstein (Friar)
on Jul 02, 2018 at 15:14 UTC ( #1217752=note: print w/replies, xml ) Need Help??


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>... ' "$@" }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1217752]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-11-24 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?