RE: stat problems

2001-03-12 Thread Wagner-David
File::stat is placing the output into $dev as an anonymous array I believe. If I access your data as foreach ( @$dev ) { printf "%-s;", $_; } I think the above is giving you the data you want. Wags ;) > -Original Message- > From: Riva [mailto:[EMAIL PROTECTED]] > S

Re: How to interact with Exchange Server?

2001-03-12 Thread Ron Grabowski
> I use it all the time, and have found the docs more than adequate > to get started. I think a lot of people on the list could benefit from some sample scripts. We have Active Directory and Exchange running on several machines at the office. I've installed the LDAP module successfully but I'm af

Re: [Perl-win32-users] [OT] : is the list still working ?

2001-03-12 Thread Steven Wadding
At 10:15 AM 6/2/00 +0200, Fabien Martinet wrote: >is the list working ? >I've received nothing since 31/05 15h09... No wonder he wasn't getting messages. They were time warped over nine months into the future. Sorry, couldn't resist. Steve ___ Perl

What closes a sysopen()

2001-03-12 Thread Cornish, Merrill
I need to use sysopen(), but the description of sysopen() in the 2nd Edition of the Camel book doesn't mention what to use to close a filehandle opened by sysopen(). There's no sysclose() and ordinary close() is documented solely in terms of open(). So how do I close a sysopen() filehandle? Me

stat problems

2001-03-12 Thread Riva
In the code below, I'm trying to store the information returned by stat in several variables. When I run it, I get: file c:\test\ftest5.pl updated at Mon Mar 12 12:09:09 2001 File::stat=ARRAY(0xca9848) This seems to indicate that the variables aren't being populated with stat's data

Re: Translating WMI/WSH code to watch EventLogs

2001-03-12 Thread H C
Tobias, Thanks for your response. In the ensuing time since I posted the query, I've received some assistance and a solution. However, I've also found a solution for doing this on NT without (a) using polling, or (b) installing WMI classes. Yep, the answer was right there in the API... Harlan

Re: How to interact with Exchange Server?

2001-03-12 Thread Pete
search for perl-ldap. This is currently being supported by graham barr and others(?). perl-ldap is a pure perl soloution allowing it to be totally portable. You will also need Convert::BER and Convert::ASN1. Find it on cpan, or at sourceforge for the latest. if you are using activestate p

3 12 2001 RE: chmod question

2001-03-12 Thread Carol
Oh, good, I thought I was the only one. I've sent my e-mail headers to mailman-owner...which bounced, so I forwarded that message to the webmaster. Until this gets straightened out, I'm adding a "sent" column to my e-mail client and deleting anything sent in y2k unread. Did you notice some of t

RE: [Perl-win32-users] Adding items to an array

2001-03-12 Thread Wagner-David
What you getting is out of the first 'if' where you find 'sticky tag' and fld 3 is NOT EQUAL to (none) then you are placing in stickytag what is in fld 3 and then concatenating the value into stickytags{$FileName}. This is not an array, but a HASH. What would be helpful is the d

RE: Capturing output from a child's STDOUT and STDERR simultaneou sly

2001-03-12 Thread ron . wantock
I would suggest that you make sure that autoflush is turned on for both STDOUT and STDERR before you run the command. select((select(STDOUT), $|=1)[0]); select((select(STDERR), $|=1)[0]); I'm not sure if this will help for a command run via backticks or not, but I've corrected si

RE: Perl/Tk

2001-03-12 Thread Christopher Hahn
Jack, Thank you for looking, but what I was referring to was the Tk console command. (I forget why, right now ;-) This command "Removes the wish console from the display". (or at least "console hide" does) Even for Tcl/tk this is a windows+mac-only feature. Christopher P.S. BTW: The shell-ap

Re: Newbie Hash Question

2001-03-12 Thread Carl Jolley
On Sun, 11 Mar 2001, Frank J. Schmuck wrote: > I'm reading a file line-by-line and subtracting two variables, lets say > $yaba and $daba. I then read the two varibles into a hash. The problem is > that after I close the file and interigate the hash all that remains is the > last entry. I inita

How to read Outlook Address Book looking at Global Addresses?

2001-03-12 Thread Wagner-David
Since you can't select and copy from the address window, is there a way using OLE to look for a particular email and read its contents and display, so you can copy w/o having to write it down? Thanks. Wags ;) ___ Perl-Win32-Users maili

RE: Make program run every five minutes?

2001-03-12 Thread Plunkett, Matt
while (1) { # execute here sleep 300 ; } -Original Message- From: Flynn, Timothy J [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, June 07, 2000 2:53 PM To: Perl-Win32-Users@listserv. ActiveState. com (E-mail) Subject:Make

Re: CGI IP-logging

2001-03-12 Thread Emo1313
These a the ones that I use in my counters. $agent = $ENV{'HTTP_USER_AGENT'}; # Users browser $referer = $ENV{'HTTP_REFERER'}; # Refering Location $addr = $ENV{'REMOTE_ADDR'}; # Referes Address $ENV is a hash of information about the server and client. Here is a simple script that will du

RE: Hi

2001-03-12 Thread Gorman, Greg
I'm now getting all these individual messages, but have subscribed only to the digest version!!! Greg -Original Message- From: Mark Beihoffer [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 03, 2000 6:47 PM To: [EMAIL PROTECTED] Subject: Hi Is anyone else not receiving messages from th

[Perl-win32-users] ping

2001-03-12 Thread Carl Campbell
Can you pong? ___ Perl-win32-users mailing list [EMAIL PROTECTED] http://listserv.activestate.com/mailman/listinfo/perl-win32-users ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveStat

from Bill Luebkert

2001-03-12 Thread m
The lists were down, and Bill asked me to forward this to the list. Original Message Subject: OT - To French and UK members of this list Date: Mon, 05 Jun 2000 20:13:09 -0700 From: "$Bill Luebkert" <[EMAIL PROTECTED]> Organization: DBE Collectibles To: Perl-Win32-Users Mailing L

[Perl-win32-users] [OT] : is the list still working ?

2001-03-12 Thread Fabien Martinet
Hello, is the list working ? I've received nothing since 31/05 15h09... Thks Fabien ___ Perl-win32-users mailing list [EMAIL PROTECTED] http://listserv.activestate.com/mailman/listinfo/perl-win32-users ___

Re: ODBC Questions

2001-03-12 Thread Simon Oliver
Actually, you don't need to create a DSN at all, here's an example for an Access database: $dbq = 'C:\\Program Files\\Microsoft Office\\Office\\Samples\\Northwind.mdb'; $dsn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=$dbq;DefaultDir=C:\temp"; $db = new Win32::ODBC($dsn); -- Simon Oliver

Re: [Perl-win32-users] Abject beginners question

2001-03-12 Thread Ned Konz
> Why does the following command line attempt have problems with the newline? > perl -e "print 'Hello world!'\n;" Quotes are also special to CMD.EXE; you could do something like: perl -e "print qq(Hello world\n)" or perl -e "print \"Hello world\n\"" or perl -e "print """Hello world\n

Re: [Perl-win32-users] Abject beginners question

2001-03-12 Thread Cassell . David
You wrote: > Why does the following command line attempt have problems with the newline? > perl -e "print 'Hello world!'\n;" Because you put the newline outside the quoted text, so Perl expects it to be an operator to parse. The double quotes are not read by Perl. They're read by DOS and the c

Re: [Perl-win32-users] FTP over HTTP

2001-03-12 Thread Ned Konz
> Has anyone done FTP over HTTP via command line or using a > batch script? I know there are other options but this is what I have > been asked to look at. That doesn't make too much sense; FTP and HTTP are two different TCP protocols. > Via FTP I need to send a file to a CGI through a batch

File sizes under NT

2001-03-12 Thread Chuck . Hirstius
Does anyone know fo a way in perl to get the compressed AND actual file sizes from a compressed NTFS partition? We are having trouble calculating space requirements on remote machines, and we think this might be the crux of the matter. We'd like to write a script to do the calculations, any id

[Perl-win32-users] Access Outlook/Exchang through MAPI

2001-03-12 Thread Jeremy Blonde
Hi folks, I'm trying to create a Perl script that will extract attachments from Outlook (or Exchange depending on how you look at it) e-mails. From my understanding the code below is all I need to create the MAPI session. From the session, I can then gather the folders, messages, etc. However,

RE: Hi - Digest is Busted at Least

2001-03-12 Thread SteveCraft
I was supposed to be getting the digest but now I am getting single posts. Help. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Mark Beihoffer > Sent: Saturday, June 03, 2000 6:47 PM > To: [EMAIL PROTECTED] > Subject: Hi > > > Is anyone else n

CGI IP-logging

2001-03-12 Thread Phil Lamey
Hi all, I'm hoping someone can tell me how certain Web pages keep a log of the IPs of the people who have visited their sites. Do they somehow use perl socket code? Is there anywhere I can get an example of this code? Thanks, Phil Lamey ___

Re: How to test against every item in an array

2001-03-12 Thread Ned Konz
terry rudy wrote: > > Hi there, is there a quick and dirty way to compare a value ($x) against > array (@y) and if the value is not in @y then add it to @y? It's more efficient (though it takes more memory) to use a hash: my %y; # to add a value $x and make sure that it

Re: [Perl-win32-users] ping

2001-03-12 Thread Vince Wilding
Consider Yourself panged [sic] Carl Campbell wrote: > Can you pong? > ___ > Perl-win32-users mailing list > [EMAIL PROTECTED] > http://listserv.activestate.com/mailman/listinfo/perl-win32-users -- Vince Wilding, Web Wrangler, MetaData Maven, Perl Hack

RE: CGI Timeout

2001-03-12 Thread Trevor Baxter
Clint, If you go into the internet services tool and work your way to the dialog box for home directory. In there is an option "Run in separate memory space". Check that option and then go to the configuration in there you will have gained an "App options" tab and under this is a CGI timeout op

Re: Is there a problem with the list?

2001-03-12 Thread Jan Dubois
On Mon, 5 Jun 2000 21:25:45 -0400, "Greg Wojan" <[EMAIL PROTECTED]> wrote: >I haven't received any postings to this list for almost a week. Is there a >problem? Yes, there was a serious problem with Lyris which was continuously bringing down the whole ActiveState web site. It looks like the da

HELP!!! - MIME::Entity

2001-03-12 Thread Sharon Tiroff
Hi Everybody, I downloaded and installed ActivePerl on a Windows NT box. I finally got my Web site working perfectly on the NT box. I then had to upload my HTML page and 2 CGI scripts to the UNIX box hosted by MindSpring. Well one of my CGI scripts sends 2 separate e-mails, one text e-mail which

Re: Nmake.exe

2001-03-12 Thread Joe Schell
"Jimmy S. Lim" wrote: > > has anybody out there tried using Nmake to install a module? > i tried typing the procedure below coz i wanted to update my modules to the > latest version: btw, i'm using perl 5.6 binary build from activestate. > > perl makefile.pl > nmake > nmake test > nmake install

RE: Ming module for Perl ?

2001-03-12 Thread Smith, Eric - WPAFB/YSXOI
Valentin Zanfir wrote... > Hello ... can someone tell me how the Ming module for PHP (for generating > flash animations) may be also made to work with Perl ? > I got the sources from http://www.opaque.net/ming/ containing a nice try of > the authors to wrap the C code with SWIG to make the Perl m

Re: PerlCheck Program

2001-03-12 Thread Dirk Bremer
Here is the latest version of my PerlCheck program. Dirk Bremer - Systems Programmer II - AMS Department - NISC 636-922-9158 ext. 652 fax 636-447-4471 # PerlCheck.pl 03/09/2001. # Define pragmas. use diagnostics; use English; use strict; use warnings; # Define modu

archive::zip filesize limit

2001-03-12 Thread John Gmeinder
Using: Activestate Perl V5.6.0 Build 623 NT 4.0 (SP5) Archive-Zip 0.11 Compress-Zlib 1.08 Is there a size limit to the files that are zipped? I don't seem to be able to zip a file greater than 2gig (though I CAN unzip a file greater than 2gig). I can break up the large file before zipping - but

PGP and ActivePerl

2001-03-12 Thread Steven Wadding
I need to perform PGP encryption on a file on an NT 4 system. PGP 5.5 is installed. I found a module, Crypt::PGP5, but am having trouble with it. It uses the module Expect, which I installed, but that uses the module IO::Pty, about which the Expect documentation says, "The operating system

Nmake.exe

2001-03-12 Thread Jimmy S. Lim
has anybody out there tried using Nmake to install a module? i tried typing the procedure below coz i wanted to update my modules to the latest version: btw, i'm using perl 5.6 binary build from activestate. perl makefile.pl nmake nmake test nmake install after doing this, it seems like i got al

find2perl: -exec problem

2001-03-12 Thread Leonard, William C
I get the following error when I try to use find2perl with a -exec option: C:\>find2perl . -name "*.txt" -exec grep abc "{}" ";" | perl Global symbol "$cwd" requires explicit package name at - line 45. Execution of - aborted due to compilation errors. Here is the output of perl -v: This is perl

RE: require or module

2001-03-12 Thread Cornish, Merrill
If all you have is a bunch of subroutines you would like to put in a subroutine library module, it's easy. * The module needs to return TRUE when it's loaded to show that it loaded correctly. The easiest way to guarantee this is to put 1; as the last line in the module. * Give the mod

require or module

2001-03-12 Thread Purcell, Scott
Hello, I have some code that I am always copying and pasting. It is rather large, but basically opens a socket to a certain port/IP and makes some transactions. I am basically getting tired of copying/pasting this into documents because the maintenance is starting to take its toll. I really would

Re: DBD::mysql binary

2001-03-12 Thread Jimmy S. Lim
i typed: "ppm install DBD-Mysql"; and i get this error message: " HTTP Post failed: 500 (Can't connect to www.activestate.com:80 (Timeout)), in SOAP method call. Content of response: at c:/perl/site/lib/PPM/SOAPClient.pm line 222." what seems to be the problem? - Original Message - Fro

Re: DBD::mysql binary

2001-03-12 Thread Philip Newton
Onward wrote: > does anyone know where i can get a dbd::mysql binary install module? I got mine from ActiveState: `ppm install DBD-Mysql` I think was what did it. Cheers, Philip -- Philip Newton <[EMAIL PROTECTED]> All opinions are my own, not my employer's. If you're not part of the solution,

Re: Striping trailing and proceeding white spaces

2001-03-12 Thread Philip Newton
Roee Rubin wrote: > I would like to strip off all trailing and proceeding white > spaces in a string FAQ. `perldoc -q space` has as its first suggestion "How do I strip blank space from the beginning/end of a string?". The answer is essentially the one given by Ben, with a couple of additi