AW: split() skipping trailing delimiters

2005-12-05 Thread Andreas.Kamentz
Hi dZ, According to documentation, the prototype of split has a third parameter: split /PATTERN/, EXPR, LIMIT If LIMIT is omitted in the function call, then "trailing null fields are stripped from the result", as the Camel book states. I also stumbled on it a few times... -- Andreas -U

RE: Test if string is a number?

2005-06-30 Thread Andreas.Kamentz
For a long time I'm using the function below to test for a number, being quite satisfied with it ... # (nmb) number # Returns decimal value of the contents if argument # is a number (integer if octal or hexadecimal), # otherwise returns empty