Bron Gondwana wrote:
>
> In [EMAIL PROTECTED], you wrote:
> > count = array; # scalar context because of assignment to
> > scalar.
> > alt_array[] = array; # list context
>
> and if array is a subroutine?
>
>count = array();
>count = &array; # warning - special mean
Michael Maraist wrote:
>
> > my var; # declaring a scalar
> > my array[]; # declaring an array
> > my hash{}; # declaring a hash
>
> Though the declarations seem fine, I assume that you propose this to be
> optional at usage time, since variable interpolations such as
> "xxx${var1}xxx${var
> my var; # declaring a scalar
> my array[]; # declaring an array
> my hash{}; # declaring a hash
Though the declarations seem fine, I assume that you propose this to be
optional at usage time, since variable interpolations such as
"xxx${var1}xxx${var2}xxx" really need the prefix. One of
David Corbin wrote:
> >
> > For the remainder of the enclosing block, the barewords var,
> > array and hash are to be interpreted as references to a scalar, an
> > array, and a hash.
>
> I'm confused by this statement. Are you suggesting an alternative to
> the original RFC?
No, I was trying
"David L. Nicol" wrote:
>
> >
> > Consider the following syntax:
> >
> > my var; # declaring a scalar
> > my array[]; # declaring an array
> > my hash{};# declaring a hash
>
> For the remainder of the enclosing block, the barewords var,
> array and hash are to be interpreted as r
>
> Consider the following syntax:
>
> my var; # declaring a scalar
> my array[]; # declaring an array
> my hash{};# declaring a hash
For the remainder of the enclosing block, the barewords var,
array and hash are to be interpreted as references to a scalar, an
array, and a ha
In [EMAIL PROTECTED], you wrote:
> count = array; # scalar context because of assignment to
> scalar.
> alt_array[] = array; # list context
and if array is a subroutine?
count = array();
count = &array; # warning - special meaning in p5.
Either would be just as messy
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Alternate Syntax for variable names
=head1 VERSION
Maintainer: David Corbin <[EMAIL PROTECTED]>
Date: 20 Aug 2000
Version: 1
Mailing List: [EMAIL PROTECTED]
Number: 133
=head1 ABSTRACT
Many new