in reply to Text analysis exam

If you get help with your exam, then not only would it not be your exam anymore, it would be unfair to others taking the exam as well (assuming there are others taking the exam).

Here are is a hint -- DOS format usually means that each line ends with a carriage return AND a line feed. Search for those endings and you will know if your file is a DOS format file.

The other two tasks are way too basic to merit hints... hinting would give away the answer.

--

when small people start casting long shadows, it is time to go to bed

Replies are listed 'Best First'.
Re^2: Text analysis exam
by GrandFather (Saint) on Oct 27, 2007 at 19:42 UTC

    <devil's_advocate>There is an argument that if all those taking the exam have access to the web then those that take advantage of that access ought to be rewarded for their initiative.<devil's_advocate>

    However, as others have suggested, at PerlMonks we are disinclined to do people's homework for them and we are very disinclined to simply provide a solution when the OP shows no apparent effort at all!


    Perl is environmentally friendly - it saves trees

      By perusing the web and showing the initiative, they'd easily find the solutions to all those tasks. Without having to ask. All they'd have to prove would be some initiative and some basic programming skills to put the solutions together.