in reply to passing arguments to c prog

You can run commands from perl using system and backticks. If that's not what you want, what command line shell do you use? (And that's not a Perl question this way.) For example, passing STDOUT of Perl program as an argument to another program looks like this in a POSIX shell: ./c-program "$(perl -e "whatever")".

Edit: corrected a typo.

Replies are listed 'Best First'.
Re^2: passing arguments to c prog
by gsaro (Initiate) on Aug 24, 2013 at 17:53 UTC
    Thank you for your reply. I am using bash shell and "$(perl -e 'print "\x44\x84\xaa\xbb";')" works for me. I do not know perl. Passing numbers to c(executable) as command line args was not working as they are treated as characters. A lot of manipulation was needed to achieve what I needed. I know that python has the required commands. just wondered about perl.