sub file_processing { $script = "/export/home/ssesar/Perl/another_script.pl -e"; $open = "$script $arg1 $file1"; open(FILE1, "$open |") or die "can't do it\n"; while () { chomp; next if /^\#/; next if /None/; next if /Unkno/; next if /unkno/; next if /NONE/; @_ = split ( /\n/, $_); @array1 = @_; } close FILE1; } #### $open = "$script $arg1 $file1"; open(FILE1, "$open |") or die "can't do it\n"; #### $open = "$script $arg2 $file2"; open(FILE2, "$open |") or die "can't do it\n"; #### @array1 = @_; #### @array2 = @_;