in reply to Re^2: A Better Way to Find the Position of the Last Non-Whitespace Character in the Last Element of an Array.
in thread A Better Way to Find the Position of the Last Non-Whitespace Character in the Last Element of an Array.

I think  $[ was originally intended to allow use of either 0-based or 1-based arrays, and then things kinda got out of hand. Sanity is slowly being restored.
  • Comment on Re^3: A Better Way to Find the Position of the Last Non-Whitespace Character in the Last Element of an Array.
  • Download Code

Replies are listed 'Best First'.
Re^4: A Better Way to Find the Position of the Last Non-Whitespace Character in the Last Element of an Array.
by MidLifeXis (Monsignor) on Apr 29, 2009 at 15:05 UTC

    See the Numerical Recipes series, IIRC. I seem to also remember that there was a 1-based vs 0-based set of changes going around, or perhaps it was in Numerical Recipes in Pascal.

    The general case of assigning any value to $[ opens up many interesting problems :-)

    --MidLifeXis

    The tomes, scrolls etc are dusty because they reside in a dusty old house, not because they're unused. --hangon in this post