in reply to blank string returned from piped command

You might need to uri_escape() your username and password using URI::Escape before inserting them into your QUERY_STRING. However, the resulting characters might cause issues for your shell. I'm not sure what to do about that second part.

---
It's all fine and dandy until someone has to look at the code.

Replies are listed 'Best First'.
Re^2: blank string returned from piped command
by EvanK (Chaplain) on Jul 31, 2006 at 17:39 UTC
    the program i'm calling is url-escape aware, so it will work whether the string is escaped or not. and if i expected the username or password to contain anything unexpected, i could quote them:
    my $com = 'env QUERY_STRING=username="'.$uname.'"\;password="'.$pwd.'" + /usr/bin/custom_auth_tool';

    __________
    Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
    - Terry Pratchett