Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: tie::Autotie

by sara2005 (Scribe)
on May 25, 2006 at 16:10 UTC ( [id://551639] : note . print w/replies, xml ) Need Help??

in reply to Re: tie::Autotie
in thread Any way to use Tie::Autotie on Perl 5.6?

Thanks a lot of letting me know that this will work in 5.6.1.

As you suggested, I removed "5.008003" from "Makefile.PL" and rebuilt the library. But, when I tried to execute a simple code to test this, it still gave an error as follows:-

Perl v5.8.3 required--this is only v5.6.1, stopped at /...../..../..../Tie/ line 3. BEGIN failed--compilation aborted at /.../.../.../plib/Tie/ line 3. Compilation failed in require at test.cgi line 5. BEGIN failed--compilation aborted at test.cgi line 5. and the sample code is

#! /path to perl use lib "path to auto tie"; use Data::Dumper; use Tie::Autotie 'Tie::IxHash'; tie %test_var, 'Tie::IxHash'; $tmp1 = 'MAIN'; $tmp2 = 'New'; $test_var{MAIN}{APP} = undef; $test_var{$tmp1}{$tmp2} = undef; $test_var{MAIN}{OP} = undef; $test_var{MAIN}{Vxit} = undef; $test_var{MAIN}{Exit} = undef; $test_var{MAIN}{OP}{PRO} = undef; $test_var{MAIN}{OP}{DEV} = undef; $test_var{MAIN}{OP}{CON} = undef; print Dumper(\%test_var);

Replies are listed 'Best First'.
Re^3: tie::Autotie
by gellyfish (Monsignor) on May 25, 2006 at 16:21 UTC

    Then it will be having a use 5.008003 in the which yu should try removing.


      Thank you.. It works now.