Re: String formatting

2006-03-08 Thread Dr.Ruud
Petr Vileta: > Dr.Ruud: >> Petr Vileta: >>> $data1 =~ s/[^\d,.]//sg; >> >> Prepare for the future: \d matches more than [0-9]. > > Huh? My O'Reilly book "Programming in Perl" say > \d digits, the same as [0-9] > > Is some new in Perl since year 1997? ;-) Unicode, see `perldoc perl

RE: OLE and MS excel

2006-03-08 Thread Allegakoen, Justin Devanandan
---8< I am getting an error with OLE on trying to open a file and create it. do these have to be done separately? if so, what is the correct way? ---8< No they don't. From file:///C:/Perl/html/faq/Windows/ActivePerl-Winfaq12.html you get this:- use strict; use W

Re: String formatting

2006-03-08 Thread Petr Vileta
- Original Message - From: "Dr.Ruud" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 08, 2006 1:26 PM Subject: Re: String formatting Petr Vileta schreef: $data1 =~ s/[^\d,.]//sg; Prepare for the future: \d matches more than [0-9]. Huh? My O'Reilly book "Programming in Perl" s

Re: String formatting

2006-03-08 Thread Dr.Ruud
Petr Vileta schreef: > $data1 =~ s/[^\d,.]//sg; Prepare for the future: \d matches more than [0-9]. -- Affijn, Ruud "Gewoon is een tijger." ___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveSta

RE: Inserting into an array?

2006-03-08 Thread Bowie Bailey
[EMAIL PROTECTED] wrote: > Dear Bowie, > > Sorry, splice won't do what I need--it deletes from the array, then > replaces the deletion. I need insertion. > > Thanks just the same. No, it can do that too. To insert an element at index 1, do this: splice(@array, 1, 0, 'a'); -- Bowie _

RE: Trouble with File::Slurp - ing into a hash

2006-03-08 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 08 March 2006 16:55 To: activeperl@listserv.ActiveState.com Subject: Trouble with File::Slurp - ing into a hash > Wizards, > > I'm trying to borrow a page from perl.com's "Perl Slurp-Eze" piece by Guttman > (

RE: Inserting into an array?

2006-03-08 Thread Josh . Perlmutter
[EMAIL PROTECTED] wrote on 03/08/2006 11:52:39 AM: > Today's Topics: >5. Inserting into an array? ([EMAIL PROTECTED]) >6. RE: Inserting into an array? (Brian Raven) > -- > Message: 6 > Date: Wed, 8 Mar 2006 16:28:22 -

RE: FTP script

2006-03-08 Thread Curtis Leach
The Net:FTP class is easy to use. Curtis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig Cardimon Sent: Thursday, June 24, 2004 7:03 AM To: [EMAIL PROTECTED]; perl-win32-users@listserv.ActiveState.com Subject: FTP script I need to write a script tha

RE: open() and piping system calls

2006-03-08 Thread Brian Raven
Jason Gerfen <> wrote: > Bowie Bailey wrote: > >> Jason Gerfen wrote: >> >> >>> Bowie Bailey wrote: >>> >>> Jason Gerfen wrote: > Bowie Bailey wrote: > > >> Jason Gerfen wrote: >> >> >>> I am looking to do something which I am not sure perl can

Trouble with File::Slurp - ing into a hash

2006-03-08 Thread Deane . Rothenmaier
Wizards, I'm trying to borrow a page from perl.com's "Perl Slurp-Eze" piece by Guttman (http://www.perl.com/lpt/a/2003/11/21/slurp.html). What I'm trying to do is adapt the following for my data: my $text = read_file( $file ); my %config = $text =~ /^(\w+)=(.+)$/mg; my data files consist of a

RE: Inserting into an array?

2006-03-08 Thread Bowie Bailey
[EMAIL PROTECTED] wrote: > It'd be nice if I could use File::Slurp to "burp" my processed file > array back to disk, but there's a small snag. At some points, during > some runs, new data would need to be inserted into the array, to > mimic the current process, which runs something like this...

RE: Inserting into an array?

2006-03-08 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 08 March 2006 15:06 To: activeperl@listserv.ActiveState.com Subject: Inserting into an array? > It'd be nice if I could use File::Slurp to "burp" my processed file array back to disk, but there's a small > snag

RE: open() and piping system calls

2006-03-08 Thread Bowie Bailey
Jason Gerfen wrote: > Bowie Bailey wrote: > > Jason Gerfen wrote: > > > > > Well I am 'attempting' to write a simple perl daemon that will > > > listen or 'tail -f /var/log/messages' for any iptables log which > > > matches a 'DROP'ed packet. > > > > That's simple enough. Just follow my code ab

OLE and MS excel

2006-03-08 Thread Josh . Perlmutter
I am getting an error with OLE on trying to open a file and create it. do these have to be done separately? if so, what is the correct way? I don't have the luxury of a machine I can be detrimental to while experimenting. the following is the header of my code, where I try to open the file and

Inserting into an array?

2006-03-08 Thread Deane . Rothenmaier
It'd be nice if I could use File::Slurp to "burp" my processed file array back to disk, but there's a small snag. At some points, during some runs, new data would need to be inserted into the array, to mimic the current process, which runs something like this... # process @htm_rows[$x] print $OU

Re: open() and piping system calls

2006-03-08 Thread Jason Gerfen
Bowie Bailey wrote: Jason Gerfen wrote: Bowie Bailey wrote: Jason Gerfen wrote: Bowie Bailey wrote: Jason Gerfen wrote: I am looking to do something which I am not sure perl can do. I would like to be able to issue a system command ex. tail -f /file and lo

RE: Performance Degradation of ActivePerl CGI script under IIS

2006-03-08 Thread Lincoln, Adym
Original Message: >-- >Date: Tue, 7 Mar 2006 12:51:39 -0800 (PST) >From: "Mary Anderson" <[EMAIL PROTECTED]> >Subject: Performance Degradation of ActivePerl CGI script under IIS >Hi All, > > I have an 800 line ActivePerl cgi script which I am running under >WindowsXP,

RE: Time in miliseconds

2006-03-08 Thread itrabado
Thanx, guys you're great!!! Ignacio Trabado Castillo Dpto. Informática Desarrollo tlf: 93 500 (9255)___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Time in miliseconds

2006-03-08 Thread Petr Vileta
[EMAIL PROTECTED] wrote: How can i get the time down to miliseconds with perl? I have a logfile, with various inputs per second, so i'd like to be able to see how many miliseconds between them. Any sugestions? Time::HiRes module is what you looking for ;-) Petr Vileta, Czech republic (My serv

RE: Time in miliseconds

2006-03-08 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 08 March 2006 08:03 To: ActivePerl@listserv.ActiveState.com Subject: Time in miliseconds > How can i get the time down to miliseconds with perl? I have a logfile, with various inputs per second, so i'd > like to

RE: open() and piping system calls

2006-03-08 Thread Brian Raven
Bowie Bailey <> wrote: > Brian Raven wrote: >> Bowie Bailey <> wrote: >>> Jason Gerfen wrote: I am looking to do something which I am not sure perl can do. I would like to be able to issue a system command ex. tail -f /file and loop over that command while sorting the output. Is th

Re: Time in miliseconds

2006-03-08 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > > How can i get the time down to miliseconds with perl? I have a logfile, > with various inputs per second, so i'd like to be able to see how many > miliseconds between them. > > Any sugestions? If you just want time to msecs, try Time::HiRes::gettimeofday If you nee

Re: Time in miliseconds

2006-03-08 Thread Foo Ji-Haw
Have you tried Time::Hires? [EMAIL PROTECTED] wrote: How can i get the time down to miliseconds with perl? I have a logfile, with various inputs per second, so i'd like to be able to see how many miliseconds between them. Any sugestions? Thanx Ignacio Trabado Castillo Dpto. Informática

Re: Performance Degradation of ActivePerl CGI script under IIS

2006-03-08 Thread itrabado
How do you connect? DBI? Are you sure to close your connections with the database? Ignacio Trabado Castillo Dpto. Informática Desarrollo tlf: 93 500 (9255) "Mary Anderson" <[EMAIL PROTECTED]> Enviado por: [EMAIL PROTECTED] 07/03/2006 21:51                 Para:        ActivePerl@listserv.

Time in miliseconds

2006-03-08 Thread itrabado
How can i get the time down to miliseconds with perl? I have a logfile, with various inputs per second, so i'd like to be able to see how many miliseconds between them. Any sugestions? Thanx Ignacio Trabado Castillo Dpto. Informática Desarrollo tlf: 93 500 (9255)__

RE: SNMP/OID

2006-03-08 Thread Ari.Wilen
Hi Tfbsr Bertrand   SNMP is devided in 2 parts, generic and device specific. For specific part You need device specific description file, called Mib file. To study what can be read from each snmp service study/test  e.g. ws_ping_pro and GetIf softwares.   rgds  ari From: [EMAIL PROTEC