Help for this page

Select Code to Download


  1. or download this
    my @a = ("a  sTrinG\n" );
    s#(.)(\w+ ?)#\U\1\L\2#g for @a;
    print @a;
    __END__
    a  string
    
  2. or download this
    s{ \b(\w+) }{\u\L$1}gx;