Aug 13, 2009, 2:48 AM
Post #14 of 19
You can get the sum of 1 and 2 by sending 1 and 2 as parameters to perl as ichi says:
Re: [Achilles] passing input to perl command
[In reply to]
perl -e 'print $ARGV + $ARGV' 1 2
But the solution is not good.
If you want one file only, and want it to be a shell-script, then you should solve your issu in the shellscript.
An alternativ solution (the one I would have used), is to write the complete script as a perl-script, and than you could distribute only this. Alternativ you can do a mixed solution, but then you have to distribute two files.