use lib(''); Apache httpd.conf

2004-06-08 Thread Alex Newby
Hi, I have a rather simple question that Google hasn't produced answers for. Basically, I am installing Mason in a virtual host under mod_perl. The libraries I need are housed in ~/my/lib How might I make Apache aware of ~/my/lib from the httpd.conf so that the following: PerlModule

system() command

2004-06-08 Thread june tantoolvesm
Hi, I hope this is the right mailing list. I have two questions. 1. I was wondering if anyone here knows what this command is doing, besides calling the program neighbor? system (neighbor /dev/null 21 ! $inpwd 2 3 Y !) I understand up to 21, does anyone knows what comes after that. I am

system() command

2004-06-08 Thread june tantoolvesm
Hi, I hope this is the right mailing list. I have two questions. 1. I was wondering if anyone here knows what this command is doing, besides calling the program neighbor? system (neighbor /dev/null 21 ! $inpwd 2 3 Y !) I understand up to 21, does anyone knows what comes after that. I am

system() command

2004-06-08 Thread june tantoolvesm
Hi, I hope this is the right mailing list. I have two questions. 1. I was wondering if anyone here knows what this command is doing, besides calling the program neighbor? system (neighbor /dev/null 21 ! $inpwd 2 3 Y !) I understand up to 21, does anyone knows what comes after that. I am

RE: system() command

2004-06-08 Thread Tim Johnson
Before going any further, you might want to tell us what operating system you are using. As far as I know, the operator can be used to feed a program certain input as if it came from STDIN, but I've never used it because it always sounded a bit kludgy to me. -Original Message- From:

Yet Another Regex Problem

2004-06-08 Thread Francesco del Vecchio
Hi guyz, this regex are goin' to drive me crazy! My problem is: I have to find URLs in a text file (so, cannot use LWP or HTML parser) I've tried with something like /(http.:\/\/.*\s)/ willing to find anything starting with http/https with //: and catching everything up to a space or

Re: GD::Graph

2004-06-08 Thread Tarun Dua
On Mon, 2004-06-07 at 21:35, Josimar Nunes de Oliveira wrote: screen-copy Microsoft Windows 2000 [Versão 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\Administradorppm install GD-Graph Error: Package 'GD-Graph' not found. Please 'search' for it first.

RE: use lib(''); Apache httpd.conf

2004-06-08 Thread NYIMI Jose (BMB)
-Original Message- From: Alex Newby [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 9:54 AM To: [EMAIL PROTECTED] Subject: use lib(''); Apache httpd.conf Hi, I have a rather simple question that Google hasn't produced answers for. Basically, I am installing Mason

Re: how to check for dots in filename

2004-06-08 Thread Steve Mayer
Sid, try: my $ty=polica.op; if($ty =~ /\.+/) { print Found a dot!\n; } Steve On Tue, Jun 08, 2004 at 03:34:29AM +0530, Sidharth wrote: hi all, can anyone tel me how to look for files which conatain dotsin it. i.e file1.txt file2.txt how to check for dots in filename

Re: system() command

2004-06-08 Thread John W. Krahn
June Tantoolvesm wrote: Hi, Hello, I hope this is the right mailing list. I have two questions. 1. I was wondering if anyone here knows what this command is doing, besides calling the program neighbor? system (neighbor /dev/null 21 ! $inpwd 2 3 Y !) I understand up to 21, does

accesing a table inside word from Perl

2004-06-08 Thread popeye7
Does anyone know where I can get some information on how to access, create, modify a table and add rows to a table in Microsoft Word from Perl? Henri - Original Message - From: Ravinder Arepally [EMAIL PROTECTED] To: 'Wiggins d'Anconia' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL

How to readline when using more option in script.

2004-06-08 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hi, I could use open(STDOUT,| more) option to more big file. After this, I close STDOUT as if I do not close, readline prints the prompt even when more is not 100%. ### open(STDOUT,| more) || Cannot open stdout for more $!; $status = system(cat report.txt);

How to readline when using more option in script.

2004-06-08 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hi, I could use open(STDOUT,| more) option to more big file. After this, I close STDOUT as if I do not close, readline prints the prompt even when more is not 100%. ### open(STDOUT,| more) || Cannot open stdout for more $!; $status = system(cat report.txt);

RE: Calling more in perl script for large files.

2004-06-08 Thread Raminder G
Hi, I could use open(STDOUT,| more) option to more big file. After this, I close STDOUT as if, I do not close, readline prints the prompt even when more is not 100%. ### open(STDOUT,| more) || Cannot open stdout for more $!; $status = system(cat report.txt);

about ppm

2004-06-08 Thread aditi gupta
hi, i have installed perl 5.8 on windows XP.but the ppm is not working,it says ,it doesn't contain any packages or repositories,also it couldn't connect to activestate. can i get ppm separately or i have to install perl again. thanx in advance, aditi Yahoo! India Matrimony: Find your

Re: about ppm

2004-06-08 Thread aditi gupta
hi, i have to install bioperl modules. i gave its full address: ppm install http://bioperl.org/DIST/ it said: Error: No valid repositories Error: 500 Can't connect to ppm.ActiveState.com:80(Bad hostname 'ppm.ActiveState.com') Error: 500 Can't connect to ppm.ActiveState.com:80(Bad hostname

Re: about ppm

2004-06-08 Thread Tarun Dua
Aditi gupta wrote: hi, i have to install bioperl modules. i gave its full address: ppm install http://bioperl.org/DIST/ it said: Error: No valid repositories Error: 500 Can't connect to ppm.ActiveState.com:80(Bad hostname 'ppm.ActiveState.com') Error: 500 Can't connect to

Re: if -s clause

2004-06-08 Thread DBSMITH
I have tried all three methods if -s OUT, if -f $filename and if -s @arrayname with no evail. I did make a test.pl file so that I am just testing whether the file is greater than 0 bytes. Here is the code. autoflush is turned on. Is this the correct spot for this? Is it this tedious

Re: Yet Another Regex Problem

2004-06-08 Thread Jeff 'japhy' Pinyan
On Jun 8, Francesco del Vecchio said: I have to find URLs in a text file (so, cannot use LWP or HTML parser) I'm curious why you can't use a module to extract URLs, but I'll continue anyway. /(http.:\/\/.*\s)/ That regex is broken in a few ways. First, it does NOT match 'http:', it only

OT - problem with script running on a refresh

2004-06-08 Thread mike
Hi I have a CGI/dbi script which whenever the page is reloaded the following executes print start_multipart_form (POST); print Subject, popup_menu(-name='Subject1',-values=[EMAIL PROTECTED]); print Area, popup_menu(-name='area1',-values=[EMAIL PROTECTED]),p; print

RE: if -s clause

2004-06-08 Thread Bob Showalter
[EMAIL PROTECTED] wrote: I have tried all three methods if -s OUT, if -f $filename and if -s @arrayname with no evail. I did make a test.pl file so that I am just testing whether the file is greater than 0 bytes. Here is the code. autoflush is turned on. Is this the correct spot for

Re: Yet Another Regex Problem

2004-06-08 Thread Ramprasad A Padmanabhan
CHange your regex to /http(s)*:\/\/.*?\s/ To see the docs perldoc perlre ... look for greedy HTH Ram On Tue, 2004-06-08 at 16:15, Francesco del Vecchio wrote: Hi guyz, this regex are goin' to drive me crazy! My problem is: I have to find URLs in a text file (so, cannot use LWP or

RE: if -s clause

2004-06-08 Thread DBSMITH
ok I can take some blame! : ) I made some changes and I am still not getting the print message. ## Set pragmas use strict; my $foreigntapes=/usr/local/log/foreign_tapes.log; delete $ENV{'IFS'}; local $ENV{'PATH'} =

Re: use lib(''); Apache httpd.conf

2004-06-08 Thread Wiggins d Anconia
Hi, I have a rather simple question that Google hasn't produced answers for. Basically, I am installing Mason in a virtual host under mod_perl. The libraries I need are housed in ~/my/lib Really, your exact subject line gave 3-4 pages that provided similar answers at the top of the

Re: if -s clause

2004-06-08 Thread Wiggins d Anconia
Please bottom post I have tried all three methods if -s OUT, if -f $filename and if -s @arrayname with no evail. See Bob's e-mail too, but why did the -s all of a sudden become a -f in the above statement? If this is not a typo, the -f will be true on the file if it exists and

RE: if -s clause

2004-06-08 Thread Wiggins d Anconia
Please bottom post ok I can take some blame! : ) I made some changes and I am still not getting the print message. You made *some* changes, but you still haven't listened to what Bob and I have said, and made the changes we have pointed out specifically. That is becoming tedious. I

Re: if -s clause

2004-06-08 Thread DBSMITH
yes -f is a typo! I want to use -s Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams 614-566-4145 Wiggins d Anconia [EMAIL PROTECTED] 06/08/2004 11:02 AM To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject:Re: if -s clause Please bottom post

OT - problem with script running on a refresh

2004-06-08 Thread mike
Hi I have a CGI/dbi script which whenever the page is reloaded the following executes print start_multipart_form (POST); print Subject, popup_menu(-name='Subject1',-values=[EMAIL PROTECTED]); print Area, popup_menu(-name='area1',-values=[EMAIL PROTECTED]),p; print

Re: about ppm

2004-06-08 Thread aditi gupta
i tried this too,it is still giving the same error messages.. also,each time i open ppm window ,this warning comes: Warning:save c:\Perl\site\lib/ppm-conf\clientlib.cfg:Permission denied =Configuration not saved. what does this mean?? what should i do?do you think this ppm will work?

RE: if -s clause

2004-06-08 Thread DBSMITH
ok so here is what I did and it is now working. one thing I do not fully understand is the diff between my $svsel = select; select OUT ; $|=1; and select (select(OUT), $| = 1 ) [0] ); the second line works while the first does not and from my understanding I am selecting OUT and never

RE: if -s clause

2004-06-08 Thread Bob Showalter
[EMAIL PROTECTED] wrote: ok so here is what I did and it is now working. one thing I do not fully understand is the diff between my $svsel = select; select OUT ; $|=1; and select (select(OUT), $| = 1 ) [0] ); the second line works while the first does not and from my understanding I am

RE: if -s clause

2004-06-08 Thread DBSMITH
that's ok! thanks! my goal is to run the system app command only if the file handle OUT is greater than 0 bytes else create a runfile. You say test @ftapes but you never said how? is there a better way to just create a file rather than opening it and doing nothing. currently I am stating

Mail Server in Perl on Win32 platform.

2004-06-08 Thread West, William M
Am trying to get Activestate Perl to run a Mail server... been searching CPAN and found Net::Server::Mail::SMTP. the line: my $smtp = new Net::Server::Mail::SMTP socket = $conn; gives me the error: -- Can't locate object method new via package Net::Server::Mail::SMTP at testserver3.pl line 11.

FW: :DOM::Parser question !

2004-06-08 Thread Ravinder Arepally
All, Any help regarding below problem is greatly appreciated. My intention is to change value to true. javaTask className = tool.update.languagepack.MergeConfig arg name=sample value=false/ to javaTask className =

Retrieving Cookie from header

2004-06-08 Thread Gajewski, Joe (MLIM)
Folks: I am using the Net::HTTP package in building a small http client. I am trying to reuse an existing mechanism to talk to a db service through a servlet rather than code a new application in perl. Since I need to issue several http GET requests, cookies are used to keep session state. The

Exception Handling - Professionally

2004-06-08 Thread Scott Stearns
Greetings, For you professional Perl programmers: how do you approach exception-handling in the your world? I know there are a lot of ways Perl gives us to do this: basic 'die', eval'ing blocks of code and the Exception.pm module but is there a standard in the real world for handling exceptions?

Re: how to generate array name dynamically

2004-06-08 Thread Jenda Krynicky
From: Sidharth [EMAIL PROTECTED] hi all, i hav a requirement wherein i hav to generate array name dynamically durin recursive function cal how can i do this . sid Please read the Why it's stupid to `use a variable as a variable name' - by M-J. Dominus

Re: Exception Handling - Professionally

2004-06-08 Thread Wiggins d Anconia
Greetings, For you professional Perl programmers: how do you approach exception-handling in the your world? I know there are a lot of ways Perl gives us to do this: basic 'die', eval'ing blocks of code and the Exception.pm module but is there a standard in the real world for handling

RE: FW: :DOM::Parser question !

2004-06-08 Thread Ravinder Arepally
Thanks for your reply, Deane. It should work from the code, but I don't understand why it isn't. Annoying to me. Any pointers ? -Ravi _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 10:28 AM To: Ravinder Arepally Cc: '[EMAIL PROTECTED]'; [EMAIL

Glossary

2004-06-08 Thread Karen McAtamney
I'm in the process of learning perl (hmm - right at the beginning of this process), and I'm having great difficulty working my way through the man pages. I'm a Windows user and perl is the first language I'm learning, so *everything* is new to me. I am also having to get to grips with using my

Re: XML::Simple

2004-06-08 Thread mgoland
Wig, My Poor Mail client is very poor @ bottom post Any idea why it does not print exactly like it readslook @ tittle attribute. In source file, it is almost on top, while in output it's nearly on bottom ?? Thanks Mark G - Original Message - From: Wiggins d'Anconia [EMAIL

Re: Glossary

2004-06-08 Thread Wiggins d Anconia
I'm in the process of learning perl (hmm - right at the beginning of this process), and I'm having great difficulty working my way through the man pages. I'm a Windows user and perl is the first language I'm learning, so *everything* is new to me. I am also having to get to grips with using my

Re: XML::Simple

2004-06-08 Thread Wiggins d Anconia
Wig, My Poor Mail client is very poor @ bottom post Bummer, time to upgrade the mail client? ;-) Any idea why it does not print exactly like it readslook @ tittle attribute. In source file, it is almost on top, while in output it's nearly on bottom ?? I suspect because the

Re: Exception Handling - Professionally

2004-06-08 Thread Randal L. Schwartz
Scott == Scott Stearns [EMAIL PROTECTED] writes: Scott For you professional Perl programmers: how do you approach Scott exception-handling in the your world? I know there are a lot of Scott ways Perl gives us to do this: basic 'die', eval'ing blocks of Scott code and the Exception.pm module but

Query Oracle, show results (need help!!)

2004-06-08 Thread jason corbett
Hello all. I am trying to log into an Oracle database, send this query { select * from ban where row num 100} and I am getting erros like: can't call method 'execute' on an undefined value at (filename) line_number. Got any suggestions? using the following perl script: #!/usr/bin/perl -w

Re: Glossary

2004-06-08 Thread Levon Barker
Karen, I realize I am not answering your question directly but may I suggest that you purchase a copy of 'Learning Perl' by Randal Schwartz Tom Phoenix. It is an excellent introduction to Perl. You may find it easier than going through the man pages. Cheers, Levon Barker On Tue, 2004-06-08

Re: Glossary

2004-06-08 Thread u235sentinel
I agree. Also Perl for Dummies might help a bit. In the back there is a list of major commands typically used in Perl. The book was ok. Learning Perl 3rd Edition by Oreilly was better IMO. Karen, I realize I am not answering your question directly but may I suggest that you purchase

RE: Query Oracle, show results (need help!!)

2004-06-08 Thread Hanson, Rob
I think you should turn on errors... by debault DBI will supress them. After the DB connection, put this... $db-{RaiseError} = 1; Once you do this you will see that your prepare failed, your SQL syntax is not valid. select * from ban where row num 100 It should be rownum, not row num. Rob

Re: Glossary

2004-06-08 Thread Karen McAtamney
From: [EMAIL PROTECTED]: I agree. Also Perl for Dummies might help a bit. In the back there is a list of major commands typically used in Perl. The book was ok. Learning Perl 3rd Edition by Oreilly was better IMO. I've already got a copy of Learning Perl, and I've made it few the first couple

Re: Glossary

2004-06-08 Thread u235sentinel
Understood however I thought you were also lookinig for a glossary of Perl commands. The Perl for Dummies book has such a list in the back. Learning Perl doesn't have a list. Still... it's currently my favorite Perl book :D From: [EMAIL PROTECTED]: I agree. Also Perl for Dummies might

can't coerce array into hash

2004-06-08 Thread Andrew Gaffney
My boss wants me to write a script that will allow him to browse through the customers in our DB alphabetically. He wants all the customer's information to display on the page. I wrote the following as part of the script. I get the error 'Can't coerce array into hash' at the first 'if' into the

RE: can't coerce array into hash

2004-06-08 Thread Charles K. Clarkson
Andrew Gaffney [EMAIL PROTECTED] wrote: : My boss wants me to write a script that will allow him to browse : through the customers in our DB alphabetically. He wants all the : customer's information to display on the page. I wrote the following : as part of the script. I get the error 'Can't

Re: can't coerce array into hash

2004-06-08 Thread Andrew Gaffney
Charles K. Clarkson wrote: Andrew Gaffney [EMAIL PROTECTED] wrote: : My boss wants me to write a script that will allow him to browse : through the customers in our DB alphabetically. He wants all the : customer's information to display on the page. I wrote the following : as part of the script. I

Calling subroutines from another file

2004-06-08 Thread Daniel Kasak
Hi all. I have a main script file, a package in a separate 'package_name.pm' file and a file 'stuff.pl' that contains functions that both the main script and the package need to use. I've tried adding: require stuff.pl; to both the main script and the package. I can then call functions in

RE: Calling subroutines from another file

2004-06-08 Thread Charles K. Clarkson
Daniel Kasak [EMAIL PROTECTED] wrote: : I have a main script file, a package in a separate 'package_name.pm' : file and a file 'stuff.pl' that contains functions that both the : main script and the package need to use. : : I've tried adding: : : require stuff.pl; : : to both the main script

Storable Problem

2004-06-08 Thread Anish Mehta
Hello Everyone, I have a problem is getting some data from database. I am getting the error like this: Storable binary image v2.6 more recent than I am (v2.4) at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/thaw.al) line 342, Can someone tell me what is the error and some

RE: How do I document my perl code?

2004-06-08 Thread Stuart Arnold
POD - Plain Old Documentation You'll find this in the perl doc as perlpod basically you use the = in column one with a keyword. Perl parser ignores anything betweeen a beginning = and the final marker =cut. Typically its: =pod =head1 DESCRIPTION blah, blah, blah... =cut code.. Other

Printing a multipart HTML output

2004-06-08 Thread Octavian Rasnita
Hi all, Please tell me how can I create a multipart html file that includes html text and images. I know that Mime::Lite can create such a thing for sending an email with attachments, but I don't know if it is possible to use it for creating common HTML pages with multipart content. Thank you.

Re: Printing a multipart HTML output

2004-06-08 Thread Wiggins d Anconia
Hi all, Please tell me how can I create a multipart html file that includes html text and images. I know that Mime::Lite can create such a thing for sending an email with attachments, but I don't know if it is possible to use it for creating common HTML pages with multipart content. I

Re: Printing a multipart HTML output

2004-06-08 Thread Octavian Rasnita
Hi, Thanks for responding. I need to create that multipart page because I am trying to create a single html file with a financial analysis which includes pictures and I don't want to be necessary to send more files to the clients. But I was sure that if Outlook Express can read such a page,

Re: POST and GET and CGI.pm

2004-06-08 Thread Wiggins d Anconia
Greetings, While reading some of the Perl newsgroups, I've seen a few examples of people getting CGI parameters by either parsing the query-string (for GETs) or reading in some of the content (for POSTs). I've been working with CGI (using Perl) for a little while now and I've always used

help with adjusting log file data?

2004-06-08 Thread Catriona Pure Scents
Hi guys, Needing a little help with adjusting the data a log file reads to. It goes like this currently @env_vars = keys(%ENV); foreach $variable (@env_vars) { $log_entry .=$ENV{$variable}\|; } I am wanting to change this to include $http_referrer So,I am presuming that I should be doing

RE: help with adjusting log file data?

2004-06-08 Thread Charles K. Clarkson
Catriona Pure Scents [EMAIL PROTECTED] wrote: : Hi guys, : : Needing a little help with adjusting the data a log file reads to. : : It goes like this currently : @env_vars = keys(%ENV); : : foreach $variable (@env_vars) : { : $log_entry .=$ENV{$variable}\|; : } There is no need to