Pipelin...re::ISA(3)

πŸ“¦
version 3.12 Β· 2 versions
, in fedora 43

πŸ’– Pipeline::Store::ISA πŸ’–

okay bestie, listen up β€” this is Pipeline::Store::ISA, straight out of the User Contributed Perl Documentation collection (the manual page is literally titled Pipelin...re::ISA(3) because someone at the terminal was being dramatic with the column width, we love that for them).


✨ NAME ✨

Pipeline::Store::ISA β€” an inheritance-based store for pipelines πŸ¦‹


🌸 SYNOPSIS 🌸

use Pipeline::Store::ISA;

my $store = Pipeline::Store::ISA->new();
$store->set( $object );
my $object = $store->get( $class );

literally three lines and you're thriving, no cap.


πŸ’… DESCRIPTION πŸ’…

So Pipeline::Store::ISA is like Pipeline::Store::Simple's slightly more complex little sister β€” she's got layers, okay? It stores things in a hashref indexed by classname, and also their inheritance tree. Family tree knowledge, main character energy, we stan.

Here's the vibe:

  • Want to add an object? Call the set method with an object. Boom, it's in there. πŸ’–
  • Want to get an object back? Call the get method with the classname β€” or the parent classname β€” of the object you're trying to retrieve. Slay.

Also super important: Pipeline::Store::ISA inherits from the Pipeline::Store class and includes its methods also. So you get all of mom's stuff too, periodt. πŸ‘‘


πŸŽ€ METHODS πŸŽ€

  • set( OBJECT ) β€” the set method stores an object specified by OBJECT in itself. And heads up bestie: it replaces existing objects of the same type. So if you had one and you set another, the new one is the one that gets to stay. Out with the old, in with the iconic. πŸ’…
  • get( SCALAR ) β€” the get method attempts to return an object of the class specified by SCALAR. If an object of that class does not exist in the store, it returns undef instead. 😭

And here's the fun part, the little plot twist: in the case that you request a super class of multiple objects, an array reference will be returned containing all the objects that are blessed into child classes of SCALAR. It's giving "you asked for the parent, you got the whole group chat." 🫢


πŸ‘€ SEE ALSO πŸ‘€

Pipeline, Pipeline::Store, Pipeline::Store::Simple

the whole friend group, honestly.


🧚 AUTHOR 🧚

James A. Duncan <jduncan@fotango.com>


Copyright 2002 Fotango Ltd. All Rights Reserved.

This software is distributed under the same terms as Perl itself.


quick vibe check, bestie: everything above is exactly what the page says β€” I did not invent a single flag, method or behaviour, I just gave it a glow-up. πŸ¦‹

and that's the whole page, fr fr. This one ships as perl v5.42.0, dated 2025-07-25 β€” so go forth, build your pipelines, and remember: inheritance is just family, and family shows up when you call. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ‘‘πŸŒˆβ­πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from