| Jens Thoms Toerring 2007-01-26, 1:18 pm |
| Rainer Weikusat <rainer.weikusat@sncag.com> wrote:
> jt@toerring.de (Jens Thoms Toerring) writes:
[vbcol=seagreen]
> I am not supposed to put an ampersand in front of the constant,
> because this is no longer needed for subroutines calls in PERL since
> PERL 5. But using the & triggers the responsible AUTOLOAD, while the
> name is otherwise just treated as a bareword. This is apparently an
> undocimented implementation quirk of the POSIX-module.
Not completely undocumented: (nearly) all the examples in the
perldoc show the use of the ampersand when constants are used
unless directly preceeded by an import of the constant (func-
tion) or used without the package qualifier, so the import is
obvious. But definitely not documented well enough. But in any
case another argument for always using 'use strict';-)
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
|