Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Config::Std multi-part problem

by carcassonne (Pilgrim)
on Dec 14, 2005 at 13:31 UTC ( #516630=note: print w/replies, xml ) Need Help??


in reply to Re: Config::Std multi-part problem
in thread Config::Std multi-part problem

Thanks, this works fine.

I now also use Contextual::Return to see if the value is a scalar in the first place:

print "This is a scalar\n" if (SCALAR { $config{"MYSECTION"}{"element"} });

If I had the time, I could look into Contextual::Return to see what code is SCALAR, and extract only that, but I see no problem so far in including the whole module.

I've noticed a blank entry in %config. Please see the new thread I created for that subject.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://516630]
help
Chatterbox?
[Petroza]: Hey there, I'm new here. I tried to post a question under ''Seekers of Perl Wisdom'' and when I tried to create it An Error appeared stating that I don't have permissions to post there. Do I need some sort of an Authorization?
[LanX]: no try again
[choroba]: Didn't you forget to add a title? Did you include links to the post?
[LanX]: choroba IIRC these errors are indicated
[1nickt]: Missing title suppresses the submit button, I think.
[1nickt]: Petroza to answer your question, no, no special permission is needed to post a question.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2017-10-17 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (233 votes). Check out past polls.

    Notices?