Will it be possible (or sane even) to bind a variable to an array slice
e.g
## correct syntax?
my @array = a list of values ;
my @array_slice := @array[ 1 .. @array.end ];
Or would this merely bind @array_slice to the list returned by the slice,
or would it DTRT (in my eyes at least) and
Will it be possible (or sane even) to bind a variable to an array slice
e.g
## correct syntax?
my @array = a list of values ;
my @array_slice := @array[ 1 .. @array.end ];
Yeah, that'll work. It has to, lest:
my [EMAIL PROTECTED] := (1, 1, map { $^a + $^b } zip(@fibs,
Dan Brook wrote:
Will it be possible (or sane even) to bind a variable to an array slice
It *should* be, since it's possible (if ungainly) to do it in Perl 5:
use Data::Dumper 'Dumper';
@bar = (1,2,3);
*foo = (sub [EMAIL PROTECTED])-(@bar[1,0,3]);
print Dumper [EMAIL PROTECTED];
Iain Truskett [EMAIL PROTECTED] writes:
* Jonadab the Unsightly One ([EMAIL PROTECTED]) [01 Jul 2003 23:41]:
Iain Truskett [EMAIL PROTECTED] writes:
Not the only one. And with Parrot being able to execute
Z-code, it might be sane to port Inform to Parrot!
Did you mean port Inform