Skip Menu |

This queue is for tickets about the Digest-SHA2 CPAN distribution.

Report information
The Basics
Id: 4669
Status: rejected
Priority: 0/
Queue: Digest-SHA2

People
Owner: Nobody in particular
Requestors: mshelor [...] comcast.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Some Methods Don't Return Objects
The Digest:: module requires that the return value of certain methods (e.g. "add", "reset") be the actual object itself. This makes it possible to string together commands such as: print Digest::SHA2->new(256)->add("hello world")->hexdigest, "\n"; However, the Digest::SHA2 module don't provide these object return values for methods such as "add" and "reset".
On Sat Dec 13 20:21:28 2003, MSHELOR wrote: Show quoted text
> The Digest:: module requires that the return value of certain methods > (e.g. "add", "reset") be the actual object itself. This makes it > possible to string together commands such as: > > print Digest::SHA2->new(256)->add("hello world")->hexdigest, "\n"; > > However, the Digest::SHA2 module don't provide these object return > values for methods such as "add" and "reset".
Digest::SHA2 is deprecated and won't be getting bugfixes. Please use Digest::SHA instead.