newbie to perl
- From: Billy Sproket <sproketmoviesrule@xxxxxxxxxxxxxx>
- Date: Fri, 05 Aug 2005 00:53:19 GMT
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 .
- Follow-Ups:
- Re: newbie to perl
- From: Jim Gibson
- Re: newbie to perl
- Prev by Date: Having trouble with CGI::Sessions
- Next by Date: Multileval data structures, tie, and indirection
- Previous by thread: Having trouble with CGI::Sessions
- Next by thread: Re: newbie to perl
- Index(es):
Relevant Pages
|