How To Use Tie::IxHash With Anonymous Hash Variables In Perl

Author: , May 18th, 2011

Tie:IxHash CPAN Manual Page

How To Use Tie::IxHash In Perl Strict Mode

Author: , October 17th, 2010

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]