unless ($fish eq $local) { $hash2{$local}++; } #### function1
function2
##
## function1
stubfunction1
function2
stubfunction2
##
## function1
stubfunction1
function2
stubfunction2

##
## stubfunction1
stubfunction2

##
## for (0..6) { $fish = pop @array; $fish = pop @array; #opening of working file, which is to be compared with #the reference array(%hash1) open (Local, "stub.c") or die "Can't open stub.c :$!\n"; for $local() { $local =~ s/\n//; #this is used to compare the 2 variable #if there is no match, assign it as a key to a hash unless ($fish eq $local){ $hash2{$local}++; } close Local; } #### open STUB, "stub.c" or die "Cannot open stub.c : $!\n"; while () { chomp; # $_ is now a line from stub.c, # and we have to decide whether to print it or not. # If it's a key in %hash1 we don't want to print it; # otherwise, we do: print "$_\n" if not exists $hash1{$_}; } #### $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/