Re: disable STDERR

2003-10-28 Thread Trevor Joerges
Here is a fairly portable solution with some error checking: if ($^O =~ /mswin32/i) { if(!open BITBUCKET, nul) { print Unable to initiate the bitbucket - $!\n\n; exit (1); } else { *STDERR = *BITBUCKET; *STDOUT = *BITBUCKET; } } elsif ($^O =~ /solaris|linux|aix|etc/i) {

Re: Win32::Lanman and Perl 5.8?

2003-10-28 Thread Trevor Joerges
Try setting a repository for Jenda's PPMs: ppm repo add Jenda http://Jenda.Krynicky.cz/perl ppm search win32-lanman or ppm install win32-lanman HTH, Trevor Joerges - Original Message - From: valerie [EMAIL PROTECTED] To: Perl-Win32-Users [EMAIL PROTECTED] Sent: Monday, October 27, 2003

Re: How can require a module in compiler Perl programs(.exe)

2003-10-28 Thread Sisyphus
eNowTeam wrote: Hi??All At a compiled Perl code to EXE program can not require its modules, Are you saying that 'require Some_Module;' in a perl script causes failure when you make that script into an exe with perlapp ? I think there should *not* be a problem with that - but I can't yet

Re: Yet Another Mail Question

2003-10-28 Thread Trevor Joerges
If your Microsoft Exchange server is POP enabled you can use either Net:POP3 or Mail::POP3Client to retrieve messages and parse them using MIME-Parser. Both are pretty simple to use and well documented. HTH, Trevor Joerges - Original Message - From: Scott Purcell [EMAIL PROTECTED] To:

Buffer behavior as in C?

2003-10-28 Thread NPopovici
Title: Buffer behavior as in C? Hello guys, I am doing the following : reading from a binary file with sysread() into a buffer 1024 bytes. What I would like to do is to iterate through each byte within this buffer ( somekind of pointer to byte in C ). I do not seem to see the solution. Any

ADO DateTimes

2003-10-28 Thread William Limratana
Hello, I'm retrieving dates from a database using ADO. What is the integer that is returned in date fields? It doesn't appear to be seconds since the epoch. Thanks, William ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe:

RE: Registry Updates Not Taking

2003-10-28 Thread Michael Cohen
John, This code had been running without a snag for almost 3 years. It only broke AFTER I added the InstallShield Setup code. I suspect that the pointers to the HKEY_* variables changed during the setup program, but my code does not pick up those changes, as the use Win32::Registry; command

RE: ADO DateTimes

2003-10-28 Thread Steven Manross
I'm guessing here, but if you are using Win32::OLE to call your ADO routines, you might get a human-readable date/time by loading the Win32::OLE::Variant module, which makes variant conversions for you. Hope this helps. Steven -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: ADO DateTimes

2003-10-28 Thread William Limratana
Thanks! This worked! Will -Original Message- From: Steven Manross [EMAIL PROTECTED] To: William Limratana [EMAIL PROTECTED], Perl-Win32- [EMAIL PROTECTED] Date: Tue, 28 Oct 2003 09:06:27 -0700 Subject: RE: ADO DateTimes I'm guessing here, but if you are using Win32::OLE to call your

Perl CD Bookshelf CD

2003-10-28 Thread valerie
I bought a used copy of The Perl CD Bookshelf version 3.0 last weekend. It was sealed in shrink-wrap and when I got home I found it was missing the CD. The bookstore is a six hour drive away and didn't have another copy to exchange anyway. They offered to take it back and issue a refund, even

Re: Buffer behavior as in C?

2003-10-28 Thread asondhi
Why do you need !=0 in your while _expression_? Sincerely, Arun Sondhi CCNP,CCDP Ph: +1 414.382.0206 Extn: 20206 [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10/28/2003 08:22 AM To:[EMAIL PROTECTED] cc: Subject:Buffer behavior as in C? Hello guys, I am

reading/writing to a ascii file

2003-10-28 Thread Farrington, Ryan
Title: reading/writing to a ascii file Ok guys here is the pickle I'm in now =-) I need to read from a ASCII file and only modify the lines that match a variable. I do not want to read the entire file into memory and write the entire file out each time I need to make a change. Here is what

RE: reading/writing to a ascii file

2003-10-28 Thread Erich C. Beyrent
ok let's say I have a 500,000 line file... What I want is for the script to read the file in line by line and only change the 1 line I am looking for. ex: line 550 contains the line I am looking for I want to change that line and not have to re-create the file. You could do this: perl -i -p

AW: Buffer behavior as in C?

2003-10-28 Thread NPopovici
Title: AW: Buffer behavior as in C? As I said this was a snip from my code. Actually I am reading 2 files at once and I want to stop the while loop when I am reaching EOF in one of the files( doesn't matter which one ). And I did it like that ( with another sysread () from the second file

RE: reading/writing to a ascii file

2003-10-28 Thread Thomas, Mark - BLS CTR
Ryan, it's easier than you think: open(IN, $inputfile) or die can't open $inputfile: $!; open(OUT,$outputfile) or die can't open $outputfile: $!; while (IN){ s/$string/$replacement/g; print OUT $_; } close IN; close OUT; rename($outputfile, $inputfile) or die can't rename... $!;

OpenGL

2003-10-28 Thread Burak Grsoy
is it possible to use the OpenGL module on windows? http://search.cpan.org/~ilyaz/OpenGL/ ... and; are there any binaries somewhere? ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: reading/writing to a ascii file

2003-10-28 Thread Farrington, Ryan
Title: RE: reading/writing to a ascii file That is still opening and reading the entire file and then creating an entire new file... I may run into instances where the file will be opened and modified many times. -Original Message- From: Thomas, Mark - BLS CTR [mailto:[EMAIL

RE: reading/writing to a ascii file

2003-10-28 Thread Thomas, Mark - BLS CTR
That is still opening and reading the entire file and then creating an entire new file... No, it's not. It reads only one line at a time into memory. This is quite different from your version which read the entire file into memory. Are you looking to avoid *both* reading the file into memory

RE: reading/writing to a ascii file

2003-10-28 Thread Beckett Richard-qswi266
Ok guys here is the pickle I'm in now =-) I need to read from a ASCII file and only modify the lines that match a variable. I do not want to read the entire file into memory and write the entire file out each time I need to make a change. Here is what I am doing that reads the entire file