use List::MoreUtils qw/ uniq /;
my @unique = uniq @faculty;
foreach ( @unique ) {
print $_, "\n";
}
More Related Contents:
- How do I remove duplicate items from an array in Perl?
- Difference of Two Arrays Using Perl
- How can I check if a Perl array contains a particular value?
- How can I generate all permutations of an array in Perl?
- In Perl, how can I find the index of a given value in an array?
- How can I verify that a value is present in an array (list) in Perl?
- How can I match values in one file to ranges from another?
- Perl: Compare 2 hash table values
- Failing to install MIME::Base64 using cpan [closed]
- Declaring a 2D coordinate in Perl / C / C++ [closed]
- Why can’t Perl find my file that is in ClearCase?
- How do I count occurrence of unique values inside a list
- How can I output UTF-8 from Perl?
- What’s the difference between a hash and hash reference in Perl?
- Multiline search replace with Perl
- How do I “use” a Perl module in a directory not in @INC?
- How can I process options using Perl in -n or -p mode?
- How can I dynamically include Perl modules without using eval?
- How can I compile my Perl script so it can be executed on systems without ‘perl’ installed?
- How can I guess the encoding of a string in Perl?
- Why does my Perl script exit with 137?
- Using output from a previous job in a new one in a GitHub Action
- What does !! (double exclamation point) mean?
- Using my with parentheses and only one variable
- Do you use an exception class in your Perl programs? Why or why not?
- In Perl, is it better to use a module than to require a file?
- How can I extract text from a PDF file in Perl?
- Demystifying the Perl glob (*)
- Why does !1 give me nothing in Perl?
- How do I retrieve the terminal width in Perl?