|
||||||
| Perl Discussion for the PERL language - Practical Extraction and Reporting Language, is a programming language often used for creating CGI programs. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
hi, can anyone tell me how to count the number of times a specify character occurred in a string. for example,
$string = 'APPLE'; 'P's occurred twice in this string. i need to count how many time the 'P's occurred in this string, $string, by using perl programming. how can i do that? |
| Sponsored Links |
|
|
|
|||
|
|
|
|||
|
Quote:
![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing HTML from a String using ColdFusion | roger | ASP, ASP.NET and Coldfusion | 3 | 11-11-2008 03:19 PM |
| [Help] String manipulation. | afiser | Visual Basic Programming | 1 | 05-31-2007 04:24 PM |
| Is string in array? | smith | Perl | 2 | 02-14-2007 02:30 PM |
| Accessing a string by array | Saint | C# Programming | 3 | 10-03-2006 08:33 PM |
| Seperate values in a string | Chan | C# Programming | 4 | 07-25-2006 10:17 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%