4

Passing array from one perl script to another

view full story
linux-howto

http://www.linuxquestions.org – Hi, How do I pass an array from one perl script to another .. also how to read it in another script ? I tried below - Script 1 - sender program system ("./program2.pl \@array1 \@array2"); printf("\n @array1, @array2"); It prints the content of array1 and array2. Script 2 - receiver program @array1=$ARGV[0]; # -> option 1 @array2=@$ARGV[1]; # -> option 2 printf("\n @array1, @array2"); Both options aren't working. printf statement not showing the data in the array1 or array2. Any help would be appreciated.. Thanks, Prasann (HowTos)