Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Strange problem with Config::General

by Eily (Deacon)
on Nov 18, 2013 at 15:20 UTC ( #1063119=note: print w/ replies, xml ) Need Help??


in reply to Strange problem with Config::General

Are you running the exact same code in both cases?. Your output looks like you called $conf->getall in scalar context before assigning the result to %config. Something roughly like : my %config = scalar $cong->getall;, except the problem is probably far less obvious. But then you should have two warnings if they are on:

Odd number of elements in hash assignment at - line X. Use of uninitialized value in print at - line X.


Comment on Re: Strange problem with Config::General
Select or Download Code
Re^2: Strange problem with Config::General
by OfficeLinebacker (Chaplain) on Nov 18, 2013 at 16:04 UTC
    Hi. Yes I have warnings on and the code is identical. Thanks.

      With warnings activated there should have been at least the second one(and I don't see how the first could have been skipped). Are there other warnings you did not see or forgot to tell us about?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-12-25 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls