Re: perl: Split loop at...

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It could be related to unicode support.  Try:

use bytes;

However, I cannot reproduce the error.

On Sunday 09 March 2003 09:12 pm, Telford wrote:
> 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
> 
> 

- -- 
Stephen Carville http://www.heronforge.net/~stephen/gnupgkey.txt
===========================================
The difference between robbery and taxes is simple:   The first is 
someone threatening to hurt you if you do not give them your money.   
The second is legal.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+bCeASEs8eqGTwqYRAlFeAKCKkR5x0+ySLbkPfYqCWl0lcF7obQCbBoQg
6gVbjHwLXbYPBedf5j3hD+g=
=J991
-----END PGP SIGNATURE-----



-- 
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