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

Generate unique initials from a list of names

by EdwardG (Vicar)
on Mar 12, 2004 at 12:23 UTC ( [id://336125]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Date Range                  Level   Consumers
    -------------------------- -------  --------------------------
    ...
    24 Mar 2004 to 31 Mar 2004      6   AB, DA, RC, RI, RR, SJ
    01 Apr 2004 to 15 May 2004      3   Alan Po, Rohan Ito, Sam Jones
    16 May 2004 to 31 Dec 2004      5   AP, PS, RC, RI, SJ
    
  2. or download this
    $init{$_} = join '', ($_ =~ /\b\w/g) for @names;
    
  3. or download this
    Date Range                  Level   Consumers
    -------------------------- -------  --------------------------
    ...
    24 Mar 2004 to 31 Mar 2004      6   AB, DA, RC, RI, RaRa, SJ
    01 Apr 2004 to 15 May 2004      3   Alan Po, Rohan Ito, Sam Jones
    16 May 2004 to 31 Dec 2004      5   AP, PS, RC, RI, SJ
    
  4. or download this
    Alphonse Romeo-Smith => ARS
    Big Al Bundy => BAB
    ...
    Tiny Tim => TT
    Tom Demarco => TomDem
    Tom Denada => TomDen
    
  5. or download this
    A A Milne => AAMilne   
    A A Milner => AAMilner
    
  6. or download this
    
    use strict;
    ...
    Tom DeMarco
    Tom DeNada
    K9
    
  7. or download this
    Adam Harper
    Alan Pfaff
    ...
    Wayne Maye
    Wayne Ulrich
    Yolanda Hood
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-23 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found