You
need to enclose your variables on the left in parenthesis.
($Activity_Date,$Activity_ID,$Activity_Owner,$Activity_Name) =
split (/\s+/,$Activity_Detail_Line);
Ken Barker
IT
Lead
Americall Group, Inc
314-213-7927
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, August 31, 2005 2:32 PM
To: $Bill Luebkert
Cc: [email protected]
Subject: Re: Metacharacters
Bill,
Another simplier challenge:
I need to put each string prior to a space into a seperate variable. Here is my string:
05-Dec-01.10:00:50 activity011204.221111 CLUNGU "(31246)"
Here is my command to dump the variables:
$Activity_Date,$Activity_ID,$Activity_Owner,$Activity_Name = split (/\s+/,$Activity_Detail_Line);
It is returning:
Results of the split is: Date: ID: Owner: Name:4
I thought that the \s+ - will return 1 or many spaces between, hence split the string into the (4) buckets using a space as the delimiter.
Thanks in advance for the help
Chris McEwen
Sr. Configuration Management Analyst
Alcatel Canada Inc.
Office: 416.748.4424 ext 5015
mailto: [EMAIL PROTECTED]
______________________________________________________________________
This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com.
______________________________________________________________________
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
