The approach of using list context for the match and the array slice:
my @fields = $data =~ m/^(\S+)\s+((\S+\s+)?(\S+))$/;
@values = @[EMAIL PROTECTED];
is exactly what I needed.
I still can't find this referenced in the docs though.
Thanks,
Don
On Tuesday 20 December 2005 09:30, Bob Showalter
The original regex matched on
lower case
then
uper case
then
digits
then
white space
then
the separator
then
lower case
then
uper case
then
digits
then
white space
This is not what you wanted.
If '>' is the separator then you should match on:
anything other than the separator
Try compiling the code and then spinning up the compiled version.
Don
-- Forwarded Message --
Subject: running a perl script as a service on W32 box
Date: Mon, 07 Oct 2002 13:03:28 -0400
From: david odell <[EMAIL PROTECTED]>
To: beginners perl <[EMAIL PROTECTED]>
I can inst