FICHA · MANJARO

perl-return-value

Polymorphic Return Values

  • Library
  • NONE
  • Dev
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

Description

Perl modules can return objects that behave differently depending on how the caller uses the result. This is useful for APIs that want to carry success, failure, messages, or structured data in one return value.

It is a developer library. Polymorphic returns can surprise callers, so APIs using them should document expected boolean, string, and object behavior clearly.

Permissions

Permissions not analysed for this source yet.