in reply to Re: Perl Script
in thread Perl Script
use IO::File; print "\n Comparing data:\n" ; my $outfile = "/project/ls1socdft/user/pooja/test_plan_checker/dfta/pe +rl/parse_xls/script/result.log"; open (OUTFILE, ">/project/ls1socdft/user/pooja/test_plan_checker/dfta/ +perl/parse_xls/script/result.log" ) or die "Cannot open $outfile for +writing \n"; print OUTFILE "Content of TPC file:.\n"; open(FILE, "<//project/ls1socdft_nobackup/rev2.0/user/Shah-B53654/dft/ +dfta/tpc/get_pat_info/output_0/report/report_all_wgl.pm") or die "Can +not open "; my @array = <FILE>; my @final_array; my @tp_array; my @handles; my $i=0; my $j=0; my %main_file ( foreach $_ (@array){ if($_ =~ /^$/ || $_=~ /return/ || $_=~ /RETURN/|| $_=~ /1;/) { } else{ $final_array[$i]=$_; print OUTFILE "$_"; } $i++; } foreach $_(@final_array){ $_=~ s/require//; $_=~s/[';]//g ; $tp_array[$j]=$_; print OUTFILE "$tp_array[$i] \n"; $j++; #my @new_array = @tp_array; my $fh = 0 ; foreach (@tp_array) { print "tp array : $_\n\n";} } # foreach (@tp_array) { # print "Checking file: $_\n"; # open my $fh, '<',$tp_array or die "$!\n"; #can we try smthng else??i mean ny othr idea? #} close(FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl Script
by Anonymous Monk on Apr 17, 2015 at 09:18 UTC | |
by Pjshh6 (Initiate) on Apr 17, 2015 at 09:23 UTC | |
by Anonymous Monk on Apr 17, 2015 at 09:29 UTC | |
by Pjshh6 (Initiate) on Apr 17, 2015 at 09:51 UTC | |
by Anonymous Monk on Apr 17, 2015 at 09:56 UTC | |
by Pjshh6 (Initiate) on Apr 17, 2015 at 10:01 UTC | |
by Anonymous Monk on Apr 17, 2015 at 10:03 UTC | |
| |
| A reply falls below the community's threshold of quality. You may see it by logging in. |