in reply to Re^3: perl experts .. plz
in thread perl experts .. plz

The point here is not conjugating verbs. The student has been presented with a simplistic problem in order to develop skills in handling strings and arrays using Perl. Let's get him up to speed on for and split. If he can't master those, CPAN won't be of much use to him.

But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

Replies are listed 'Best First'.
Re^5: perl experts .. plz
by CountZero (Bishop) on Mar 25, 2016 at 19:13 UTC
    I understood that much. I only wanted to show that with little or no effort one could get this program to work correctly.

    Of course the teacher is to blame by giving such a bad example to start with.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics