perl: Split loop at...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've tried this on two different RH8.0 machines:


#!/usr/bin/perl

while(<>)
{
	@x1 = split(/[\t\n ]+/, $_);
	foreach $token (@x1)
	{
		@x2 = split(/[,;]/, $token);
	}
}


Feed it almost any input and you get something like:
Split loop at ./test line 8, <> line 1.

I've seen a few other reports around of a similar error
but no one has actually explained what causes it.
There is no discussion in perldoc -f split that explains
what might be generating this error and I'm scratching
my head as to how to get around it.

	- Tel



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux