Subject: | docs of $lvalue prototype |
Date: | Wed, 30 Dec 2009 11:42:59 +1100 |
To: | bug-File-Map [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
In the File::Map pod it'd be good to make clear that the $lvalue string
parameter to each function is by prototype, and thus in fact a scalar
ref if using the functions by indirect calls &$func(\$mstr,...) or by a
require like
require File::Map;
File::Map::map_handle (\$str, ...);
I've been using this latter when only optionally wanting an mmap.
(This sort of difference between calls is of course one of the many
reasons not to use prototypes. What's gained in compile-time checking
or syntax is lost in uniformity and generality!)