##
use strict;
use warnings;
use YAML::Tiny;
use Data::Dumper;
# Create a YAML file
my $yaml = YAML::Tiny->new;
# Open the config
$yaml = YAML::Tiny->read( 'test.yaml' );
#changing yaml file
$yaml->[0]->{'order.create'}->{domain} = 'ckjckcjckj';
# Save the file
$yaml->write('test.yaml');
####
---
order.create:
domain: sdfsdfsdfsdf