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".