logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

multidimensional - disables multidimensional array emulation

Author

       Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>

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.

Methods

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;

Name

       multidimensional - disables multidimensional array emulation

See Also

       "$;" in perlvar, B::Hooks::OP::Check.

Synopsis

           no multidimensional;

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

Version

       version 0.014

See Also