multidimensional(3)

πŸ’– NAME πŸ’–

Okay bestie, welcome to the User Contributed Perl Documentation page for multidimensional(3) β€” and it's giving one very specific job: disables multidimensional array emulation. Slay. πŸ’…

🌸 VERSION 🌸

version 0.014 β€” yes, that's the one, no cap. ✨

✨ SYNOPSIS ✨

no multidimensional;

$hash{1, 2};                # dies
$hash{join($;, 1, 2)};      # doesn't die

So the first one? dies. πŸ’€ The join($;, 1, 2) version? doesn't die. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Perl's multidimensional array emulation stems from the days before the language had references, but these days it mostly serves to bite you when you typo a hash slice by using the $ sigil instead of @.

This module lexically makes using multidimensional array emulation a fatal error at compile time. Periodt.

πŸ’… METHODS πŸ’…

Two methods, bestie. Both are about the remainder of the scope being compiled.

πŸŽ€ unimport

Disables multidimensional array emulation for the remainder of the scope being compiled.

πŸŽ€ import

Enables multidimensional array emulation for the remainder of the scope being compiled;

πŸ‘€ SEE ALSO πŸ‘€

  • "$;" in perlvar
  • B::Hooks::OP::Check

πŸ‘‘ AUTHOR πŸ‘‘

Dagfinn Ilmari MannsΓ₯ker <ilmari@ilmari.org> β€” iconic. 🫢

This software is copyright (c) 2010 - 2016 by Dagfinn Ilmari MannsΓ₯ker.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Fr fr. πŸ’–


Okay that's the whole page, bestie β€” signing off from perl v5.32.1, dated 2022-01-20. Stay slay πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from