CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
How to read?



Feb 15, 2001, 2:16 PM

Post #1 of 3 (275 views)
How to read? Can't Post

Does anyone know how to read only one line from a file. For example, i want to create a script that displays random quotes. I know how to print to a file, and add the quotes, but I dont know how to make a random quote appear and only one line/quote from the file the quotes are written to.


Feb 16, 2001, 12:31 AM

Post #2 of 3 (267 views)
Re: How to read? [In reply to] Can't Post

Hey Mate, check the faq, the very last page, there you'll find a faq on how to do just that, if you don't find it just let me know. It's just that Japhy knew the best way to do it and I can't remember off hand.



Feb 16, 2001, 7:40 AM

Post #3 of 3 (262 views)
Re: How to read? [In reply to] Can't Post

I have to agree w/ sleuth on this one. I was able to create a random bible verse program that sends a random verse via e-mail using the info found in the faq : How do I select a random line.....



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives