RE: Perl Cgi/ Why?

2002-12-12 Thread Peter Kappus
Good points everyone! And while this IS more of a beginners-cgi question, here's my two cents anyway... Lately, I have myself have been re-evaluating my use of perl in a CGI context since, PHP is so ideally suited towards perl-like tasks and already has a vast library of prebuilt functions for e

RE: eval help needed.

2002-11-18 Thread Peter Kappus
I've never played with it, but I think what you need is the perl win32 OLE libaray...basically, it gives you VBScript-like access to win32 objects and applications via perl! check it out: http://aspn.activestate.com/ASPN/Perl/Products/ActivePerl/site/lib/Win32/OLE ..html I'm not sure what you're

RE: running a perl script in an other one ?

2002-11-15 Thread Peter Kappus
I often use the quick and dirty approach of just using back-tics to make a system call to my other perl script (or program) and grab its output for my own program like this: #!/usr/bin/perl -w #my first script #initialize a variable to pass $x="foo"; #call 'secondScript.pl' with "foo" as an arg

RE: :Oracle row count not working

2002-11-14 Thread Peter Kappus
I haven't used much DBI but I suspect that your $rv2 is just a reference to an array of rows so you might try doing something like "$rv2 = scalar($sth2->rows)" to put the number of items in that array into $rv2... BTW, why such cryptic variable names? ;-) Of course, I may be completely off so hope