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
- ubuntu stonking: pdl 1:2.106-1build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms