Michael Weber <[EMAIL PROTECTED]> wrote:
> 
> perl -e '@NEW = split(".", "1.2.3"); print "x", $NEW[1], "x\n"; '
> Outputs  xx
> 

The first argument to split() is a regular expression, and "dot"
is a regex metacharacter.

  $ perl -e '@NEW = split /\./, "1.2.3"; print "x", $NEW[1], "x\n";'
  x2x

-- 
Steve

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to