Front page | perl.perl5.porters |
Postings from April 2009
Re: Deprecating $[
Thread Previous
|
Thread Next
From:
Ronald J Kimball
Date:
April 2, 2009 09:07
Subject:
Re: Deprecating $[
Message ID:
20090402160747.GA56340@penkwe.pair.com
On Thu, Apr 02, 2009 at 03:26:42PM +0100, James Mastros wrote:
>
> --- a/pod/perlvar.pod
> +++ b/pod/perlvar.pod
> @@ -1037,8 +1037,9 @@ subscripting and when evaluating the index() and
> substr()
> functions.
>
> As of release 5 of Perl, assignment to C<$[> is treated as a compiler
> directive, and cannot influence the behavior of any other file.
> -(That's why you can only assign compile-time constants to it.)
> -Its use is highly discouraged.
> +(That's why you can only assign compile-time constants to it.) Its
> +use is depreciated, and will trigger a warning (if the depreciation
> +L<warnings> category is enabled. You did C<use warnins>, right?)
"deprecated" and "deprecation", not "depreciated" and "depreciation".
"depreciation" is a decline in value, as in accounting.
Also, "C<use warnings>" rather than "C<use warnins>".
Ronald
Thread Previous
|
Thread Next