i have a doubt in perl for comparing elements of a file.
i want to compare elements of a file , after extracting op, offset ,below given information, i want to implement using hashes like comparing first line op,offset with all other lines op,offset if match equal else no see below, i extracted op,offset took in to array like the code shown below
[code=perl]
use strict;
#use warnings;
foreach(@file_a rray)...
User Profile
Collapse
-
-
,
yes i have seen ur reply but not good . see mail to u in this forum...Leave a comment:
-
-
perl scripting
i want to implement in a generic way if more than 2 processes are there than i need to compare process 2 to process1 ,when i reach to process 3 that should compare with process 2 and process1 if any of the process contains that op,offset than in process 3 i should type as equal .can any one suggest,Leave a comment:
-
I tried with this its not working ,its just printing process and are same ,that more than 9k times ,.............i also did same thing like
[code=perl]
if($file_array[$i] =~ /process0/)
{
for(my $j=0;$j<128;$j+ +)
{
@array = split(" ", $file_array[$i+2+$j]);
@scull = $array[1]."\t".$array[4];
#print "\n",@scull ;...Leave a comment:
-
i have problem in implementing
i have a problem in implementing script,i have to extract from below data op,offset,and i need to compare the if same offset,same op repeats in other process i need to make it as same,else no .please suggest how to do or how to identify same op ,offset things.see below
op means ld,st like that,offset means the last one.
sample code to extract
[code=perl]
if($file_array[$i] =~ /process 1/)
...
No activity results to display
Show More
Leave a comment: