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

Re: Not a HASH reference using YAML

by rpnoble419 (Pilgrim)
on Aug 17, 2012 at 05:53 UTC ( #987913=note: print w/ replies, xml ) Need Help??


in reply to Not a HASH reference using YAML

The Loadfile function will open and read the file for you. See the code below....

#!/usr/bin/perl use YAML qw(LoadFile); my %Config; %Config=LoadFile("YAMLFile.txt"); print $Config{Item1}{SubItem1};


Comment on Re: Not a HASH reference using YAML
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2015-08-05 06:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (80 votes), past polls