develooper Front page | perl.perl6.language | Postings from July 2001

RE: aliasing - was:[nice2haveit]

Thread Previous | Thread Next
From:
Sterin, Ilya
Date:
July 19, 2001 12:07
Subject:
RE: aliasing - was:[nice2haveit]
Message ID:
E989263E0496D3119C440008C79185340280C7A9@cibermail2.ciber.com
Agree.  I think that with() should only be used with object references only,
and $_ should be set accordingly.

Ilya 

-----Original Message-----
From: John Porter
To: perl6-language@perl.org
Sent: 07/19/2001 1:01 PM
Subject: Re: aliasing - was:[nice2haveit]

Sterin, Ilya wrote:
> But I thought this was related to more than just with(), so if we have
> 
> ### Would now have to be printed as
> 
> print "This is number ";
> print;
> print " of 10\n";
> 
> I still believe that although not defining a variable source will use
the
> temp variable there is still a need for an explicit scalar like $_.
> Unless there is something I am missing from this discussion.

No.  with() must be consistent with other perl constructs.
If implemented, it will use $_.  Plain and simple.

-- 
John Porter

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About