in reply to Re^3: how to remove duplicate strings?
in thread how to remove duplicate strings?
and i tried splitting it up like thisopen (PIR,'/home/guest/sampir.txt'); my @arr = (); while (<PIR>) { chomp; if( /^ENTRY/ ) { $entry = $_ } elsif ( /^(TITLE)\s+(\S.*)/ ) { $title = "$1\n\t $2" } elsif ( /^(ORGANISM)\s+(\S.*)/ ) { $org = "$1\n\t $2" } elsif ( /^ACCESSIONS/ ) { $acc = $_ } else { push @se, $_; } }
but am not getting the answer. how to go abt it.?foreach $r(@se) { @y=split(//,$r); }
|
|---|