sweepy838 has asked for the wisdom of the Perl Monks concerning the following question:
now sinse i have all the numbers, i'd like to loop through the char array and print out only the non numberic characters. using replace would do the job but that seems like going the long way ?$str = 'xxia5ujcjzbgdiaknqybacf1uhm?6nd9q0icmjloztk?k@i3d@6b'; my @numbers = $str =~ /(\d+)/g; #grab all numbers my @chars=split(//,$str); #convert to char array
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: simple question
by moritz (Cardinal) on May 05, 2012 at 21:12 UTC | |
|
Re: simple question
by JavaFan (Canon) on May 05, 2012 at 22:04 UTC | |
|
Re: simple question
by Kenosis (Priest) on May 05, 2012 at 21:53 UTC | |
|
Re: simple question
by tobyink (Canon) on May 05, 2012 at 21:46 UTC | |
|
Re: simple question
by BillKSmith (Monsignor) on May 06, 2012 at 10:59 UTC | |
|
Re: simple question
by locked_user sundialsvc4 (Abbot) on May 06, 2012 at 14:19 UTC |