In article <[EMAIL PROTECTED]>, Mike M wrote:
> I've found this script on another message board that is close, but still
> doesn't work with my data.  Any ideas on modifications?  I think my
> biggest problem is the regex in the split function, because what this does
> is match ONLY against the first column in the line, when I need it to
> match anything
> in the fourth column.  Thanks for your help, and I'll see what I can do
> about allowing playboy.com (although since I work at a public school
> district, it might not be a good idea!)   

Even worse (I had assumed this was for an employer)...

> The script follows:

[...]
> while(my $line=<FILE2>)
> {
>     my($num);
>     ($num, undef)=split /\s+/,$line, 2;
[...]

This, I believe, says "split $line on white space into two pieces; place
first piece into $num and throw away the rest."

If you look at perldoc -f split and then try a couple tests, you should be
able to get what you want.

-Kevin (no expert though)

P.S. - No top-posting please.

-- 
Kevin Pfeiffer


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

Reply via email to