Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Seeking a better way to do it

by vinoth.ree (Monsignor)
on Feb 01, 2013 at 05:15 UTC ( #1016438=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $char_list = "Enter Iago, Othello, and  others";
    my @Word_List =  grep { /[A-Z]\w+/ } split(/\W/, $char_list);
    print "@Word_List\n";
    
  2. or download this
    my $char_list = "Enter Iago, Othello, and  others";
    my @Word_List;
    @Word_List = ($char_list =~ /([A-Z]\w+)/g);
    print "@Word_List\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2016-08-30 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (422 votes). Check out past polls.