raku-toml confusion

[email protected] (ToddAndMargo via perl6-users) Fri, 23 May 2025 17:44:01 -0700
Newsgroups perl.perl6.users
Message-ID <[email protected]>
Hi All,

https://github.com/tony-o/raku-toml

In the usage parsing example:

     Parsing TOML
     use TOML;
     my $config = from-toml("config.toml".IO.slurp);
     # use $config like any ol' hash

This makes perfect sense to me.


But in the Generating TOML example:

    use TOML;
    my $config = {
      bands => ['green day',
                'motorhead',
                't swift',],
      favorite => 'little big',
    };
    my $toml-config = to-toml($config);

I am confused.  Seems to me he left something out.
If this creates a TOML file for you, what/where
is the file name and path?  What am I missing?

Your in confusion,
-T