|
COMP 2400 Software Tools
Goals: Devise a strategy to solve
Project 3. Understand
- Reading
a large amount of text from a file
- Modify
it to include page numbers
- Create a string out of it after
applying chop
- split the spring into different
chapters
- retrieve the heading, center
and print it
- keep a char counter and print
lines
- keep a line counter and print
pages
- insert a page number and reset
all the counters
- Roman Numerals
- Download and install Roman.pm
(copy this file into the directory where your project 2 script
is)
- you include this Perl module by
adding
use lib ".";
use Roman;
Useful commands/tips:
- remember to modify the $"
variable to a null string, i.e. "" before transforming the
file into a single string.
Useful Links:
Handouts:
Online Tutorial:
|