CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: help with use all cells of array in regex: Edit Log



reverend
Novice

Dec 1, 2009, 6:22 PM


Views: 2895
help with use all cells of array in regex

I would like to count the number of occurrences where:
[comma or semicolon] followed by whitespace
precedes a string that matches an element in my array


Code
	$_ = join ' ',@wordmonger; 
$CC++ while (/[,;]\s+(~~@CoordinatingConjunctions)/g);


your help is much appreciated


(This post was edited by reverend on Dec 1, 2009, 6:40 PM)


Edit Log:
Post edited by reverend (Novice) on Dec 1, 2009, 6:40 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives