On Monday, August 18, 2003, at 08:10 AM, Li Ngok Lam wrote:


my $fh; open $fh, '<', 'items/list.db' or die "File error: $!";

It just the same as open my $fh =)

Save that it reads a little better, I think, and checks errors.


print while $fh;

Hmm............. I guess this is not a 'read' argument


Thanks in advise anyway =)

You're right, I meant:


print while <$fh>;

Sorry about that.

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to