Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Perl and Shell (text conversion)

by jeffenstein (Hermit)
on Jul 02, 2018 at 15:14 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1217752]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found