Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Split confusion

by davido (Cardinal)
on Jun 03, 2020 at 22:07 UTC ( [id://11117675]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
        my $altered = join('', map {ucfirst(lc($_))} split /(\s+|-)/, $nam
    +e);
        print "$name => $altered\n";
    }
    
  2. or download this
    VAN DEN BERGHE => Van Den Berghe
    OSWALD => Oswald
    ANDERSON => Anderson
    LLOYD-WRIGHT => Lloyd-Wright
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11117675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found