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
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
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
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
> >
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
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.
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
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
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
"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
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
>
> > -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
> >
> >
>
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
>
>
>
>
\*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]]
>
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
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
> >
> >
> >
> &
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
>
>
>
>
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;
18 matches
Mail list logo