aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-07-29 03:04:34 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-07-25 02:16:36 +0200
commit0c50edd3b1a2ac017ab661de57f1e93a9a755016 (patch)
tree28adadd80d115c20096436ac87493fbe7b6fa1df /README.md
parent571f679bab6490a28b5478f9c0616eacceef6dc8 (diff)
Update README back to use $ sigils
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index b92a9af..e5a082b 100644
--- a/README.md
+++ b/README.md
@@ -21,10 +21,10 @@ please.
```perl6
use Config;
-my Config %config = Config.new();
+my Config $config = Config.new();
# Load a simple configuration hash
-%config.read({
+$config.read({
keyOne => "value",
keyTwo => {
NestedKey => "other value"
@@ -32,25 +32,25 @@ my Config %config = Config.new();
});
# Load a configuration files
-%config.read("/etc/config.yaml");
+$config.read("/etc/config.yaml");
# Load a configuration file with a specific parser
-%config.read("/etc/config", "Config::Parser::ini");
+$config.read("/etc/config", "Config::Parser::ini");
# Retrieve a simple key
-%config.get("keyOne");
+$config.get("keyOne");
# As of v1.2.0, `Config` support associative indexing:
-%config<keyOne>;
+$config<keyOne>;
# Retrieve a nested key
-%config.get("keyTwo.NestedKey");
+$config.get("keyTwo.NestedKey");
# Write out the configuration file
-%config.write("/etc/config.yaml");
+$config.write("/etc/config.yaml");
# Write out the configuration in another format
-%config.write("/etc/config.json", "Config::Parser::json");
+$config.write("/etc/config.json", "Config::Parser::json");
```
### Available parsers