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

Re: [MacPerl] Read entire file?



At 12:37 -0500 2000.12.28, Chris Nandor wrote:
>	my $text;
>	{	local(FH, $/);
>		open FH, "< $file" or die $!;
>		$text = <FH>;
>	}

That should, of course, be local(*FH, $/), not local(FH, $/).

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org