PDL::C...erloads(3pm)

✨ NAME ✨

PDL::Complex::Overloads β€” it's a subclass of Math::Complex that comes with overload fallbacks πŸ’…


🌸 SYNOPSIS 🌸

require PDL::Complex::Overloads;
my $same = PDL::Complex::Overloads::cplx(1, 2) eq '1+2i';

okay so yes bestie, that eq is doing exactly what you think it's doing 🫢


πŸ’– DESCRIPTION πŸ’–

So this class is lowkey a one-trick pony and it's not even shy about it β€” the entire point of its existence is to hand you Math::Complex's overloads, but with "fallback" set to true. That's it. That's the whole job πŸŽ€

And why, you ask? Mainly so you can do string-comparison, because backwards compatibility said "not me abandoning my old code era" and honestly? valid 😭

no cap: if you're here for brand-new fancy behaviour, this is not that. It's giving "fallback: true, and nothing else", and that's iconic of it πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

Ed J β€” the actual main character who wrote this ✨


πŸ¦‹ SEE ALSO πŸ¦‹

  • Math::Complex β€” the parent, the blueprint, the whole reason this subclass gets to exist 🌈

perl v5.42.3 Β· 2026-08-20 Β· straight out of User Contributed Perl Documentation, and yeah the page title got squished down to PDL::C...erloads(3pm) because even the manpage header couldn't handle the full name's main character energy πŸ’€

anyway bestie that's the whole page, go forth and compare your complex numbers as strings fr fr πŸŒΈπŸ’–

πŸ“¦ where this page comes from