Follow up regex question

Using this excellent solution provided by ozo, how could I have the printout all be converted to uppercase if it were lower case?

# if you want only unique values

#!/usr/bin/perl
use warnings;
open ( FH, "/etc/vfstab" ) or die $!;
@vfstab{map{m{/oracle/(\S{3})/\S+\s}} <FH>}=();
close FH;
print "$_\n" for keys %vfstab;
LVL 1
David AldridgeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tel2Commented:
Hi holein5,

You could change the last line to:
    print uc($_) . "\n" for keys %vfstab;
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ozoCommented:
print "\U$_\n" for keys %vfstab;
0
ozoCommented:
#If you want the uniqueness criterion to be caseless
@vfstab{map{uc((m{/oracle/(\S{3})/\S+\s})[0])} <FH>}=();
0
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

tel2Commented:
Well said, ozo.

holein5, my suggestion of:
    print uc($_) . "\n" for keys %vfstab;
can be abreviated to:
    print uc()."\n" for keys %vfstab;
since $_ is the default variable for uc().
I think Perl 6 would require a space on either side of the '.', though, as in my original suggestion.
0
David AldridgeAuthor Commented:
Once again, perfect.  Thanks ozo.
0
ozoCommented:
The answer you accepted is equivalent to http:#a39501022
0
David AldridgeAuthor Commented:
Doh! I didn't even see that one.  :-(  Sorry tel2.  Is there anything I can do to fix it?
0
tel2Commented:
Thanks for that, ozo.

holein5, I trust you've now seen both of my posts (above)?

To fix errors in awarding points, click on the "Request Attention" link in the bottom-right-hand corner of the original post, and ask a moderator to re-open the question so you can reallocate points.  When they've done that, you can accept multiple answers and award points as you see fit.

tel2
0
David AldridgeAuthor Commented:
Ok, the request to reopen that question so I could reallocate the points has been entered.  Sorry about that tel2.

David
0
David AldridgeAuthor Commented:
Sorry about that tel2
0
tel2Commented:
Thanks for the points, holein5.  Appreciated.

Was it your intention to give all the points to me?
Are you aware of the option to accept multiple answers, as mentioned in my last post?  This way credit can go to more than one expert, where appropriate.

tel2
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.