Re: OO confusion

2009-01-10 Thread Randal L. Schwartz
> ""Dr" == "Dr Ruud" writes: "Dr> is better written as ... for varying and arguable values of "better". I prefer the "do" form, myself. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Techni

Re: OO confusion

2009-01-10 Thread Dr.Ruud
Jenda Krynicky wrote: my $data = do {local $/; }; is better written as my $data; { local $/; $data = }; For smallish files it doesn't matter much. -- Ruud -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl

Re: OO confusion

2009-01-10 Thread Chas. Owens
On Sat, Jan 10, 2009 at 09:26, Jenda Krynicky wrote: > From: Mike McClain >> On Fri, Jan 09, 2009 at 05:52:45PM -0500, Chas. Owens wrote: >> >> > You seem to be under the impression that the argument to >> > Digest::MD5::md5_hex is a file name. The argument is a scalar holding >> > the data to

Re: OO confusion

2009-01-10 Thread Jenda Krynicky
From: Mike McClain > On Fri, Jan 09, 2009 at 05:52:45PM -0500, Chas. Owens wrote: > > > You seem to be under the impression that the argument to > > Digest::MD5::md5_hex is a file name. The argument is a scalar holding > > the data to perform md5 on. So Digest::MD5::md5_hex("foo") will give > >