Re: Fw: Hash of Hashes

2002-05-07 Thread Simon Oliver
[EMAIL PROTECTED] wrote: > $Bill got your $ vs \% problem, but just FYI. In general it is not safe > to store a list of references from DBI methods, many (soon to be all) of > them recycle the ref, so you could end up with an array or hash of > identical refs. So store a copy of the data referen

Re: Using DBI::ODBC to get primary keys?

2002-05-07 Thread Simon Oliver
"Morse, Richard E." wrote: > > Simon Oliver [mailto:[EMAIL PROTECTED]] wrote: > > > This probably means that the ODBC driver does not support the function > > (GetPrimaryKeys). > > As you noted, a trace reveals that this function isn't supported. If the driver > doesn't support SQLPrimaryKeys,

RE: perldoc

2002-05-07 Thread Iacoboni, Vince
FWIW, I slighly modified this script to fill in options I care about. The result looked more like the resot of the ActiveState docs - headers included with red background, links worked, etc. First I added the following to the bottom of Active.css. This was needed since pod2html includes to tag

Re: perldoc

2002-05-07 Thread Jim Angstadt
--- [EMAIL PROTECTED] wrote: > Hi, > > Someone recently mentioned that their local HTML > perldocs was automagically regenerated after they > downloaded and installed new modules. Well, mine > never is. I don't care whether it's automagical or > not but is there a way of doing it? I suppose it's

RE: Simple Menu

2002-05-07 Thread Morse, Richard E.
Here's how I would write this -- I don't know if it will work, but you might try it... #!perl use strict; use warnings; my $done = 0; while(!done) { display_menu(); print "==> "; my $choice = <>; chomp $choice; if ($choice eq '00') { $done++; } els

Re: Fw: Hash of Hashes

2002-05-07 Thread shurst
> Thanks for the reply. I have included the result set and some more of the > code. Your help is appreciated. > > > my $dbh = DBI->connect("DBI:XBase:C:/Perl/progs/customer") or die > $DBI::errstr; > my $sth = $dbh->prepare("select ID, First_Name from customer") or die > $dbh->errstr(); >

Simple Menu

2002-05-07 Thread Mike Reilley
Sorry I meant to include the fact that I am running ActivePerl  5.6.0 Build 613 on Windows 98 SE Thanks to all the sugesstions. However, as written it will still not accept input after first file copy (Option 31) if option 00 is the very first option the menu will terminate as planned. if option 3

Simple Menu

2002-05-07 Thread Mike Reilley
Thanks to all the sugesstions. However, as written it will still not accept input after first file copy (Option 31) if option 00 is the very first option the menu will terminate as planned. if option 31 is the very first option the file will be copied the menu will reappear but no further input fr

RE: Using DBI::ODBC to get primary keys?

2002-05-07 Thread Morse, Richard E.
Simon Oliver [mailto:[EMAIL PROTECTED]] wrote: > First of all, DBD::ODBC now has direct $dbh->primary_key() > support so use > that instead. Which version has this? I'm running DBD::ODBC v0.28 -- I don't see a more recent PPM in the ActiveState repositories, and I don't have the MSVC++ compiler

GUI automation

2002-05-07 Thread Sushil Kumar Gupta
I plan to automate one GUI based application using perl. That will include everything like simulating mouse clicks , clicking on sub menus and fill the items in the text boxes etc etc.. I am totally new to GUI automation part of perl .. could any pls help me in telling what all modules are necessa

RE: Win32::OLE Word tabs

2002-05-07 Thread Tillman, James
> I've converted a vb macro to Perl, and successfully created a > right tab at > 7.5 inches. Now I need to move the cursur to that tab, but I > don't know what > the Perl equivalent for vbTab is. Check into Win32::OLE::Const and you will find that you don't need to know. jpt __

RE: XMl convertion quickie.

2002-05-07 Thread Tillman, James
Geez. I almost forgot one of my favorites: The Template Toolkit. Very powerful, easy to learn, and it can handle XML pretty well. You can get it from CPAN; easy to install. See www.template-toolkit.org for more info. jpt > -Original Message- > From: Martin Moss [mailto:[EMAIL PROTEC

RE: Win32::OLE Word tabs

2002-05-07 Thread Iacoboni, Vince
Try replacing vbTab with chr(9). That's what a press of the tab key sends. > -Original Message- > From: Mark D. Veerman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 9:24 AM > To: [EMAIL PROTECTED] > Subject: Win32::OLE Word tabs > > > Hi, I'm sure this is a fairly simple qu

RE: Executable program from perl script

2002-05-07 Thread Morse, Richard E.
If you are certain that the acld.exe accepts input from stdin (as opposed to actually reading directly from the console, or creating a GUI input stream, etc), you might try looking at IPC::Open2. This will allow you to read and write from and to the stdout and stdin of the program. Make sure you

(no subject)

2002-05-07 Thread Sean Ahern
At 14:34 07/05/2002 +0200, you wrote: >At 13:40 07/05/2002 +0200, Bellenger, Bruno \(Paris\) wrote: > >>Guys, >> >>Interesting as it may be, maybe this thread should be moved to a more >>appropriate forum ? > >Agreed! Damn. Just when I had them wriggling in the crushing grip of reason.

RE: XMl convertion quickie.

2002-05-07 Thread Thomas_M
I'm not an expert in this area, but I've always assumed that AxKit (www.axkit.org) was as good as the Java XML/XSLT solutions. AxKit is now an official Apache Software Foundation project. The first sentence of the feature list is "XSLT based pipelined XML transformations." If there are specific d

RE: Secure platforms DO matter!

2002-05-07 Thread Lee Goddard
At 13:40 07/05/2002 +0200, Bellenger, Bruno \(Paris\) wrote: >Guys, > >Interesting as it may be, maybe this thread should be moved to a more >appropriate forum ? Agreed! lee ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://l

Re: XMl convertion quickie.

2002-05-07 Thread Lee Goddard
XSLT. On Java Okay, I'm OT now, sorry, but unless things have picked up in the past six months (I'm sure they have) I'd never recommend Perl for XML conversion. lee At 12:23 07/05/2002 +0100, Martin Moss wrote: >All, > >just a quickie, any recommendations for converting from one XML doc t

time to retire this thread was (RE: Secure platforms DO matter!)

2002-05-07 Thread Aaron Trevena
The thread is becoming a nuisence.. 1) Some people prefer to trust adverts to their more experienced peers 2) Some people could go on for ever about how insecure windows is 3) Its not very perl related. > By the numbers: Comparing Windows security to Linux > http://www.techrepublic.com/article.

RE: XMl convertion quickie.

2002-05-07 Thread Tillman, James
XSLT is good at this. You can use Microsoft's XSLT objects through Win32::OLE, or you can use the XML::XSLT perl module, which has less functionality. I wish I had the skills and time to offer to make XML::XSLT a better tool. I'm embarrassed that we have such poor XSLT support in our language.

RE: Secure platforms DO matter!

2002-05-07 Thread Bellenger, Bruno \(Paris\)
Guys, Interesting as it may be, maybe this thread should be moved to a more appropriate forum ? There are lots of excellent and well followed security mailing lists out there where the mostly '*Nix-against-M$-as-Good-against-Evil' stance of this discussion would surely get a more vigorous and

XMl convertion quickie.

2002-05-07 Thread Martin Moss
All, just a quickie, any recommendations for converting from one XML doc to another? regards Marty ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: Secure platforms DO matter!

2002-05-07 Thread Martin Moss
Hm You mean Windows Me wasn't just a throw away prototype then? :-) Marty > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Sean Ahern > Sent: Tuesday 07 May 2002 12:30 > To: [EMAIL PROTECTED] > Subject: RE: Secure platforms DO matter!

RE: Secure platforms DO matter!

2002-05-07 Thread Lee Goddard
At 06:59 07/05/2002 -0400, Flowers, Jay wrote: > Are we talking about Windows NT 4.0, Windows 2000, or IIS *.*. > >Have you all heard anything about win64? Do have any faith that MS is >changing to become a more security aware company? MS is staking its life on >.NET and Win64. They are workin

RE: Secure platforms DO matter!

2002-05-07 Thread Sean Ahern
At 06:59 07/05/2002 -0400, you wrote: >Have you all heard anything about win64? Yes. > Do have any faith that MS is >changing to become a more security aware company? No. I am however sure that MS has become a company which -claims- it is more security aware. But MS has always been guilty

RE: Secure platforms DO matter!

2002-05-07 Thread Aaron Trevena
> Are we talking about Windows NT 4.0, Windows 2000, or IIS *.*. All. So far every release has been vulnerable. Even the patches are sketchy. > Have you all heard anything about win64? Do have any faith that MS is > changing to become a more security aware company? MS is staking > its life on

RE: Secure platforms DO matter!

2002-05-07 Thread Flowers, Jay
Are we talking about Windows NT 4.0, Windows 2000, or IIS *.*. Have you all heard anything about win64? Do have any faith that MS is changing to become a more security aware company? MS is staking its life on .NET and Win64. They are working hard to change. *nix has been around for a long ti

Re: Executable program from perl script

2002-05-07 Thread $Bill Luebkert
Sushil Kumar Gupta wrote: > Thanks for suggesting this > but seems this is not working .. i tried > it still send "start" to the STDOUT and not to the application. > Actually i want sort of what EXPECT can do , in PERL No it didn't if you coded it right. Provide a samll test snippet and any

RE: Executable program from perl script

2002-05-07 Thread Sushil Kumar Gupta
Thanks for suggesting this but seems this is not working .. i tried it still send "start" to the STDOUT and not to the application. Actually i want sort of what EXPECT can do , in PERL Regards, Sushil -Original Message- From: $Bill Luebkert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Ma

RE: Executable program from perl script

2002-05-07 Thread Sushil Kumar Gupta
No Actually i am trying to send the command to this application through script only. -Original Message- From: Josue Garayua [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 07, 2002 3:45 PM To: Sisyphus Cc: [EMAIL PROTECTED] Subject: Re: Executable program from perl script What if the inp

perldoc

2002-05-07 Thread Jamie . Echlin
Hi, Someone recently mentioned that their local HTML perldocs was automagically regenerated after they downloaded and installed new modules. Well, mine never is. I don't care whether it's automagical or not but is there a way of doing it? I suppose it's pod2html, but not sure what all the opti

Re: Using DBI::ODBC to get primary keys?

2002-05-07 Thread Simon Oliver
"Morse, Richard E." wrote: > > Hi! Has anyone had any luck using DBI::ODBC and the $dbh->func() call to > get the primary keys for a table? First of all, DBD::ODBC now has direct $dbh->primary_key() support so use that instead. > I've been trying to get this simple test script to work: > my

Re: Hash of Hashes

2002-05-07 Thread Lee Goddard
At 09:03 07/05/2002 +0100, Simon Oliver wrote: >Lee Goddard wrote: > > $i_ama_hash_ref->{ima_key2}->{"I'm a value")="I'm a key"; > >You swapped a brace with a bracket and didn't you mean this anyway: > >$i_ama_hash_ref->{ima_key2}->{"I'm a key"}="I'm a value"; Sure did. That'll teach me to try an

Re: Problem Using Makefile.PL to Install CPAN Modules

2002-05-07 Thread Sisyphus
> > It would be nice, however, to know why 'nmake test' was giving such an > unsatisfying message. Thanks again for your help. > > Jim Keenan Yes - it would :-) When you run 'nmake test', all of the '.t' scripts in the 't' folder in the tarball are run. Now that you have installed the module

RE: Secure platforms DO matter!

2002-05-07 Thread Aaron Trevena
> Not really my point. My point is that the system is only secure as the > people who run it. It is my understanding that most vulnerabilities these > days are not caused by bugs in the systems but rather lack of > knowledge/control of the adminstrators running the systems. The original point w

Re: Hash of Hashes

2002-05-07 Thread Simon Oliver
Lee Goddard wrote: > $i_ama_hash_ref->{ima_key2}->{"I'm a value")="I'm a key"; You swapped a brace with a bracket and didn't you mean this anyway: $i_ama_hash_ref->{ima_key2}->{"I'm a key"}="I'm a value"; and don't forget, when it get's multidimensional you can drop the -> notation so it looks

Re: Hash of Hashes

2002-05-07 Thread Lee Goddard
At 22:17 06/05/2002 -0700, Kevin wrote: >I am reading a DBI record into a hash reference - my $row = >$sth->fetchrow_hashref() - I would like to create a hash to hold all of the >returned rows (or thus, hashes) with the ID being the key, so for example > >$returned_rows{$row->{'ID'}} = $row $I_am