RE: Q* how does one determine the owner of a file?

2001-03-14 Thread David \"Sniper\" Rigaudiere
You can use the Win32::Perms Module by Dave Roth, you can get it at http://www.roth.net/perl/perms/ example : === use Win32::Perms; use strict; my $F = new Win32::Perms('c:\\toto.txt'); my $Owner = $F->Owner(); print $Owner; $F->Close(); A+ David "Sniper" Rigaudiere Paris Perl Mongueu(r|

Copying hash tree

2001-03-14 Thread brianr
Petr Smejkal writes: > I'm using quite large hash tree in my application and I need to make a copy > of the root hash key - the copy not the mirror. > > $a{a}{b}{s} = '1'; > $a{a}{c}{s} = '1'; > > $a{b} = $a{a}; > > $a{b}{b}{s} = '2'; # this line changes $a{a}{b}{s} too and that's what

RE: How Can I Move My ActivePerl Install?

2001-03-14 Thread Michael Marziani
I believe that all you must do is change the PATH variable. -Mike -Original Message- From: Gregory Sandoval [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 9:05 PM To: [EMAIL PROTECTED] Subject: How Can I Move My ActivePerl Install? Hello, I have tried two times to install

How Can I Move My ActivePerl Install?

2001-03-14 Thread Gregory Sandoval
Hello, I have tried two times to install ActivePerl on my NT4 server and it works great, except that it always installs at the root level of drive D. What steps must I perform to ensure that my IIS server will work correctly if I move the ActivePerl files? Are there registry entries that must be

OLE Sorts in Excel

2001-03-14 Thread Brad Currens
Seems plenty of folks have asked for help in figuring out how to sort in excel. I have a similiar need, and reviewed quite a bit of code but nothing seems to work. Has anyone had success in the area? Here's a sample program of what I'm working on. In this sample the spreadsheet has values only

Re: Beautiful Code:RE: Perl MAPI attachment extraction script

2001-03-14 Thread Jeremy Blonde
Thanks! So if anyone is looking for a Perl programmer who's been known to do the impossible, let me know, I'm looking for a job. ;-) Jeremy Blonde >Dear Jeremy: > I am newbie but I must congratulate you on some >well written and documented code. You should >get the "$50,000" contract". T

RE: Beautiful Code:RE: Perl MAPI attachment extraction script

2001-03-14 Thread Jeremy Blonde
Believe it or not but MSDN holds the best information for Win32 programming with Perl. Once you get the hang of converting VB code to Perl code, it is quite easy to get things rolling. That's what I had to do in order to figure out CDO and it's good/bad faults. Since I sent that message (it

RE: Chomp Issue

2001-03-14 Thread Doughty, Matt
it is printing 1 because chomp returns 1 on success not the new scalar value. you can do the following... { my %Names = map {chomp;split /:/} ; foreach (sort keys %Names) {print("$_:", chomp $Names{$_},"\n");} } that will strip off the before mapping to the hash. Matt -Original Mes

Getting description from Eventlog

2001-03-14 Thread stanley . g . martin
I have some Events in my Eventlog that are Informational entries but don't print out the description. Example: Source => OtMan4 Length => 64 EventType => 4 Message => ClosingRecordNumber => 0 RecordNumber => 3231 Strings => * Data => **f***s`*X***h*** ***

Chomp Issue

2001-03-14 Thread Dirk Bremer
Given the following code snippet: { my %Names = map {split /:/} ; foreach (sort keys %Names) {print("$_:", chomp $Names{$_},"\n");} } __DATA__ 0:100 Record Id 1:100 Type Of Service 2:100 Account Number 3:100 Capital Credit Number 4:100 Membership Number 5:100 Service Address 6:100

RE: Beginner's problems

2001-03-14 Thread Toby Stuart
incorrect! chomp $word; not $word =~ chomp $word ; > -Original Message- > From: Bellenger, Bruno (Paris) [SMTP:[EMAIL PROTECTED]] > Sent: 15/03/2001 12:29 > To: [EMAIL PROTECTED] > Subject: RE: Beginner's problems > > > To stay closer to your code, this works : > > open(IN,

RE: Literal Tokens

2001-03-14 Thread Vishal Madan
Two special literals __LINE__ and __FILE__, which represent the current line number and filename at that point in your program Vishal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dirk Bremer Sent: Wednesday, March 14, 2001 2:02 PM To: perl-win32-users

RE: Literal Tokens

2001-03-14 Thread Rubinow, Larry
Dirk Bremer wrote: > Would someone explain the __FILE__ and __LINE__ literal > tokens? The camel book say very little concerning them. What > would you use > them for? open IN, "infile.txt" or die "Error opening file at module " . __FILE__ . ", line " . __LINE__ . ": $!";

Re: Using Kermit or another protocol with Perl .........

2001-03-14 Thread Ronald W. Heiby
Any reason why you can't just use the Kermit software and its own built-in scripting language? Ron. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-user

Help with Regexp

2001-03-14 Thread Vinicius Alves
Hi all... I´m using an HTML template to put the values of a database in the values of the fields. I´ve been tying to do that by setting the field value: $variable, to that when I call while (){ print; } the html code shows up, when what I want is . So I need a regexp that would look for s/v

Re: Mailman SUCKS !!!!!

2001-03-14 Thread Jan Dubois
On Mon, 12 Mar 2001 15:29:00 -0500, "Smith, Eric - WPAFB/YSXOI" <[EMAIL PROTECTED]> wrote: >This mailman listserve really sucks. I tend to agree, but in this case MailMan is innocent. >Please go back to good old reliable majordomo or even lyris. At their >worst, they were better than mailman.

Literal Tokens

2001-03-14 Thread Dirk Bremer
Would someone explain the __FILE__ and __LINE__ literal tokens? The camel book say very little concerning them. What would you use them for? Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 _

Problem with $reg->Load

2001-03-14 Thread Bullock, Howard A.
Win32::Registry Tweak version 0.00.26. [EMAIL PROTECTED] The following code works sporadically. It seems to fail more than it works. When it fails, $Result, $^E, and $! all appear to be null. The variables $OldSid and $ProfileImagePath contain valid data. Can anyone tell me how to better troub

RE: urgent help required

2001-03-14 Thread Bellenger, Bruno (Paris)
Or for that matter, any name that resolves to your machine's IP address. Create a local HOST file entry to that end if necessary. _ Bruno Bellenger Sr. Network/Systems Administrator -Original Message- From: Jan Matejka [SMT

RE: urgent help required

2001-03-14 Thread Jan Matejka
Try using symbolic name localhost instead of IP address. 127.0.0.1 MaT >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]]On >Behalf Of Vishal Madan >Sent: Wednesday, March 14, 2001 3:11 PM >To: [EMAIL PROTECTED] >Subject: urgent help required >

RE: urgent help required

2001-03-14 Thread Vishal Madan
if i switch it to different ip address then too this problem is there -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cornish, Merrill Sent: Wednesday, March 14, 2001 10:10 AM To: Vishal Madan Cc: [EMAIL PROTECTED] Subject: RE: urgent help required OK,

RE: urgent help required

2001-03-14 Thread Cornish, Merrill
OK, the next test is to switch it to a different IP address to see if it's the number-dot-number-dot-number-dot-number format that is creating the problem rather than 127.0.0.1 itself. Merrill > -Original Message- > From: Vishal Madan [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, March 14,

RE: urgent help required

2001-03-14 Thread Vishal Madan
thanks for prompt response. 1. The problem goes away if I put the old value back. I am able to compile it . 2. My requirement is that I have to use this localhost address (127.0.0.1) hope to hear from u soon thanks again Regards Vishal -Original Message- From: Cornish, Merrill [mailto:[

RE: urgent help required

2001-03-14 Thread Petr Smejkal
It looks more like run-time error from HTML::Parser. Are you sure that the content of your client's page is the same as your localhost page? -- Petr Smejkal > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf > Of Vishal Madan > Sent: Wednesday, March 14,

Compress::Zlib vs PKZip

2001-03-14 Thread Cornish, Merrill
The Compress::Zlib module documentation implies that it can handle .ZIP files. However, when I ran a test using it to unzip files compressed by PKZip 2.70 in all five compression levels, the module returned -3, Data Error. I can use Zlib to decompress gzip files. The module is dated 1998 (old b