Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Again on "can't use string as hash as HASH ref while "strict refs" in use"

by Corion (Patriarch)
on Aug 26, 2015 at 14:19 UTC ( [id://1140031]=note: print w/replies, xml ) Need Help??


in reply to Re: Again on "can't use string as hash as HASH ref while "strict refs" in use"
in thread Again on "can't use string as hash as HASH ref while "strict refs" in use"

Your data structure has no localfile entry, but you try to access it:

my $CFG = $heap->{cfg}->{device}->{$name}->{localfile};

What do you expect to happen here?

The path through your data structure ends at 192.168.0.1, which is what Perl told you. There is no localfile below that. You need to go back and talk to the people writing the XML structure what should happen here. Also, using XML::Simple is often problematic, as it usually brings problem if a structure only repeats once or repeats multiple times.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1140031]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-03-29 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found