Re: File output - help

2008-06-25 Thread jet speed
Thanks Rob, Much appreciated Sj On 6/24/08, Rob Dixon <[EMAIL PROTECTED]> wrote: > > Dermot wrote: > > Welcome, > > > > > > 2008/6/24 jet speed <[EMAIL PROTECTED]>: > >> Hi, > >> > >> I am beginner to perl, > >> > >> I have a file name cxout and i want to capture just the LUN 415, LUN 815 > >> int

Re: File output - help

2008-06-25 Thread Dr.Ruud
Dermot schreef: > #!/bin/perl > > use strict; > use warnings; > > my @luns; > while () { > chomp; Why chomp? > next unless $_ =~ /LUN/; > $_ =~ /\[(LUN\s+\d+)\]/; There is no need to mention $_ in those lines. (I don't think it is bad that you do, but I wouldn't.) $1 can rema

Re: File output - help

2008-06-24 Thread Rob Dixon
Dermot wrote: > Welcome, > > > 2008/6/24 jet speed <[EMAIL PROTECTED]>: >> Hi, >> >> I am beginner to perl, >> >> I have a file name cxout and i want to capture just the LUN 415, LUN 815 >> into arrray & then print from the array. my idea is to capture different >> element form this file and the

Re: File output - help

2008-06-24 Thread jet speed
Thanks Dermot, it gives me the required output. Much appreciated. On 6/24/08, Dermot <[EMAIL PROTECTED]> wrote: > > Welcome, > > > 2008/6/24 jet speed <[EMAIL PROTECTED]>: > > Hi, > > > > I am beginner to perl, > > > > I have a file name cxout and i want to capture just the LUN 415, LUN 815 > >

Re: File output - help

2008-06-24 Thread Dermot
Welcome, 2008/6/24 jet speed <[EMAIL PROTECTED]>: > Hi, > > I am beginner to perl, > > I have a file name cxout and i want to capture just the LUN 415, LUN 815 > into arrray & then print from the array. my idea is to capture different > element form this file and the print form the array. Any hel

File output - help

2008-06-24 Thread jet speed
Hi, I am beginner to perl, I have a file name cxout and i want to capture just the LUN 415, LUN 815 into arrray & then print from the array. my idea is to capture different element form this file and the print form the array. Any help would be much appericated. my sample script looks as below.

Re: output help

2002-12-11 Thread Christopher D . Lewis
Does Word2000 understand Unicode? Does it default to trying to read Unicode, rather than ASCII or the like? I have used jEdit with success to read/write Unicode files. --Chris On Monday, December 9, 2002, at 02:30 PM, Raghupathy, Ramesh . wrote: Hi, I am using perl 5.8.0 for windows to

output help

2002-12-09 Thread Raghupathy, Ramesh .
Hi, I am using perl 5.8.0 for windows to output Unicode characters in a file and I like to see the unicode characters using any word processor on Windows. When I use Word 2000 using Arial Unicode MS font, all the unicode characters looks garbled. How can I see the Unicode characters of the file

Re: Input | Program | Output : help

2002-04-13 Thread drieux
On Friday, April 12, 2002, at 05:27 , John W. Krahn wrote: > "Tirthankar C. Patnaik" wrote: >> Could you give a good reference to this things, IPC, pipes, fifo, >> sockets, >> etc? I could not make much headway, from what I read in the man pages, >> and >> perldoc. > > > The best references fo

Re: Input | Program | Output : help

2002-04-12 Thread John W. Krahn
"Tirthankar C. Patnaik" wrote: > > Thanks a lot. Your guess was right. The second part was what I needed. I am > still not a little confused about the first, though. They do not teach > this in the institution where I study. :) > > Could you give a good reference to this things, IPC, pipes, fifo

RE: Input | Program | Output : help

2002-04-12 Thread Nikola Janceski
M > To: Nikola Janceski > Cc: [EMAIL PROTECTED] > Subject: RE: Input | Program | Output : help > > > Thanks a lot. Your guess was right. The second part was what > I needed. I am > still not a little confused about the first, though. They do not teach > this in the insti

RE: Input | Program | Output : help

2002-04-12 Thread Tirthankar C. Patnaik
> > > -Original Message- > > From: Tirthankar C. Patnaik [mailto:[EMAIL PROTECTED]] > > Sent: Friday, April 12, 2002 2:00 PM > > To: Nikola Janceski > > Cc: [EMAIL PROTECTED] > > Subject: RE: Input | Program | Output : help > > > > >

RE: Input | Program | Output : help

2002-04-12 Thread Nikola Janceski
PUT; } close COMMAND; close OUTFILE; > -Original Message- > From: Tirthankar C. Patnaik [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 12, 2002 2:00 PM > To: Nikola Janceski > Cc: [EMAIL PROTECTED] > Subject: RE: Input | Program | Output : help > > > >

RE: Input | Program | Output : help

2002-04-12 Thread Tirthankar C. Patnaik
\*ZIPIT); I tried this, and it didn't work. I am confused. Sorry, but please explain. A working complete example would be great. TIA, -tir > > perldoc IPC::Open2 > > > -Original Message- > > From: Tirthankar C. Patnaik [mailto:[EMAIL PROTECTED]] >

RE: Input | Program | Output : help

2002-04-12 Thread Nikola Janceski
ct: RE: Input | Program | Output : help > > > > I'm afraid I couldn't succeed in using the IPC::Open2 module. > Where am I > going wrong? > > # } > my($IN,$OUT); > open(OUT,"| discretise ${delta} ${BOD} ${EOD}") || die > "So

RE: Input | Program | Output : help

2002-04-12 Thread Tirthankar C. Patnaik
ge > it now. > > > > -Original Message- > > From: Tirthankar C. Patnaik [mailto:[EMAIL PROTECTED]] > > Sent: Friday, April 12, 2002 1:04 PM > > To: [EMAIL PROTECTED] > > Subject: Input | Program | Output : help > > > > > > > &

RE: Input | Program | Output : help

2002-04-12 Thread Nikola Janceski
ave used the ZIP module.. I am too lazy to change it now. > -Original Message- > From: Tirthankar C. Patnaik [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 12, 2002 1:04 PM > To: [EMAIL PROTECTED] > Subject: Input | Program | Output : help > > > >

Input | Program | Output : help

2002-04-12 Thread Tirthankar C. Patnaik
Folks, Consider this code snippet: Here $ParseFile is a plain-text file, which could be gzipped, bzipped, or not compressed at all. I'd like my program to determine this, open the file, and cat it to another program called discretise. In the code below, my(@PARSELIST) = @ARGV;