How To Use Tie::IxHash In Perl Strict Mode
erics, Posted October 17th, 2010 at 8:58:54am
The following syntax FAILS:
[code]
use strict;
my %hash;
use Tie::IxHash;
tie %hash, Tie::IxHash;
[/code]
The SOLUTION is to wrap the Tie::IxHash declaration in single quotes. Parentheses added for better syntax:
[code]
tie (%hash, ‘Tie::IxHash’);
[/code]
Leave Your Comment
All fields marked with "*" are required.