Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Loading multiple files with YAML::XS (named streams)

by Anonymous Monk
on Aug 05, 2013 at 07:42 UTC ( [id://1047873]=note: print w/replies, xml ) Need Help??


in reply to Loading multiple files with YAML::XS

Try  my %yams = map { $_ => [ LoadFile( $_ ) ] } @files; ie  $yams{filename}[ '0th-stream']...

I'm confused.

Me too, https://en.wikipedia.org/wiki/.yaml#Pitfalls_and_implementation_defects -> http://yaml.org/refcard.html , this 7 year old document is unparsable by YAML/YAML::XS/YAML::Tiny

YAML, great in theory :)

Replies are listed 'Best First'.
Re^2: Loading multiple files with YAML::XS (named streams)
by Lunaa (Initiate) on Dec 02, 2015 at 10:19 UTC
    Hi,, can u provide me an example or appropriate link in which two configs files are loaded using YAML in perl

      You might want to look at Config::Any.

      From the docs:

      load_files() attempts to load configuration from the list of files pas +sed in the files parameter, if the file exists.
      The module recognizes YAML files and will parse them with the appropriate YAML library (which means you have to have it installed).

      HTH

      The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-19 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found