Walt Mankowski on Wed, 2 May 2001 15:20:59 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Quick question: how to slurp a file?


On Wed, May 02, 2001 at 02:59:28PM -0400, Urb LeJeune wrote:
> two ways.

Both of which have errors.

> @EntireFile = <FH>'
> $File = join("",@EntireFile);

I assume you mean

 @EntireFile = <FH>;

> 
> or turn of the line separator:
> 
> $/="";
> $File=<FH>;

That doesn't turn off $/.  See Mark's comment in this thread, or
better yet, try out your code before posting it.  :-)

-- 
Walter C. Mankowski
Senior Software Engineer	Myxa Corporation
phone: (610) 234-2626		fax: (610) 234-2640
email: walt@myxa.com		http://www.myxa.com

**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**