Hi, Ed,

For the reason, check the docs for 'range' as it is similar. There are  
several answers from about two months ago in the mailing list archive;  
I will repost when I get to a real keyboard shortly.



On Jul 1, 2009, at 6:46 PM, "Hyer, Dr. Edward" <[email protected] 
 > wrote:

> Hi PDL Wizards,
>
> perldl> $this=pdl(3,4,5,5,5,5,5,5,5,5)
> perldl> $that=pdl(0..10)
> perldl> $thisi=index($that,$this)
> perldl> $thisi += 1
> perldl> p $that
> [0 1 2 4 5 6 6 7 8 9 10]
>
> I was hoping for
> [0 1 2 4 5 13 6 7 8 9 10]
>
> Any suggestions for how I get this result?
>
> Thanks,
>
> --Edward H.
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to