|
||||||
| 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 |
| [Help] String manipulation. | afiser | Visual Basic Programming | 1 | 05-31-2007 03:24 PM |
| Is string in array? | smith | Perl | 2 | 02-14-2007 01:30 PM |
| Accessing a string by array | Saint | C# Programming | 3 | 10-03-2006 07:33 PM |
| Seperate values in a string | Chan | C# Programming | 4 | 07-25-2006 09:17 AM |
| Removing HTML from a String using ColdFusion | roger | ASP, ASP.NET and Coldfusion | 0 | 05-11-2006 10:19 PM |
| John | ........ | 223.00000 |
| dargueta | ........ | 168.00000 |
| Xav | ........ | 164.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |
Goal: 100,000 Posts
Complete: 65%