Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by stevieb (Canon)
on Aug 26, 2015 at 13:23 UTC ( [id://1140019]=note: print w/replies, xml ) Need Help??


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

Definitely not wanting to take away from Corion's answer above as it is very important, but I did notice something while glancing at the code.

In the for line, you use {devices}, but in the subsequent assignment to $CFG, you use {device}.

foreach my $name (@{ $heap->{cfg}->{devices} }) { my $CFG = $heap->{cfg}->{device}->{$name}->{localfile};

We won't know whether this is a typo or not unless you post some Data::Dumper output.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-20 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found