-----Original Message-----
From: Wil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 4:09 PM
To: [EMAIL PROTECTED]
Subject: Split the line with "|" character
Dear Folks,
I'm trying to split a line that contains a pipe "|" and I cann't find a
way how to do it. If i put a back slash "\", it doesn't work either. Can
somebody help me how to do it? My code is : while ($line = <FILE>) {
chomp $line;
@data = split ("\|",$line);
..
}
Thanks
Wil
------------------------------------------------------------------------
---
I use something like:
@data = split(/\|/,$line);
My system doesn't like the double quotes with the pipe.
HTH,
Chris.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>