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.