Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

RE: The Name Game

by turnstep (Parson)
on Jul 19, 2000 at 23:28 UTC ( [id://23287]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $myform->{'name'}=~s/(\w)(\w+)/\u$1\L$2/;
    
    ## You can use perl's builtin functions to do the job:
    
    $myform->{'name'}=ucfirst(lc($myform->{'name'});
    
  2. or download this
    my @letters=split(//, $myform->{'name'});
    while($letters[0]!~/^[aeiouy]/i){
    ...
    
    ($myform->{'left'}=$myform->{'name'}) =~ s/$[^aeiouy]+//;
    

Log In?
Username:
Password:

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

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

    No recent polls found