> 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);
remember, your split is returning an array, so you need
the parentheses around the grouped scalar 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
> It is returning:
> Results of the split is: Date: ID: Owner: Name:4
These
results look like they're coming from your variable names,
somehow. Or
$Activity_Detail_Line isn't what you think it is.\
Good
luck,
Sam
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
