
spider
User

Aug 13, 2009, 2:48 AM
Post #14 of 19
(1257 views)
|
|
Re: [Achilles] passing input to perl command
[In reply to]
|
Can't Post
|
|
You can get the sum of 1 and 2 by sending 1 and 2 as parameters to perl as ichi says:
perl -e 'print $ARGV[0] + $ARGV[1]' 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.
|