Re: multidimensional insertion order



Spin (cNaOlSePbA@xxxxxxxxxxxxxxxxxx) wrote on MMMMCCCXLIX September
MCMXCIII in <URL:news:11eidvi5qg0tib6@xxxxxxxxxxxxxxxxxx>:
--
-- The second tie (in the if statement) is where I get the error "Can't
-- locate object method "TIESCALAR" via package "Tie::IxHash" at
-- wis_xml_to_html.pl line 56, <XML> line 2."

That's because you're trying to tie a scalar. In that case, the tie
mechanism will try to locate the sub TIESCALAR. But you don't want to
tie a scalar, you want to tie a hash. You'll have to do something
like

tie %{$xml_lines{$section}->{$section_number}}, "Tie::IxHash";


Abigail
--
my $qr = qr/^.+?(;).+?\1|;Just another Perl Hacker;|;.+$/;
$qr =~ s/$qr//g;
print $qr, "\n";
.



Relevant Pages

  • Tie and Lexical Filehandles or IO::File?
    ... to tie lexically scoped handles or IO::File objects. ... read perltie and perlref, browsed the Perl FAQ and Googled both the groups ... sub PRINT ... an undef scalar appears to make no difference. ...
    (comp.lang.perl.misc)
  • Re: Tie and Lexical Filehandles or IO::File?
    ... beginning to grasp the basics of Perl OOP, ... to tie lexically scoped handles or IO::File objects. ... sub PRINT ... an undef scalar appears to make no difference. ...
    (comp.lang.perl.misc)
  • Re: Help with tied/nested data structures
    ... survives, the object survives. ... when %hash itself it tied. ... Scalar tie() only works on actual scalar ...
    (comp.lang.perl.misc)
  • Re: Help with tied/nested data structures
    ... had a plain hash that had a few scalars inside of it that were tied. ... After I tie the scalar, it nearly gets immediately culled by the Perl ... the hash-tying mechanism itself. ...
    (comp.lang.perl.misc)
  • Re: can only dial one way over PRI TIE with CDP
    ... > tie line normally. ... I have double checked the TGAR and TARG in both LD ... Prev by Date: ...
    (comp.dcom.sys.nortel)