Re: Emptying a log file....

2005-08-11 Thread Muthukumar
> Is there any way in perl to effectively clear the contents of an > ***existing*** file (making the file empty) ? I have a log file that > I'd like to empty out after it reaches a certain maximum file size. You can to check the file size and empty the file easily as, Shell actions: a) > b) c

nmake error

2005-08-11 Thread Ken Perl
Anybody knows what the nmake error means? Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. C:\activePerl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness( 0, 'inc', 'blib\lib', 'blib\arch')" t\0-signature.t t\1-b

Re: Emptying a log file....

2005-08-11 Thread Jeff 'japhy' Pinyan
On Aug 11, Tony Frasketi said: Is there any way in perl to effectively clear the contents of an ***existing*** file (making the file empty) ? I have a log file that I'd like to empty out after it reaches a certain maximum file size. The truncate() function, which takes a filename OR a fileh

Re: Emptying a log file....

2005-08-11 Thread Chris Devers
On Thu, 11 Aug 2005, Binish A R wrote: > Tony Frasketi wrote: > > > Hello Listers > > > > Is there any way in perl to effectively clear the contents of an > > ***existing*** file (making the file empty) ? I have a log file > > that I'd like to empty out after it reaches a certain maximum file

Re: Emptying a log file....

2005-08-11 Thread Bryan R Harris
Not a perl solution, but: cp /dev/null myfile - B > Hello Listers > > Is there any way in perl to effectively clear the contents of an > ***existing*** file (making the file empty) ? I have a log file that > I'd like to empty out after it reaches a certain maximum file size. > > thanks in

Re: Emptying a log file....

2005-08-11 Thread Wijnand Wiersma
2005/8/11, Binish A R <[EMAIL PROTECTED]>: > Tony Frasketi wrote: > Hello Listers > > Is there any way in perl to effectively clear the contents of an > ***existing*** file (making the file empty) ? I have a log file that I'd > like to empty out after it reaches a certain maximum file size.

Re: Emptying a log file....

2005-08-11 Thread Binish A R
Tony Frasketi wrote: Hello Listers Is there any way in perl to effectively clear the contents of an ***existing*** file  (making the file empty) ?  I have a log file that I'd like to empty out after it reaches a certain maximum file size. thanks in advance Tony just openin

Re: Analyze Log

2005-08-11 Thread Binish A R
Nick wrote: Hi There, I am trying to analyze a simple log file and pull 2 pieces of data from it. The log looks as follows: www.example.com 42f3ca1042f8c42f0 7338 0 3638 Where each valie is tab seperated. I want to create a hash with "www.example.com"

Emptying a log file....

2005-08-11 Thread Tony Frasketi
Hello Listers Is there any way in perl to effectively clear the contents of an ***existing*** file (making the file empty) ? I have a log file that I'd like to empty out after it reaches a certain maximum file size. thanks in advance Tony -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Analyze Log

2005-08-11 Thread Matija Papec
Nick wrote: Hi There, I am trying to analyze a simple log file and pull 2 pieces of data from it. The log looks as follows: www.example.com 42f3ca1042f8c42f0 73380 3638 Where each valie is tab seperated. I want to create a hash with "www.example.com"

RE: Regular expression not working as expected

2005-08-11 Thread Daniel Kurtz
-Original Message- From: Robin [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 09:27 To: beginners@perl.org Subject: Re: Regular expression not working as expected > This is correct, it's because you're saying "find two 'o' next to each other somewhere", with no other rest

Re: Analyze Log

2005-08-11 Thread mgoland
- Original Message - From: Nick <[EMAIL PROTECTED]> Date: Thursday, August 11, 2005 10:37 am Subject: Analyze Log > Hi There, Hi Nick, > > I am trying to analyze a simple log file and pull 2 pieces of data > from > it. The log looks as follows: > > www.example.com 42f3ca10

Analyze Log

2005-08-11 Thread Nick
Hi There, I am trying to analyze a simple log file and pull 2 pieces of data from it. The log looks as follows: www.example.com 42f3ca1042f8c42f0 73380 3638 Where each valie is tab seperated. I want to create a hash with "www.example.com" as the key an

Re: Regular expression not working as expected

2005-08-11 Thread Robin
On Friday 12 August 2005 02:11, Daniel Kurtz wrote: >             "fo" =~ /o{2}/ = false >             "foo" =~ /o{2}/ = true >             "fooo" =~ /o{2}/ = true This is correct, it's because you're saying "find two 'o' next to each other somewhere", with no other restrictions. In this example,

Re: Regular expression not working as expected

2005-08-11 Thread Manav Mathur
According to the tutorial I'm following: {n}matches exactly n of the previous thing Thus I expect: "fo" =~ /o{2}/ = false "foo" =~ /o{2}/ = true "fooo" =~ /o{2}/ = false Instead I get: "fo" =~ /o{2}/ = false "foo" =~ /o{2}/ =

Regular expression not working as expected

2005-08-11 Thread Daniel Kurtz
According to the tutorial I'm following: {n}matches exactly n of the previous thing Thus I expect: "fo" =~ /o{2}/ = false "foo" =~ /o{2}/ = true "fooo" =~ /o{2}/ = false Instead I get: "fo" =~ /o{2}/ = false "foo" =~ /o{2

Re: perl regexp need help!

2005-08-11 Thread John W. Krahn
Jay Savage wrote: > On 8/11/05, Alex <[EMAIL PROTECTED]> wrote: >>>Also, correction posted by Jay, is not applicabile because we have more >>>lines containing "Virus" word and only one should be counted (* Virus). >>> >>And for posterity, i am answering myself: >> >>elsif($prog eq 'hook

Re: perl regexp need help!

2005-08-11 Thread Jay Savage
On 8/11/05, Alex <[EMAIL PROTECTED]> wrote: > > Also, correction posted by Jay, is not applicabile because we have more > > lines containing "Virus" word and only one should be counted (* Virus). > > > > Alex > > And for posterity, i am answering myself: > > elsif($prog eq 'hook') { >

Re: perl and java and html

2005-08-11 Thread Jan Eden
Sonia wrote on 03.08.2005: >Hi, I want to run PERL script which will combine several JAVA >applications. Furthermore, I need this script to run in the HTML >page. Is that possible? Can I run this locally on my machine, >without a server? > >Thanks Check out mod_perl (and Apache::SSI):

Re: perl regexp need help!

2005-08-11 Thread Alex
> Also, correction posted by Jay, is not applicabile because we have more > lines containing "Virus" word and only one should be counted (* Virus). > > Alex And for posterity, i am answering myself: elsif($prog eq 'hook') { # Vexira antivirus if($text =

Re: use of backslash..

2005-08-11 Thread Muthukumar
> if (\$base2\) > > is used>> the backslashes are used for what? for instance than why not we > use the same for an array variable: > > foreach (@dna) > > Does it have to do with if(0) or if (1) rather than literally taking the > value .. \ is used to speicific meaning to few characters like |

tocTab.js file is missing

2005-08-11 Thread Muthukumar
I have downloaded perl with version of ActivePerl-5.8.7.813-MSWin32-x86-148120. I have started perl/html/index.html however it is prompting for error that "tocTab.js" file is missing. Where I can get this file. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: