On Wed, May 23, 2001 at 02:30:40PM +0800, Stas Bekman wrote:
> depending on that feature. Not having this context makes all the functions
> that use wantarray() half usable and unintuitive. Of course your patch
> provides this feature, but are there any reasons for not having these in
> core?

None that I can think of.

To do the job properly will require some hacking on the stash to either
set flags to denote the context in which a variable should be evaluated,
or provide different methods, get(...), get_list(...).  It probably 
wouldn't be too hard to hack the parser grammar to accept an optional
'@' as a prefix on a variable name and generate the appropriate Perl
code to fetch the variable from the stash using the get_list() method,
or by setting a LIST_CONTEXT flag, instead of the default scalar context
method.

But until then, I'm happy to apply this functionality to the core.

A


-- 
Andy Wardley <[EMAIL PROTECTED]>   Signature regenerating.  Please remain seated.
     <[EMAIL PROTECTED]>   For a good time: http://www.kfs.org/~abw/


Reply via email to