Eric,
from
this code it looks like your
splitting on the entire variable in $line.
Split
will pull out whatever _expression_
that
you give it and return what's left.
For
example,
$line
= "c:\\;;c:\\test\\;c:\\test\\test;";
@fields = split(/;/,$line);
@fields will be ("c:\", "", "c:\test",
"c:\test\test")
Hope
this helps:)
John
-----Original Message-----
From: Eric Hennessey [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:11 AM
To: [EMAIL PROTECTED]
Subject: A silly (I think) questionI've got an issue with a split function, or at least I THINK that's where I'm having the problem.Given that $line is one line of output from a command in column format, I run the following:$line = `some command`;chomp $line;@fields = split $line;This should produce a list of strings from $line, right?Any idea why I'd have an empty list when $line contains the expected data as verified from a print command?Thanks in advance!Eric
