Unix Programming - How can I rid a Deprecated REF problem?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2004 > How can I rid a Deprecated REF problem?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How can I rid a Deprecated REF problem?
Ian Pellew

2004-11-19, 5:51 pm

Hi All;

Why am I getting the PERL -W complaint like:-
[Thu Nov 18 22:44:07 2004] w: Using a hash as a reference is
deprecated at w line 435.
. . . . .

from the likes of :-
435: my $en = \%$t_xmlin->{$child}->{$tag_s};

The process works OK, but I doubt I am future proof.

I am after a REF to the XML::Simple structure like:-
$VAR1 = {
'our_tags' => {
'idx_serno' => '10001',
'serno' => {
-> 'pt_' => {
'atts' => '1',
'edate' => '9912312359',
. . . . .

I go on to use $en like
my $l_var = eval{$$en->{$comp_to}};

Regards
Ian
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com