Re: multidimensional insertion order
- From: Abigail <abigail@xxxxxxxxxx>
- Date: 28 Jul 2005 20:24:11 GMT
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";
.
- References:
- multidimensional insertion order
- From: Spin
- Re: multidimensional insertion order
- From: Abigail
- Re: multidimensional insertion order
- From: Spin
- Re: multidimensional insertion order
- From: Paul Lalli
- Re: multidimensional insertion order
- From: Spin
- Re: multidimensional insertion order
- From: Paul Lalli
- Re: multidimensional insertion order
- From: Spin
- multidimensional insertion order
- Prev by Date: Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Next by Date: Re: length of an array in a struct in an array of structs in a struct in an array of structs
- Previous by thread: Re: multidimensional insertion order
- Next by thread: Re: multidimensional insertion order
- Index(es):
Relevant Pages
|