How can I process a Perl array element in a shell script?

Posted by joe on Stack Overflow See other posts from Stack Overflow or by joe
Published on 2010-05-26T08:19:58Z Indexed on 2010/05/26 14:21 UTC
Read the original article Hit count: 173

Filed under:
|

For example:

In Perl:

@array = (1,2,3);

system ("/tmp/a.sh @array" ); 

In my shell script, how do I handle this array in shell script? How do I handle the shell script to receive the arguments, and how do I use that array variable in shell script?

© Stack Overflow or respective owner

Related posts about perl

Related posts about bash