PDL::Lite(3pm)

πŸ’– NAME πŸ’–

PDL::Lite β€” the bare-minimum PDL module loader, the little OO starter pack ✨

Okay so real quick bestie, this here is a page from the User Contributed Perl Documentation collection β€” it's PDL::Lite(3pm) and it's genuinely the lightest possible way to get PDL up and running. No cap. πŸ¦‹


✨ SYNOPSIS ✨

use PDL::Lite; # Is equivalent to the following:

  use PDL::Core '';
  use PDL::Ops '';
  use PDL::Primitive '';
  use PDL::Ufunc '';
  use PDL::Basic '';
  use PDL::Slices '';
  use PDL::Bad '';

That's it. That's the whole vibe. One use and you've basically done all seven of those. πŸ’…


🌸 DESCRIPTION 🌸

So what's actually happening here? PDL::Lite loads the smallest possible set of modules needed for PDL to work at all β€” like, the absolute bare essentials, no extra baggage, we are travelling light bestie πŸŽ€

And it imports into your current namespace only those functions that are always defined by PDL::Core. That's literally just three little guys:

  • pdl
  • barf
  • null

That's the whole import list. This is the absolute minimum set for PDL. Periodt. πŸ‘‘


🫢 how do I use the OTHER stuff tho

Great question, love that for you. Access to other functions is by method syntax, viz:

$x = PDL->pdl(1, 2, 3, 4, 5);
$x->wibble(42);

See how we're calling it as a method instead of importing it? That's the move. Method-call energy. ✨


⚠️ Heads up bestie β€” note that unlike PDL, this does not load PDL::Math or PDL::MatrixOps, and it doesn't load any IO modules either. So if you need those, this is not the loader for you and you should go grab the full thing. Don't come for me, I'm just the messenger 😭

Mwah πŸ’œ that's the whole page, you ate that. This lil cutie comes to you courtesy of the perl toolchain, version v5.42.3, dated 2026-08-20, filed under PDL::Lite(3pm) β€” go forth and slice some data, icon πŸŒˆπŸ’–

πŸ“¦ where this page comes from