Author: audreyt
Date: Tue Oct 31 13:52:03 2006
New Revision: 13358
Modified:
doc/trunk/design/syn/S06.pod
Log:
* S06: Fix Hash example typo spotted by cognominal++
Modified: doc/trunk/design/syn/S06.pod
==============================================================================
--- doc/trunk/design/syn/S06.pod (original)
+++ doc/trunk/design/syn/S06.pod Tue Oct 31 13:52:03 2006
@@ -13,9 +13,9 @@
Maintainer: Larry Wall <[EMAIL PROTECTED]>
Date: 21 Mar 2003
- Last Modified: 16 Oct 2006
+ Last Modified: 31 Oct 2006
Number: 6
- Version: 59
+ Version: 60
This document summarizes Apocalypse 6, which covers subroutines and the
@@ -386,7 +386,7 @@
Likewise, if you wish to pass a hash and have its entries treated as
named arguments, you must dereference it with a C<|>:
- %pairs = {:when<now> :what<any>};
+ %pairs = (:when<now>, :what<any>);
doit %pairs,1,2,3; # always a positional arg
doit |%pairs,1,2,3; # always named args
doit |%(get_pair()),1,2,3; # always a named arg