Re: remove duplicate lines

2005-05-30 Thread Jay Savage
On 5/30/05, John W. Krahn <[EMAIL PROTECTED]> wrote: > Tielman Koekemoer (TNE) wrote: > > > >>Wow, I'm really confused. I'm trying to remove duplicate > >>lines from a marc21 text file. I have spent countless hours > >>searching for scripts etc. > > > > I'm also very new to Perl and wrote a long a

Re: Perl 5.6.0, AIX, Missing Module

2005-05-30 Thread Dave Thacker
On Monday 30 May 2005 13:16, Craig Moynes wrote: > I am using the File::Tail perl module. When I try to run my script I > get the following error message: > > Can't locate loadable object for module Time::HiRes in @INC (@INC > contains: /usr/opt/perl5/lib/5.6.0/aix /usr/opt/perl5/lib/5.6.0 > /usr/

Perl 5.6.0, AIX, Missing Module

2005-05-30 Thread Craig Moynes
I am using the File::Tail perl module. When I try to run my script I get the following error message: Can't locate loadable object for module Time::HiRes in @INC (@INC contains: /usr/opt/perl5/lib/5.6.0/aix /usr/opt/perl5/lib/5.6.0 /usr/opt/perl5/lib/site_perl/5.6.0/aix /usr/opt/perl5/lib/site_pe

Re: Simple question

2005-05-30 Thread Binish A R
Tony Marquis wrote: Very simple question. I'm reading a file and i want to remove all the in each lines. while(FIC) { $test = $_; #remove crlf. ... some code } How can i do that. Try $test =~ s/[\r\f]//g; to remove newlines, use $test =~ s/[\n]//g; -- To unsubscrib

Re: Simple question

2005-05-30 Thread Elvis Cehajic
On Mon, 30 May 2005 13:09:23 -0400 Tony Marquis <[EMAIL PROTECTED]> wrote: > Very simple question. > > I'm reading a file and i want to remove all the in each lines. > > while(FIC) { > > $test = $_; #remove crlf. > ... some code > > } > > How can i do that. First of all: stop

Simple question

2005-05-30 Thread Tony Marquis
Very simple question. I'm reading a file and i want to remove all the in each lines. while(FIC) { $test = $_; #remove crlf. ... some code } How can i do that. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: remove duplicate lines

2005-05-30 Thread John W. Krahn
Tielman Koekemoer (TNE) wrote: Wow, I'm really confused. I'm trying to remove duplicate lines from a marc21 text file. I have spent countless hours searching for scripts etc. I'm also very new to Perl and wrote a long and newbyish script that does exactly what the Unix command "sort FILENA

Re: require "sys/socket.ph";

2005-05-30 Thread John W. Krahn
Gayatri wrote: Dear All, Hello, I am facing one problem if any body knows the solution please let me know. file name : ch.pl.. use Socket; require "sys/socket.ph";# for &TCP_NODELAY ^^ Remove that line and it should work (TCP_NODELAY is included in the So

RE: remove duplicate lines

2005-05-30 Thread Tielman Koekemoer \(TNE\)
> Wow, I'm really confused. I'm trying to remove duplicate > lines from a marc21 text file. I have spent countless hours > searching for scripts etc. I'm also very new to Perl and wrote a long and newbyish script that does exactly what the Unix command "sort FILENAME | uniq" does just to see

require "sys/socket.ph";

2005-05-30 Thread Gayatri
Dear All, I am facing one problem if any body knows the solution please let me know. file name : ch.pl.. use Socket; require "sys/socket.ph";# for &TCP_NODELAY socket (SERVER, AF_INET, SOCK_STREAM,0); setsockopt(SERVER, SOL_SOCKET, &TCP_NODELAY, 1) or die "Couldn't disable Nagle'