Re: File::Copy to preserve file modifiction time ???

2002-09-18 Thread $Bill Luebkert
Michael D. Schleif wrote: > Using File::Copy to do > copy(\\server1\path\file, \\server1\path\file); > > Documentation says, > > ``Special behaviour if syscopy is defined (OS/2, VMS and Win32) > > ``If both arguments to copy are not file handles, then copy will perform > a ``system copy''

RE: File::Copy to preserve file modifiction time ???

2002-09-18 Thread Steven Manross
I always use utime after the file copy (to change the last modified time to what the source file modify time was).. And then Win32::Perms to find and set the perms and owner. Steven -Original Message- From: Michael D. Schleif [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 20

File::Copy to preserve file modifiction time ???

2002-09-18 Thread Michael D. Schleif
Using File::Copy to do copy(\\server1\path\file, \\server1\path\file); Documentation says, ``Special behaviour if syscopy is defined (OS/2, VMS and Win32) ``If both arguments to copy are not file handles, then copy will perform a ``system copy'' of the input file to a new output file,

RE: Dave Roth's web site

2002-09-18 Thread Edgington, Jeff
ppm install http://www.roth.net/perl/packages/win32-daemon.ppd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 2:39 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Dave Roth's web site Does anybody know

Dave Roth's web site

2002-09-18 Thread Cai_Lixin
Does anybody know Dave's web? I want to download daemon.pm on his web. Thanks a lot in advance! Lixin ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: http::daemon

2002-09-18 Thread Mike Brentlinger
Ah. it worked like a charm, thanks very much. Original Message Follows From: "$Bill Luebkert" <[EMAIL PROTECTED]> To: Mike Brentlinger <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: http::daemon Date: Wed, 18 Sep 2002 10:29:38 -0700 Mike Brentlinger wrote: >Im having some diffic

Re: Automatically closing Excel (Ross Matt-QMR000)

2002-09-18 Thread Eric Promislow
Hi, Ross This should do it: ... $Book->{Saved} = 1; $Book->Close; > From: Ross Matt-QMR000 <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED] > Subject: Automatically closing Excel > Date: Tue, 10 Sep 2002 13:55:49 -0500 > > To anyone that can help. > > I ha

RE: Perl Tool to automate Web Testing on Windows

2002-09-18 Thread Brown, Bobby \(US - Hermitage\)
I have a scriptlet on http://www.netsecadmin.com/cgi-bin/getsnipsweb.pl that scans for URL exploits. Bobby -Original Message- From: Gajendra Mehta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 3:52 PM To: [EMAIL PROTECTED] Subject: Perl Tool to automate Web Testing on Wind

RE: Resolve IP address

2002-09-18 Thread Peter Eisengrein
Title: RE: Resolve IP address http://search.cpan.org/search?mode=module&query=nslookup > -Original Message- > From: Kevin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 18, 2002 13:29 > To: Perl-Win32-Users > Subject: Resolve IP address > > > Hello, > > Is there a modul

RE: Perl Tool to automate Web Testing on Windows

2002-09-18 Thread Tillman, James
> -Original Message- > From: Gajendra Mehta [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 17, 2002 4:52 PM > To: [EMAIL PROTECTED] > Subject: Perl Tool to automate Web Testing on Windows > > > Hello Everybody > > Would like to know if there is any perl tool to > automate web Tes

RE: Newbie question!!

2002-09-18 Thread Peter Eisengrein
Title: RE: Newbie question!! ### untested my $dir = "/your/dir/here"; opendir(DIR,$dir) || die "Can't open dir $dir : $!\n"; my @files = readdir(DIR); close(DIR); foreach my $file (@files) {     my ($name,$ext) = $file =~ /^([\w|\d]+)\[\d\]\.(\w+)$/;     rename("$file","$name\.$ext")

RE: DESPERATE

2002-09-18 Thread Scot Robnett
This is untested, but what about copying the files to the new directory first and then deleting them? I'm also not sure, but you might have to do these operations separately rather than both of them inside the same while loop. I don't know if Perl cares which one of the operations it does first in

RE: DESPERATE

2002-09-18 Thread Peter Eisengrein
Title: RE: DESPERATE try either changing your \ to / or else you need to \\ > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 10, 2002 03:34 > To: [EMAIL PROTECTED] > Subject: DESPERATE > > > > I'm really desperate here. > I have

Re: Newbie question!!

2002-09-18 Thread $Bill Luebkert
Avila, Jorge wrote: > Hi all, > > I have a directory with a lot of files like: > > abc[1].htm > def[1].htm > 123[1].htm > 456[1].htm > > > Can anybody please help to create a short script to rename it like ?? > > abc.htm > def.htm > 123.ht

Re: DESPERATE

2002-09-18 Thread Trevor Joerges
You have all kinds of options. I would recommend using the Win32::FileOp module unless of course you want the code to be portable to UNIX then you are going about it the right way but you need to change your code a bit: Try: opendir(INVOICES,'D:\ftproot\edi\test') || die "cannot open invoice: $!

Re: Regexp with 0

2002-09-18 Thread $Bill Luebkert
Muñoz O, Normann (Valparaíso) wrote: > Hi, I have a question: > > I get from STNDIN a string, for each caracter I check if it belong to a > predifined group, the problem is that the caracter '0' is in that > group'. As 0 es false, the match doesn't consider it. > > ¿How can I do that so the m

Re: http::daemon

2002-09-18 Thread $Bill Luebkert
Mike Brentlinger wrote: > Im having some difficulties with http::daemon. I know it must be > something i just dont understand, so could someone explain why in the > example below >$c->send_file_response("C:\\index.html"); > works for me and >$c->send_response("test\n"); >

RE: Regexp with 0

2002-09-18 Thread Norris, Joseph
Title: Regexp with 0 Normann,   Mi surgencia es que utiliza lo siguiente:     CARACTER[$i] =~/^([0|a|c|0])/   usando corchetes dira a Perl que este es una clase de caracter que pertenece al grupo que esta buscando.   Espero que este le ayude.   Dispense que not tengo este teclado con acent

RE: Regexp with 0

2002-09-18 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Title: Regexp with 0     Change to an if:       if ( CARACTER[$i] =~ /^(a|b|1|0)/g; ) {     #true  }else {     # false }   Wags ;) -Original Message-From: "Muñoz O, Normann (Valparaíso)" [mailto:[EMAIL PROTECTED]]Sent: Friday, September 06, 2002 14:36To:

Resolve IP address

2002-09-18 Thread Kevin
Hello, Is there a module that anyone can recommend that will reverse resolve an IP address and return a domain. TIA. --Kevin ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Counting using a regex.

2002-09-18 Thread $Bill Luebkert
Phil Ritchie wrote: > I'm trying to count occurrences of patterns using > > $_ = 'ababcdabcd'; > while ($_ =~ m/\Gab/gc) > { > $num++; > } > while ($_ =~ m/\Gcd/gc) > { > $num++; > } > print $num; > > But it doesn't work. I have a feeling that I need to employ the pos > function somewher

RE: a question of regular expression

2002-09-18 Thread Timothy Johnson
This sounds like the perfect time for a split() my($var1,$var2) = split /#/,$line; perldoc -f split -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: a q

Read events from saved eventlog file

2002-09-18 Thread Veeraraju_Mareddi
Dear All , I am in need of reading events from a saved event log file(*.evt). Please suggest me which module i should go to. I have checked lanman , but in vain. Please help me. This is very urgent. Thanks and regards rajuveera **

RE: A regular expression question

2002-09-18 Thread Carlos Guillen
while (<>) { if ( /^#/ ){ print; } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 3:12 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: A regular expression question I have

Automatically closing Excel

2002-09-18 Thread Ross Matt-QMR000
To anyone that can help. I have written a perl script to open and check the values inside of excel worksheets and do some other stuff to it. All works well, It is just, I get the warning pop up asking " are you sure you want to save?". it's not to bad when you run two or three excel sheets but wh

RE: Response.Buffer = False ?

2002-09-18 Thread Tim Fletcher
hi Bill, i can't do this because i only have write permission(from a script and not using ftp) to a folder that can't be access from an browser. so i have to generate the HTML code from inside the script :( Cheers, Tim -Message d'origine- De : $Bill Luebkert [mailto:[EMAIL PROTECTED]]

Re: Response.Buffer = False ?

2002-09-18 Thread $Bill Luebkert
Tim Fletcher wrote: > hi all, > > i have a perl script(html page) that takes a good 10 mins to run. i would like to be >able to show the user that the script is still > running by regularly printing a little text to the page. but it seems that the page >isn't sent to the browser till the whole

Response.Buffer = False ?

2002-09-18 Thread Tim Fletcher
hi all, i have a perl script(html page) that takes a good 10 mins to run. i would like to be able to show the user that the script is still running by regularly printing a little text to the page. but it seems that the page isn't sent to the browser till the whole script has been processed! in

Re: Read events from saved eventlog file

2002-09-18 Thread Philip Morley
Win32::EventLog. Also check out the documentation on the non-standard OpenBackup function on http://www.le-berre.com/perl/perldoc.htm. This may be what you are after. Phil Morley |-+---> | | Veeraraju_Mareddi