Seasons
This is a forum or general chit-chat, small talk, a "hey, how ya doing?" and such. Or hell, get crazy deep on something. Whatever you like.
Posts 288 - 299 of 6,170
Posts 288 - 299 of 6,170
OnyxFlame
23 years ago
23 years ago
Ok, nevermind about the script, my friend figured out a way to do it (although I dunno if it's the best way cuz I don't understand it).
alias cap {
unset %outstring
%attok = 1
:nextcap
%wordat = $gettok($$1-,%attok,32)
%wordcap = $upper($left(%wordat,1)) $+ $lower($right(%wordat,-1))
%outstring = %outstring $+ $chr(32) $+ %wordcap
if (%attok < $numtok($$1-,32)) {
%attok = $calc(%attok + 1)
goto nextcap
}
unset %attok
unset %wordat
unset %wordcap
return %outstring
}
Looks like a bunch of gibberish to me, and still turns "FBI agent" into "Fbi Agent" but I might be able to get around it by putting "F $+ B $+ I agent" in the word list instead.
alias cap {
unset %outstring
%attok = 1
:nextcap
%wordat = $gettok($$1-,%attok,32)
%wordcap = $upper($left(%wordat,1)) $+ $lower($right(%wordat,-1))
%outstring = %outstring $+ $chr(32) $+ %wordcap
if (%attok < $numtok($$1-,32)) {
%attok = $calc(%attok + 1)
goto nextcap
}
unset %attok
unset %wordat
unset %wordcap
return %outstring
}
Looks like a bunch of gibberish to me, and still turns "FBI agent" into "Fbi Agent" but I might be able to get around it by putting "F $+ B $+ I agent" in the word list instead.
OnyxFlame
23 years ago
23 years ago
Hmm nope that didn't work...oh well, you can't win em all. I mean to make it perfectly grammatical I'd need 16 verb lists which I have no desire to do, and if I'm satisfied with that part not being accurate I can put up with capitalization being screwy.
ladydyke
23 years ago
23 years ago
zx20, perl is a programming language used to make programs that are internet based. Java, javascript, xml, html etc are all examples of programming languages.
Eugene Meltzner
23 years ago
23 years ago
Hi guys, I'm back. But I probably won't access this site for more than an hour a week this summer, and this week my hour was spent just reading all the posts in the forum. Next week I can hopefully get back to my bots.
Corwin
23 years ago
23 years ago
This forum ain't the same without you Eugene, no one seems to get all philosophical anymore.
zx20
23 years ago
23 years ago
Thank you Ladydyke *nod*, now I seem to get a better idea of what programming language are.
Eugene Meltzner
23 years ago
23 years ago
Thanks. I usually have that sort of effect on forums. Speaking of which where were we? I had asked if anyone was sure they were going to Heaven, and as I recall I got a lot of answers to the effect of, "No, because I don't know what the requirements are to get in." Fair enough. My next point is this: According to the Bible, it is possible to be certain. I John 5:13 says, "These things are written...that you may know that you have eternal life."
» More new posts: Doghead's Cosmic Bar