Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: backtick ignores parameters

by krujos (Curate)
on May 20, 2002 at 19:03 UTC ( #167912=note: print w/replies, xml ) Need Help??

in reply to backtick ignores parameters

OTMH, dont you need to give it %20 instead of a space between the params?

Replies are listed 'Best First'.
by unclepliny (Initiate) on May 20, 2002 at 19:17 UTC
    These are not URL-encoded parameters -- i am invoking the program internally, so the command gets sent to the webserver OS.
      A, Sorry if this sounds mean, I dont intend to be, but did you try it?
      B, I went back and checked out some old scripts. I had this problem as well a long time ago. I ended up using a question mark to between the params and that worked. I am not sure why exactly (darn this getting old thing). If any monks have some insight to the question mark thing I would be grateful.
      let this be a lesson to me to comment code better.

      update changed formatting...
      also, when you run things from the command line, the shell translates it first. I dont think it works the same way from inside the script. Agian please correct me if I am wrong.
      Thanks Josh
        Actually I did try after all :) , just to cover all angles -- tried every variation (with and without ?, with and without &, etc). No luck. You are apparently right about it working differently from within a CGI script ... (see responses below).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://167912]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-06-20 13:49 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.