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 HTML::Mason

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 2>&1 << ! $inpwd 2 3 Y !") I understand up to "2>&1", does anyone knows what comes after that

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 2>&1 << ! $inpwd 2 3 Y !") I understand up to "2>&1", does anyone knows what comes after that

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 2>&1 << ! $inpwd 2 3 Y !") I understand up to "2>&1", does anyone knows what comes after that

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 2>&1 << ! $inpwd 2 3 Y !") I understand up to "2>&1", does anyone knows what comes after that

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 newli

Re: GD::Graph

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

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 installi

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 fil

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 2>&1 << ! $inpwd 2 3 Y > !") > > I under

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]>;

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.tx

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.tx

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.tx

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 pa

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 con

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 t

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 matc

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 "Descri

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

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 LW

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'} = "/usr/epoch/bin:/usr/epoch/EB/bin:/usr/bin

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 l

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 an

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.

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 "Descri

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-selecti

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 understandi

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 m

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

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. to Thanks, Ravi -Original Message- From: Ravinder Arepally Sent: Monday, June 07, 2004 5:56 PM To: [EMAIL

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? I

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 http://www.plo

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 P

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 shel

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 @ 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 PROTECT

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

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 @ attribute. In source file, it is almost on top, while in output it's nearly on bottom ?? > I suspect because the struct

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

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 a

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 pu

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".

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

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"

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 coe

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.

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 'st

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 sugges

Newbie: regexp /o modifier

2004-06-08 Thread raj
Hello All, I have read modifier /o is used to compile the regexp only once. But I don't know how it affects regular expression practically. Can anyone explain about /o modifier with examples? ANy help much appreciated. Thanks, Durai. --- Outgoing mail is certified Virus Free. C