How To Pass A Reference To An Existing Object From One Class To Another In PHP

Author: , February 2nd, 2012

Inside class “yourClassA” calling “yourClassB”:

Inside class “yourClassB” getting the call from “yourClassA”:

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]