Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading from a file

Status
Not open for further replies.

MentosM

Technical User
Jan 12, 2006
8
US
Sorry for the remedial question, don't really use perl and was having a problem getting this to work.

One of our scripts has some information hardcoded in it and I would simplely like to be able to have it read the information from a file instead. Was able to do it, but it wasn't taking it all correct. The file will contain HTML, and im guessing some character in there was screwing it up.

What is the easiest way to just set a variable to use all of the data in the file. Basically I just need $html = <everything in file>

Thanks for your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top