1

Perl string formation from array

view story
linux-howto

http://www.unix.com – HI I ma using perl programming my perl is like this Code: $InputFile = $ENV{UDE_TMP} . "/" ."cre_fmr_gen.temp_data_file_gen.dat"; @duplicates = `cat $InputFile | cut -d "|" -f 1,1 | sort | uniq -c | awk '{ if(\$1>1) {print \$2;}}'`; my $cusiplist ; foreach $cusip (@duplicates) { print("instrument is  $cusip"); $cusiplist = $cusiplist . "|" . $cusip  ; } print($cusiplist); $tmp_file_1 = $ENV{UDE_TMP} . "/" ."prabhu1"; $tmp_file_2 = $ENV{UDE_TMP} . "/" ."prabhu2"; print($tmp_file (HowTos)