newbie to perl



This may seem to be a bit complex for a newbie, but I'm looking for some ideas as to how to go about this.

Here's my "pseudo code"

Open a file
read a line
While not at EOF do
{

  if the first token is the word LoadName
     write the line out
     go to the next line
     if the first token is the word Font
        change the token to be LoadFont
     endif
     write the line out
   else
     if the first token is the word PrintName
         write the line out
         go to the next line
         if the first token is the word Font
            change the token to be PrintFont
         endif
         write the line out
      else
         write the line out
      endif
    endif
    read a line
}

Thre's probably a really simple way to do this, but none of the examples I can find in any book (O'Reily etc) can't put the pieces together enough to tell me how to do what I need to do. Even if someone can point me to a resource where I can learn how to do this it would be better than me spinning my wheels for hours trying to figure it out on my own.


Tkx .



Relevant Pages

  • Re: newbie to perl
    ... > This may seem to be a bit complex for a newbie, ... use warnings; ... use strict; ...
    (comp.lang.perl)
  • Re: SQLEXEC()
    ... Check the return value for SQLEXEC() ... > I'm essentially a newbie when it comes to using the SQLCONNECT-related ... > ENDIF ...
    (microsoft.public.fox.programmer.exchange)