FFI::P...ieArray(3pm)

πŸ’… NAME πŸ’…

FFI::Platypus::Record::TieArray β€” bestie, it's a tied array interface for record array members. That's the whole vibe. ✨

πŸŽ€ VERSION πŸŽ€

version 2.11 β€” yes she's got a number, she's official.

πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the whole moment, literally copy this energy:

 package Foo;

 use FFI::Platypus::Record;
 use FFI::Platypus::Record::TieArray;

 record_layout(qw(
   int[20]  _bar
 ));

 sub bar
 {
   my($self, $arg) = @_;
   $self->_bar($arg) if ref($arg) eq ' ARRAY';
   tie my @list, 'FFI::Platypus::Record::TieArray',
     $self, '_bar', 20;
 }

 package main;

 my $foo = Foo->new;

 my $bar5 = $foo->bar->[5];  # get the 5th element of the bar array
 $foo->bar->[5] = 10;        # set the 5th element of the bar array
 @{ $foo->bar } = ();        # set all elements in bar to 0
 @{ $foo->bar } = (1..5);    # set the first five elements of the bar array

like, look at her go 🫢

🌸 DESCRIPTION 🌸

⚠️ WARNING: This module is considered EXPERIMENTAL. It may go away or be changed in incompatible ways, possibly without notice, but not without a good reason. No cap, she's in her experimental era β€” she could ghost you (with a good reason tho, she's not a monster πŸ’€).

This class provides a tie interface for record array members. That's it, that's the job, and she does it gorgeously. πŸ‘‘

In the future a short cut for using this with FFI::Platypus::Record directly may be provided. (future plans, manifesting it ✨)


⭐ SEE ALSO ⭐

  • FFI::Platypus β€” The main Platypus documentation. the mothership, the main character πŸ’œ
  • FFI::Platypus::Record β€” Documentation on Platypus records. all the record lore, iykyk πŸŽ€

πŸ‘‘ AUTHOR πŸ‘‘

Author: Graham Ollis <plicease@cpan.org>

Contributors β€” the whole squad, the group chat, the icons only:

  • Bakkiaraj Murugesan (bakkiaraj)
  • Dylan Cali (calid)
  • pipcet
  • Zaki Mughal (zmughal)
  • Fitz Elliott (felliott)
  • Vickenty Fesunov (vyf)
  • Gregor Herrmann (gregoa)
  • Shlomi Fish (shlomif)
  • Damyan Ivanov
  • Ilya Pavlov (Ilya33)
  • Petr PΓ­saΕ™ (ppisar)
  • Mohammad S Anwar (MANWAR)
  • HΓ₯kon HΓ¦gland (hakonhagland, HAKONH)
  • Meredith (merrilymeredith, MHOWARD)
  • Diab Jerius (DJERIUS)
  • Eric Brine (IKEGAMI)
  • szTheory
  • JosΓ© JoaquΓ­n Atria (JJATRIA)
  • Pete Houston (openstrike, HOUSTON)
  • Lukas Mai (MAUKE)

This software is copyright (c) 2015-2022 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free as in do-what-you-want-with-her, slay πŸ’–


and that's the page bestie, mwah 😘 β€” brought to you by perl v5.42.3, dated 2026-08-20, and this lil' FFI::P...ieArray(3pm) page from the User Contributed Perl Documentation. stan her, she ate πŸ“πŸ’…

πŸ“¦ where this page comes from