aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/calendar_autocreate.mdwn
diff options
context:
space:
mode:
authorsmcv <smcv@web>2014-09-10 04:42:24 -0400
committeradmin <admin@branchable.com>2014-09-10 04:42:24 -0400
commitdb99afcd1829d59219ae4fea0a09229a8136e9e2 (patch)
tree23f3dba8b2eb257a8720ccd239b3ce664394c619 /doc/todo/calendar_autocreate.mdwn
parentec1d6e8ebb3de17200b6e57223af9f38eb3a8480 (diff)
downloadikiwiki-db99afcd1829d59219ae4fea0a09229a8136e9e2.tar
ikiwiki-db99afcd1829d59219ae4fea0a09229a8136e9e2.tar.gz
clarif
Diffstat (limited to 'doc/todo/calendar_autocreate.mdwn')
-rw-r--r--doc/todo/calendar_autocreate.mdwn6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/todo/calendar_autocreate.mdwn b/doc/todo/calendar_autocreate.mdwn
index e25c45cb2..8e6a1a0d0 100644
--- a/doc/todo/calendar_autocreate.mdwn
+++ b/doc/todo/calendar_autocreate.mdwn
@@ -212,12 +212,14 @@ sub gencalendaryear {
> + }
> + $changed{$params{year}}{$params{month}} = 1;
>
-> $changed{$params{year}} is a scalar but `()` is a list. I think you want `{}`
+> `$changed{$params{year}}` is a scalar (you can tell because it starts with the
+> `$` sigil) but `()` is a list. I think you want `{}`
> (a scalar that is a reference to an empty anonymous hash).
>
> However, that whole `if` block can be omitted, and you can just use
> `$changed{$params{year}}{$params{month}} = 1;`, because Perl will automatically
-> create $changed{$params{year}} as a reference to a hash (the term to look
+> create `$changed{$params{year}}` as a reference to an empty hash, in order to
+> put the pair `$params{month} => 1` in it (the term to look
> up if you're curious is "autovivification").
>
> --[[smcv]]