On Tue, 2 Jul 2002, Parker, Brian wrote:
> OK, I vote for the following patch. Looks like someone had the same idea for the
>'item' method. Sorry, I don't have a way to test a change to the .xs file.
>
> $ diff -Naur orig_Stash.pm Stash.pm
> --- orig_Stash.pm 2002-07-02 19:07:06.000000000 -0500
> +++ Stash.pm 2002-07-02 19:07:20.000000000 -0500
> <snip>
I'd vote a yes for this as well. If we're going to be DWIM (i.e. by
turning it into a scalar) then we should also DWIM by allowing us to treat
it as a list.
As well as this patch we need both test patches and documentation patched.
I'd submit them myself but I can't work out where the virtual methods are
tested. There's a little in stash.t but there's not really that many
tests there (maybe we could do with some more comments in the tests too
;-))
There seems to be a second experimental stash that may or may not need
patching to support the same methods as well (what's this for again?)
Oh, and it'd be nice if someone else patched the C stash to add this kind
of thing in as a pure C operation, but it'll work without it.
Mark.
--
s'' Mark Fowler London.pm Bath.pm
http://www.twoshortplanks.com/ [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/ +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}