codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Help with writing a program  Jojoma at 00:14 on Thursday, March 08, 2007
 

Hi I was wondering if anyone could help me with a program that does the following

1. Reads a file as either a here document or as input via a file handel on STDIN

2. Incorporates regular expressions to

A. Stop out all excess spaces, leaving a single space between each word.

B. Search for the pattern (space) I (space) Thats a capital I and a space on each side. Count all instances of this pattern, return thetotal number of instances, and print this output to a file called patterns.txt. supported by text similar to "The pattern _I_ was found x times."

C. Output all text enclosed in quotes into a separate (second) file called quotes.txt

D. Print the output to a separate (third) text file named out.txt

Thanks for any help. :)

  Re: Help with writing a program  mimir at 04:05 on Friday, March 09, 2007
 

http://www.hermanningjaldsson.com/1/pdg/pdg.html

You either use the above guide or get access to a book about Perl.
"Perl Black Book" is the best.
http://www.amazon.com/Perl-Black-Book-Steven-Holzner/dp/1932111107/ref=pd_bbs_sr_1/103-2514984-1935062?ie=UTF8&s=books&qid=1173416676&sr=8-1










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: can execute c program through perl?????
•  Re: import contacts of msn/yahoo
•  Re: play mp3 and avi in java
•  Re: error and output redirection in perl
•  Re: Help with writing a program
•  Re: Hi need help in time()Fn
•  hi there, a do while loop needs work
•  NEED HELP FAST! Navigation system, games programming arrays
•  Change background located in CSS file


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007