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
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