Re: Perl Script for parsing log files.

2013-05-07 Thread Asad
Hi All , Thanks to you all for the inputs . I have created the following script : use warnings; use strict; use File::Slurp qw(read_file); use constant LIMIT => 3;## Number of lines wanted use constant UPPERLIMIT => 9; open (OUTFILE, '>','d:\perl\OUTPUT.TXT'); #my $file = $ARGV[0]

Re: Lines written to a file are not contiguous

2013-05-07 Thread David Christensen
On 05/07/13 11:00, Sherman Willden wrote: ... I downloaded the Oreilly Programming Perl Version 4 examples. There are 30 directories with 2211 files. I want each chapter to have a consolidated file with all the examples for that chapter. I created the consolidate_examples.pl script which goes in

Re: Lines written to a file are not contiguous

2013-05-07 Thread Sherman Willden
Thank you all. It will take a day or two to get through all of this Sherman On Tue, May 7, 2013 at 1:52 PM, Jim Gibson wrote: > > On May 7, 2013, at 11:00 AM, Sherman Willden wrote: > > > Lines written to a file are not contiguous. > > > > First I will describe what I want the script to perfor

Re: Lines written to a file are not contiguous

2013-05-07 Thread Jim Gibson
On May 7, 2013, at 11:00 AM, Sherman Willden wrote: > Lines written to a file are not contiguous. > > First I will describe what I want the script to perform and then I will > include the script at the end of this message. I downloaded the Oreilly > Programming Perl Version 4 examples. There a

Re: Lines written to a file are not contiguous

2013-05-07 Thread Brandon McCaig
On Tue, May 07, 2013 at 12:00:10PM -0600, Sherman Willden wrote: > Lines written to a file are not contiguous. OK. Let's take a look then... (Note that your mail client seems tos have wrapped the code... I'm going to fix that in my quotes so it's readable) > #!/usr/bin/perl > > use v5.16.3; > #

Lines written to a file are not contiguous

2013-05-07 Thread Sherman Willden
Lines written to a file are not contiguous. First I will describe what I want the script to perform and then I will include the script at the end of this message. I downloaded the Oreilly Programming Perl Version 4 examples. There are 30 directories with 2211 files. I want each chapter to have a

Re: Variables in $Excel->Workbooks->Open

2013-05-07 Thread Jim Gibson
On May 7, 2013, at 1:48 AM, Ganesh Babu N wrote: > I tried your method but it showing the same error. Which method? I made two suggestions. It is always helpful to post the exact program that you tried and the exact error message you are getting. As I explained, I do not have a Windows system

Re: Variables in $Excel->Workbooks->Open

2013-05-07 Thread Ganesh Babu N
I tried your method but it showing the same error. Ganesh On Mon, May 6, 2013 at 8:58 PM, Jim Gibson wrote: > > On May 6, 2013, at 6:42 AM, Ganesh Babu N wrote: > > > > > Dear All, > > > > I am having an XLSX file in server and my OS in Win7. The first open > statement is working fine in which