> why is tie considered not very efficient i use it often.. what is 'a'
> much better way?

Many modules which use tie also provide an object oriented interface. It's
more efficient to use the OO interface according to benchmarks I've seen
here.

If you have two modules, one which has an OO interface and one that has a
tied interface, create a wrapper to make the tie module object oriented
instead of creating a wrapper to make the OO module into a tie.

For such wrappers to handles, check out IO::Wrap and/or IO::WrapTie (I
don't remember which). They are located in IO::Stringy on CPAN, IIRC. It's
been a while.

ELB

--
Eric L. Brine  |  Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED]  |  Do you always hit the nail on the thumb?
ICQ# 4629314   |  An optimist thinks thorn bushes have roses.

Reply via email to