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 PorterThread Previous | Thread Next