in reply to Re: perl child to return var to a bash parent
in thread perl child to return var to a bash parent

Thanks for your reply :)

Yes next time i'll go with perl but i spent so many days on the bash prog that it's too late for this one :(

I was trying to avoid writing to a temp file, but finally it seems to be the less worst solution...

  • Comment on Re^2: perl child to return var to a bash parent

Replies are listed 'Best First'.
Re^3: perl child to return var to a bash parent
by choroba (Cardinal) on May 02, 2011 at 13:21 UTC
    I was trying to avoid writing to a temp file, but finally it seems to be the less worst solution...
    Why? Just call from your bash script:
    eval result=([1]=$(perl -e 'print join " ",map rand 10,1..50'))
    and then use the results:
    echo ${result[1]},${result[50]}
    No temp files needed.