On Friday 07 September 2001 03:22 pm, raptor wrote:
> will the iterator variable be available in map, grep, join...etc...
Iterators haven't been defined yet, so it's hard to tell.
For map and grep, it's certainly feasible, depending on their implementation
- although neither are truly iterators.
For join, I don't see where you would access it.
>
> I was also wondering if the join syntax be extended in a way that it can
> support preffix and suffix... what i have in mind ... not necesary but :
> #pair
> join ($prefix => $suffix), @ary;
>
> so :
> my $select = join (qq{<option value="$_">} => '</option>'), @ary;
That's not really joining.
>
> or is better to stay like this :
> my $select;
> map { $select .= qq{<option value="$_">$_</option>} } @ary;
Definitely.
--
Bryan C. Warnock
[EMAIL PROTECTED]