in reply to Strange Behaviour with Backticks

What could possibly cause this erratic behaviour
<Wild-Guessing>
  1. Different PATH variables in shell and perl - can be verified
  2. Output of B contains some strange bytes - check a hex dump
  3. .... don't know ...
</Wild-Guessing>
Try
my @output = `some_binary.out $param | tee /tmp/controll.txt`;
and view the content of /tmp/controll.txt

s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^2: Strange Behaviour with Backticks
by Skeeve (Parson) on Jul 21, 2006 at 08:32 UTC

    neversaint asked me in the CB to post my xd (Hexdump) script I've put on my scratchpad for him to use.

    But as others may find it use ful too, I don't put it here but into the snippets section

    Hope you like it.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
Re^2: Strange Behaviour with Backticks
by neversaint (Deacon) on Jul 21, 2006 at 09:19 UTC
    Dear Skeeve,
    I tried this:
    my @output = `some_binary.out $param | tee /tmp/controll.txt`;
    Although created, but "controll.txt" has no content in it.
    Still trying other options...

    ---
    neversaint and everlastingly indebted.......