For Programmers: Free Programming 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, 8:57 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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com