in reply to Entry Integrity

Hi

Sample code avoid duplicate in the way you like.

%avoid_dup = (); while ( <DATA> ) { my ($drive,$name) = split(/:/); if ( $avoid_dup{$name} ne '1' ) { #do some stuufs $avoid_dup{$name} = 1; } } _DATA_ D:/myfiles/Test/ E:/pics/cgi-bin/new/ C:/temp/ D:/new/files/ F:/new/more/ C:/test/cgi-bin/ac/^ok C:/new/files/ # This line shouldn't be allowed here, it is duplicate +d.

"Keep pouring your ideas"

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.