Cant configure active perl with apache 2

2004-10-06 Thread Sagar C Nannapaneni
Hi all,   I'm unable to configure active perl with apache 2 I've gone thru some articles from the web. Atlast i'm able to run a perl cgi script which uses a scalar variable and prints that variable. anything beyond that (like arrays,loops etc.) are not working resulting in an "internal serv

Re: Question about parsing an html document

2004-10-06 Thread $Bill Luebkert
Gary Nielson wrote: > I am trying to get the first paragraph of an article from an html document. > I am trying to do this by getting the document from the web, using 'join' to > make many lines one line, and then trying to isolate the text I want. Is > this workable? > > Here's an example of the

Tk Listbox

2004-10-06 Thread Chad Lung
I'm using the GUI Builder with a simple Perl Tk project. I dropped a ListBox widget on the form and then wanted to populate the listbox so in the property editor for the listbox I added a variable to the "listvariable" property, i.e: @list Then I populate the @list in my Perl file. Nothing s

RE: Error Message

2004-10-06 Thread Perl Developer
I actually just tested it and the function call intRand(45) did get evaluated. Perl 5.8.3 build 809 -- Chris Mike Arms wrote: You are making the incorrect assumption that the function call intRand(45) will get evaluated inside of double quotes. This is not the case. You can do it in two steps:

RE: Error Message

2004-10-06 Thread Kamal Ahmed
intRand is a sub: sub intRand { my $range = shift; return int(rand() * $range); } -Original Message- From: Darrell Gammill [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 06, 2004 6:17 PM To: Jeff Westman; Kamal Ahmed Cc: [EMAIL PROTECTED] Subject: RE: Error Message what is

RE: Error Message

2004-10-06 Thread Perl Developer
Presumably, intRand is a sub. I recreated your error, when $class[intRand(45)] is undef and "use strict" and "use warnings" are in place: use strict; use warnings; my @class = (1, 2, 3, undef); print " $class[intRand(45)]"; sub intRand { return 3; } >Use of uninitialized value in concate

RE: Error Message

2004-10-06 Thread Arms, Mike
Kamal Ahmed [EMAIL PROTECTED] wrote: >I am getting an error message: >"Use of uninitialized value in concatenation (.) or string at ./exploitD.pl line 2093. > >Line 2093: >print " $class[intRand(45)]"; > >How can i get rid of this message ? You are making the incorrect assumption that the function

RE: Error Message

2004-10-06 Thread Wayne Simmons
You could try defining or initializing the value you're attempting to concatenate. :-D -Wayne   -Original Message- From: Kamal Ahmed [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 06, 2004 4:01 PM To: [EMAIL PROTECTED] Subject: Error Message I am getting an error message:   " Use

RE: Error Message

2004-10-06 Thread Darrell Gammill
what is 'intRand'? Do you mean 'int rand'? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Westman Sent: Wednesday, October 06, 2004 5:08 PM To: Kamal Ahmed Cc: [EMAIL PROTECTED] Subject: Re: Error Message You are trying to print a variable that ha

Re: Error Message

2004-10-06 Thread Jeff Westman
You are trying to print a variable that has no value (null) so perl is telling you that the variable is empty, and therefore cannot print it. Solution: find out why your variable $class[intRand(45)] is not populated. Make sure you are using 'use strict' and 'use warnings'. -Jeff On Wed, 6 Oc

Error Message

2004-10-06 Thread Kamal Ahmed
Title: Message I am getting an error message:   " Use of uninitialized value in concatenation (.) or string at ./exploitD.pl line 2093.   Line 2093:   print " $class[intRand(45)]";   Hoe can i get rid of this message ?   Thanks,   -Kamal. ___ Act

Re: installing DBD [EMAIL PROTECTED]

2004-10-06 Thread Jose Guevarra
Mario, This was really pissing me off too. But, I found out how to fix it. rename /etc/sysconfig/i18n to /etc/sysconfig/i18n.orig (you could probably delete it, but, I don't know what it does)(also supposedly this makes perl-sybase not work) now reboot the machine. clean out you /root/.cpan/bui

installing DBD [EMAIL PROTECTED]

2004-10-06 Thread mario sanchez
after 3 full days on redhat 9.0, mysql4.0.21 i have tried to death intalling DBD-mysql - which of course i need. any which way i try (CPAN, rpm, webmin) i get the same error Unsuccessful stat on filename containing newline at /usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm line 97. Multiple copies

Win32 version of Device::SCSI

2004-10-06 Thread [EMAIL PROTECTED]
I'm looking for a Win32 version of Device::SCSI. On our Linux machines I'm using Device::SCSI:linux and would like to port my tests to our W2K and W2K3 systems. Searching CPAN and a Google search were unproductive. Thanks in advance. --Dave Montague

RE: Help getting file size (sheesh) ...

2004-10-06 Thread Arms, Mike
First off, despite the fact that Win32 uses "\" as a path separator, I strongly recommend using forward slash "/" as your path separator. Just to easy to mess up the escaping of the backslash character. Not saying you are necessarily doing this, but it is very error prone. That being said, try mod

RE: Help getting file size (sheesh) ...

2004-10-06 Thread Laurie Vien
I put in some prints to better see what's happening.  Here's the code and the results:      foreach $xFile (@xFileList) {  $x = "$local_dir\\$xFile";  $xsize = (stat($x))[7];  print "\nFile tested is $x; size was $xsize.\n";  if ($xsize > 0) { print "   WILL proce

RE: Help getting file size (sheesh) ...

2004-10-06 Thread Laurie Vien
Through all your suggestions, I learned that the problem was my xFileList didn't have fully-qualified file names in it.  Once I changed that, it worked like a charm.   Thanks very much, everyone.   Laurie   -Original Message-From: Laurie Vien Sent: Wednesday, October 06, 2004 2:19 PM

RE: Help getting file size (sheesh) ...

2004-10-06 Thread Arms, Mike
Laurie Vien [EMAIL PROTECTED] wrote: > I'm trying to just determine the size of a file before > I decide whether to process it. In the following code, > $size always comes out null: > > foreach $xFile (@xFileList) { > $size = (stat ($xFile))[7]; > if ($size gt 0) { > print

Re: Help getting file size (sheesh) ...

2004-10-06 Thread Dirk Bremer \(NISC\)
Laurie,   I suspect that you are not using a fully qualified filename. The filename should include the full path to the file. Dirk Bremer - Systems Programmer II - ESS/AMS  - NISC St. PetersUSA Central Time Zone636-922-9158 ext. 8652 fax 636-447-4471   [EMAIL PROTECTED]www.nisc.cc - Or

RE: Question about parsing an html document

2004-10-06 Thread Charles K. Clarkson
Gary Nielson <[EMAIL PROTECTED]> wrote: : I am trying to get the first paragraph of an article : from an html document. I am trying to do this by : getting the document from the web, using 'join' to : make many lines one line, and then trying to isolate : the text I want. Is this workable? : : He

Help getting file size (sheesh) ...

2004-10-06 Thread Laurie Vien
 I'm trying to just determine the size of a file before I decide whether to process it.  In the following code,   $size always comes out null:      foreach $xFile (@xFileList) {  $size = (stat ($xFile))[7];  if ($size gt 0) { print "   Found file $xFile with size $size, so

Question about parsing an html document

2004-10-06 Thread Gary Nielson
I am trying to get the first paragraph of an article from an html document. I am trying to do this by getting the document from the web, using 'join' to make many lines one line, and then trying to isolate the text I want. Is this workable? Here's an example of the area of a longer html document t

IPC::Open3 and non-blocking IO

2004-10-06 Thread Vidur Apparao
I've found that it isn't possible to do non-blocking IO using IO::Handles returned from IPC::Open3 on Windows. Specifically, neither invoking the blocking() method on the handles nor invoking ioctl() in the manner described in many places on this list (including http://aspn.activestate.com/ASPN

RE: How to install AdminMisc Module

2004-10-06 Thread Ben Conrad
Ooops, my sort order was backards in my email client. I hope Sitaram already found an answer to this! ;-) Ben -Original Message- From: Venkata Sitaram [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 9:51 AM To: [EMAIL PROTECTED] Subject: How to install AdminMisc Module Hi Al

RE: How to install AdminMisc Module

2004-10-06 Thread Ben Conrad
Have you tried: ppm install http://www.roth.net/perl/packages/Win32-AdminMisc.ppd -Original Message- From: Venkata Sitaram [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 9:51 AM To: [EMAIL PROTECTED] Subject: How to install AdminMisc Module Hi All, I am facing problems while