terry rudy wrote: > > Hi there, is there a quick and dirty way to compare a value ($x) against > array (@y) and if the value is not in @y then add it to @y? It's more efficient (though it takes more memory) to use a hash: my %y; # to add a value $x and make sure that it's unique: $y{ $x } = undef; Then you can get the contents of the array: my @array = keys( %y ); To delete a value: delete( $y{ $x } ); -- Ned Konz currently: Stanwood, WA email: [EMAIL PROTECTED] homepage: http://bike-nomad.com, Perl homepage: http://bike-nomad.com/perl _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.activestate.com/mailman/listinfo/perl-win32-users _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users