Permalink
Browse files

Fix for new Rakudo

  • Loading branch information...
tadzik committed May 20, 2012
1 parent eb8c2e6 commit ab55f6cb1556ec125de5d418df84c76e531604df
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/Config/INI.pm
  2. +3 −3 lib/Config/INI/Writer.pm
View
@@ -1,6 +1,6 @@
use v6;
-module Config::INI:<github:tadzik 0.1>;
+module Config::INI;
grammar INI {
token TOP {
View
@@ -1,17 +1,17 @@
use v6;
-module Config::INI::Writer:<github:tadzik 0.1>;
+module Config::INI::Writer;
our sub dump (%what) {
my $ret;
# toplevel
for %what.kv -> $key, $value {
- next if $value.WHAT eq Hash;
+ next if $value ~~ Hash;
$ret ~= "$key=$value\n";
}
# sections
for %what.kv -> $key, $value {
- next if $value.WHAT ne Hash;
+ next unless $value ~~ Hash;
$ret ~= "\n[$key]\n";
for $value.kv -> $key, $value {
$ret ~= "$key=$value\n";

0 comments on commit ab55f6c

Please sign in to comment.