in reply to Re: Regexp::Common and "multidimensional hash lookup disabled"
in thread Regexp::Common and "multidimensional hash lookup disabled" (v5.36+)
In "Re: Regexp::Common and "multidimensional hash lookup disabled"", I suggested that a patch for Regexp::Common could fix the problem. This was wrong.
The "source for Regexp::Common" starts with (line 3):
use 5.10.0;
This will use the feature bundle :5.10. See "feature: FEATURE BUNDLES" which includes:
:5.10 bareword_filehandles indirect multidimensional say state switch
So, the multidimensional feature is already loaded.
My test included:
... package Regexp::Common; use if $] >= 5.035, feature => 'multidimensional'; package main; ...
which seemed to fix the problem. However, rewriting that as:
... package Regexp::Common { use if $] >= 5.035, feature => 'multidimensional'; } package main; ...
and the problem returns:
Multidimensional hash lookup is disabled at ...
I'll be striking the incorrect information from the earlier post. It will be in a spoiler; I won't delete it.
— Ken
|
|---|