in reply to Testing for a string value within an array
Hashes are your friends! Perl programs often use them for precisely what you want to do. Just do this
or this$mounts{ "$directory/$entry" }++;
And when you're ready to retrieve the entries:$mounts{ "$directory/$entry" } = 1;
my @mounts = keys %mounts;
the lowliest monk
|
|---|