Re: $dbh->do('\@proc')

2004-03-23 Thread R. Joseph Newton
Jayakumar Rajagopal wrote: > Hi all, >I have to use PERL to run ".sql" files No you don't. When I was in Oracle class, nobody even knew what Perl was, and we ran scripts directly at the prompt. I think you are getting your interfaces mixed up here. Perl is called from a shell of the

Re: QUERY_STRING

2004-03-23 Thread Mike Ni
--- WC -Sx- Jones <[EMAIL PROTECTED]> wrote: > Mike Ni wrote: > > > Thanks for the response. > > Is there any connection between "CONTENT_LENGTH" & > > "query_string"? > > > > No. Why do you ask? > I am not clear why we need CONTENT_LEGTH. I thought the CONTENT_LENGTH is designed to tell me

Re: QUERY_STRING

2004-03-23 Thread WC -Sx- Jones
Mike Ni wrote: Thanks for the response. Is there any connection between "CONTENT_LENGTH" & "query_string"? No. Why do you ask? -- _Sx_ http://youve-reached-the.endoftheinternet.org/ _ perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: problem conencting to oracle after upgrading to oracle 9i

2004-03-23 Thread R. Joseph Newton
"Nilay Puri, Noida" wrote: > Hi All, > > On sparc m/c SUN OS 5.8 , I have recently upgraded from Oracle 8i to Oracle > 9i. > > ANd I had DBD:Oracle 1.12 installed on it. > > Now the perl files give error : > DBI->connect(hemdadev) failed: ERROR OCIEnvInit at test.pl line 18 > > And at line 17 I ha

Re: QUERY_STRING

2004-03-23 Thread Mike Ni
--- WC -Sx- Jones <[EMAIL PROTECTED]> wrote: > > Everything after the ? is the query_string for a get > (POST is somewhat different.) > > For example - See: > http://insecurity.org/cgi/cgi_reflect.cgi?ImAStringQuestioningMe > > Not sure where I got that one - somewhere on the > Internet... >

Re: QUERY_STRING

2004-03-23 Thread WC -Sx- Jones
Mike Ni wrote: Hey Everyone, Do we know where I can get a clear definition of "query_string"? What are included by the "query_string" returned by the apache web server? Everything after the ? is the query_string for a get (POST is somewhat different.) For example - See: http://insecurity.org

QUERY_STRING

2004-03-23 Thread Mike Ni
Hey Everyone, Do we know where I can get a clear definition of "query_string"? What are included by the "query_string" returned by the apache web server? Thanks! Mike __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.c

Search for a file pattern in a directory tree recursively

2004-03-23 Thread Rajesh Dorairajan
Hello All, I went through all the documentation and previous mail posts about File::Find and finally decided I needed some help. I've a directory structure I need to parse. The directory contains subdirectories with filenames such as full094382.db full483292.db Now, I need to parse through eac

Re: use lib

2004-03-23 Thread Jenda Krynicky
From: "B. Fongo" <[EMAIL PROTECTED]> > Is it recommendable to use the pragma "use lib " when installing a > program on a server shared by many users? Assuming my IPS did not > install certain CPAN modules which my needs, and I decide to install > them in my www directory. In such a scenario, putti

use lib

2004-03-23 Thread B. Fongo
Is it recommendable to use the pragma "use lib " when installing a program on a server shared by many users? Assuming my IPS did not install certain CPAN modules which my needs, and I decide to install them in my www directory. In such a scenario, putting "use lib" on my scripts will add my modu

Re: Man page for CGI::Request/CGI::Base

2004-03-23 Thread Mike Ni
s > > The module CGI::Base isn't available on CPAN. > > Either the module has not yet been uploaded to > CPAN, or it is > temporary unavailable. Please contact the author > to find out > more about the status. Try 'i CGI::Base'. > ! > > -- > Owen > Hey Owen, I am sure I follow.

Re: Character Count

2004-03-23 Thread Beau E. Cox
On Tuesday 23 March 2004 11:18 am, Rob Torres wrote: > Hello, > I am writing a simple perl script to count the # of characters in a given > field. At the command line I can write >>wc -m somefile.txt, and get the > total character count. But in the script I am splitting a text file and > then doi

Re: Reducing RegEx (pcre)

2004-03-23 Thread Jenda Krynicky
From: WC -Sx- Jones <[EMAIL PROTECTED]> > Jenda Krynicky wrote: > > > sub PolishHTML { > > my $str = shift; > > if ($AllowXHTML) { > > $str =~ > > > http://Jenda.Krynicky.cz/#Jenda.Rex COM object. > > > > Hi, thx for the reply :) As always your code > leaves me wondering

Re: Character Count

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 3:18 PM, Rob Torres wrote: Hello, I am writing a simple perl script to count the # of characters in a given field. At the command line I can write >>wc -m somefile.txt, and get the total character count. But in the script I am splitting a text file and then doing a count o

Character Count

2004-03-23 Thread Rob Torres
Hello, I am writing a simple perl script to count the # of characters in a given field. At the command line I can write >>wc -m somefile.txt, and get the total character count. But in the script I am splitting a text file and then doing a count on an element of the array. code snippet: **

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 1:51 PM, juman wrote: That solved my problem :-) Thanks for the help I probably put toomuch thought into solving this simple thing ;-) Glad to hear it. If you learned something, it was worth the effort. Next time though, post your code so we can help guide you to what you

Re: Replace every character

2004-03-23 Thread juman
That solved my problem :-) Thanks for the help I probably put toomuch thought into solving this simple thing ;-) /juman On Tue, Mar 23, 2004 at 01:29:42PM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 1:23 PM, juman wrote: > > >Okay thanks :) > > > >Here is a code snippet : > > > >

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 1:23 PM, juman wrote: Okay thanks :) Here is a code snippet : if ($nr == $quiz_id{"$quizzer"}) { $window->print ("Id answer : $reply", MSGLEVEL_NEVER) if ($window); $exit = 0; } elsif ( '$question' == '$quiz_question{"$quizzer"}' ) {

Re: Replace every character

2004-03-23 Thread juman
Okay thanks :) Here is a code snippet : if ($nr == $quiz_id{"$quizzer"}) { $window->print ("Id answer : $reply", MSGLEVEL_NEVER) if ($window); $exit = 0; } elsif ( '$question' == '$quiz_question{"$quizzer"}' ) { $window->print ("Quiz answer : $re

RE: populating a cgi/perl program with a text file

2004-03-23 Thread Charles K. Clarkson
srebecchi <[EMAIL PROTECTED]> wrote: : : I am working with a couple of program that were in a SAMS : 24 hour book. They create html forms that are used to : enter data and then save the input to a text file. Another : displays a list of the created files for selection and : viewing using html href

RE: Port Status Command in Perl

2004-03-23 Thread McMahon, Chris
There are any number of modules on CPAN that might help you accomplish that, like maybe http://search.cpan.org/~tscanlan/NetworkInfo-Discovery-0.12/lib/NetworkI nfo/Discovery/Scan.pm or it's brethren. Or roll your own with IO::Socket. I recommend search.cpan.org. But dependi

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 11:08 AM, juman wrote: Okey here we go :) I have a text string that can be looking something like this : Language: French -> Swedish: Fille ? And then I have another text that can look just about like anything and I want to compare the two strings. But the symbols > and ? ma

Re: backticks and variable assignment - thanks

2004-03-23 Thread WC -Sx- Jones
[EMAIL PROTECTED] wrote: this does have to run on multiple servers so that is a concern, but all servers are identical in everyway This is where Yoda sez: "So sure are you?" -- _Sx_ http://youve-reached-the.endoftheinternet.org/ _ perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | grep Martian --

Re: backticks and variable assignment - thanks

2004-03-23 Thread jeffrey_n_Dyke
On Mar 23, 2004, at 9:12 AM, [EMAIL PROTECTED] wrote: >> Hello, >> >> I have some code that is using backticks, executing commands on the >> korn >> shell.(if that matters). Most work as expected and i get the output >> of the >> shell command assigned to the variable left of the argument, like

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 10:07 AM, juman wrote: Hmmm this just seems to return 1. Doesn't m/ just meen to match the expression? Yes it does and yes it does. Give me an example of how you were using this data in your script and I'll show you how it relates. ;) James -- To unsubscribe, e-mail: [EMAI

Re: Replace every character

2004-03-23 Thread juman
Hmmm this just seems to return 1. Doesn't m/ just meen to match the expression? /juman On Tue, Mar 23, 2004 at 09:40:42AM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 9:32 AM, juman wrote: > > >Not sure I understand what you say here... > > > >Should I do this then? > > > >$data = "q

RE: $dbh->do('\@proc')

2004-03-23 Thread Jayakumar Rajagopal
Bob, Thanks. Your guess is right. okay, I would run stmt by stmt. thanks, Jay -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 10:55 AM To: Jayakumar Rajagopal; [EMAIL PROTECTED] Subject: RE: $dbh->do('[EMAIL PROTECTED]') Jayakumar Rajag

RE: Locatiing Self-Installed Modules

2004-03-23 Thread Bob Showalter
Ron Goral wrote: > Sorry, not sure what "bottom post" means. It means posting your new material below that which you are responding to, rather than at the top of the message. Lots of folks (me included) find this makes the thread easier to follow. Others disagree. If you use Outlook or Outlook Ex

Re: backticks and variable assignment

2004-03-23 Thread Wiggins d Anconia
> Hello, > > I have some code that is using backticks, executing commands on the korn > shell.(if that matters). Most work as expected and i get the output of the > shell command assigned to the variable left of the argument, like with this > ls command and 'db2 connect' command. > > $is

RE: $dbh->do('\@proc')

2004-03-23 Thread Bob Showalter
Jayakumar Rajagopal wrote: > Hi all, >I have to use PERL to run ".sql" files ( for eg. > runstmts.sql), which I do this way in SQL prompt : > > SQL> @runstmts I'm guessing Oracle sqlplus? > > I tried using $dbh->('[EMAIL PROTECTED]') and $dbh->('start > runstmts.sql')... bu

$dbh->do('\@proc')

2004-03-23 Thread Jayakumar Rajagopal
Hi all, I have to use PERL to run ".sql" files ( for eg. runstmts.sql), which I do this way in SQL prompt : SQL> @runstmts I tried using $dbh->('[EMAIL PROTECTED]') and $dbh->('start runstmts.sql')... but says 'invalid SQL stmt'. please help. thanks, JAy --

Process control from LAN master computer

2004-03-23 Thread Peterson, Darren - Contractor.Westar
I've got a few Linux boxes on a LAN. I need to develop a gui app to start processes on any machine from a master pc. What process is to be started and when will be specifed by the user through the gui. I'm thinking along the lines of a Perl/Tk script that uses the Proc::Background module to invo

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 9:32 AM, juman wrote: Not sure I understand what you say here... Should I do this then? $data = "question?" $newdata = m/\Q$data\E/ I believe you meant: $newdata =~ m/\Q$data\E/; Hope that helps. James Because I couldn't get that to work? /juman On Tue, Mar 23, 2004 at

Re: Replace every character

2004-03-23 Thread juman
Not sure I understand what you say here... Should I do this then? $data = "question?" $newdata = m/\Q$data\E/ Because I couldn't get that to work? /juman On Tue, Mar 23, 2004 at 09:03:15AM -0600, James Edward Gray II wrote: > On Mar 23, 2004, at 8:54 AM, juman wrote: > > >I have a script that

Re: Locatiing Self-Installed Modules

2004-03-23 Thread WC -Sx- Jones
Ron Goral wrote: Sorry, not sure what "bottom post" means. -Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 9:05 AM To: Ron Goral; Perl Beginners Subject: RE: Locatiing Self-Installed Modules Please bottom post... This is called bottom po

Re: backticks and variable assignment

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 9:12 AM, [EMAIL PROTECTED] wrote: Hello, I have some code that is using backticks, executing commands on the korn shell.(if that matters). Most work as expected and i get the output of the shell command assigned to the variable left of the argument, like with this ls comma

RE: Locatiing Self-Installed Modules

2004-03-23 Thread Ron Goral
Sorry, not sure what "bottom post" means. > -Original Message- > From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 23, 2004 9:05 AM > To: Ron Goral; Perl Beginners > Subject: RE: Locatiing Self-Installed Modules > > > Please bottom post... > > > Hmm. Thank you. I d

backticks and variable assignment

2004-03-23 Thread jeffrey_n_Dyke
Hello, I have some code that is using backticks, executing commands on the korn shell.(if that matters). Most work as expected and i get the output of the shell command assigned to the variable left of the argument, like with this ls command and 'db2 connect' command. $is_dump = `ls $root_

RE: Locatiing Self-Installed Modules

2004-03-23 Thread Wiggins d Anconia
Please bottom post... > Hmm. Thank you. I did not make it clear that if this is installed on > another domain, I will not know exactly where the modules are installed, > except that they will be in the cgi-bin. Outside of that, I cannot be > certain of where they are. Hence, I thought, the nee

Re: Replace every character

2004-03-23 Thread James Edward Gray II
On Mar 23, 2004, at 8:54 AM, juman wrote: I have a script that handles some text strings. The textstrings in them self I can't control so they can contain characters as ?:>< etc which makes them hard to check through a regexp. So I want to replace alla characters like this: question? => \q\u\e\s\t

Re: Replace every character

2004-03-23 Thread WC -Sx- Jones
juman wrote: I have a script that handles some text strings. The textstrings in them self I can't control so they can contain characters as ?:>< etc which makes them hard to check through a regexp. So I want to replace alla characters like this: question? => \q\u\e\s\t\i\o\n\? I'll give you a hint:

Replace every character

2004-03-23 Thread juman
I have a script that handles some text strings. The textstrings in them self I can't control so they can contain characters as ?:>< etc which makes them hard to check through a regexp. So I want to replace alla characters like this: question? => \q\u\e\s\t\i\o\n\? Hopefully that would make things

RE: Locatiing Self-Installed Modules

2004-03-23 Thread Ron Goral
Hmm. Thank you. I did not make it clear that if this is installed on another domain, I will not know exactly where the modules are installed, except that they will be in the cgi-bin. Outside of that, I cannot be certain of where they are. Hence, I thought, the need for the functionality of some

Re: Man page for CGI::Request/CGI::Base

2004-03-23 Thread Wiggins d Anconia
> On Mon, 22 Mar 2004 22:54:13 -0800 (PST) > Mike Ni <[EMAIL PROTECTED]> wrote: > > > > > If perldoc CGI::Request or perldoc CGI::Base > > > doesnt tell you anything the only place left > > > is the source code of each. > > Not having either of those modules I tried an install from cpan > > G

Re: Reducing RegEx (pcre)

2004-03-23 Thread WC -Sx- Jones
Jenda Krynicky wrote: sub PolishHTML { my $str = shift; if ($AllowXHTML) { $str =~ http://Jenda.Krynicky.cz/#Jenda.Rex COM object. Hi, thx for the reply :) As always your code leaves me wondering if I will ever learn Perl :) I tested the code and it works great - except I am having troub

Re: Man page for CGI::Request/CGI::Base

2004-03-23 Thread WC -Sx- Jones
Owen wrote: cpan> i /CGI::Base/ Module CGI::Base Module CGI::BasePlus IIRC any module that ends with PLUS is a CPANPlus Only module You need CPANPlus to install it. -- _Sx_ http://youve-reached-the.endoftheinternet.org/ _ perldoc -qa.a | perl -lpe '($_)=m("(.*)")' | gr

RE: Passing file name /filehandle as argument to a subroutine...

2004-03-23 Thread Charles K. Clarkson
urvashi mishra <[EMAIL PROTECTED]> wrote: : : i am trying to take input from multiple files : Various I/P files are specified at command line... : : Can anyone tell me how to pass the file name to a : routine that opens it for parsing : : the same function is to be called for all the

Re: Test::Harness weird failure

2004-03-23 Thread Claude
> "Paul" == Paul Johnson <[EMAIL PROTECTED]> writes: Paul> Claude said: >> Hello, >> >> I tried to create a test suite file containing the following code: >> >> -- clip --- >> #! /usr/local/bin/perl >> >> use strict; >> use Test::Harness qw( &runtests $verbose ); >> $verbose=1; >> m

Re: Reducing RegEx (pcre)

2004-03-23 Thread Jenda Krynicky
From: WC -Sx- Jones <[EMAIL PROTECTED]> > Comments about how to perform these > 5 checks as ONE TEST are welcome - > > /\s+\w+\\w+\s+/ REJECT Invalid HTML Spam vG > /\s+\w+\\w+\s+/ REJECT Invalid HTML Spam vJ > /\s+\w+\\w+\s+/ REJECT Invalid HTML Spam vK > /\s+\w+\\w+\s+/ REJECT Invalid HTML Spam

problem conencting to oracle after upgrading to oracle 9i

2004-03-23 Thread Nilay Puri, Noida
Hi All, On sparc m/c SUN OS 5.8 , I have recently upgraded from Oracle 8i to Oracle 9i. ANd I had DBD:Oracle 1.12 installed on it. Now the perl files give error : DBI->connect(hemdadev) failed: ERROR OCIEnvInit at test.pl line 18 And at line 17 I have : $dbh = DBI->connect("DBI:Oracle:$sid",$u

RE: nested while loops using DBI

2004-03-23 Thread mike
On Mon, 2004-03-22 at 18:04, Guay Jean-SÃbastien wrote: > Hello Mike, > > > $row=$dbh->prepare("SELECT contact_id,first_name,last_name,organisation > > FROM tb_contacts WHERE organisation ILIKE ?"); > > [...] > > > while(($id,$first_name,$last_name,$organisation) = $row->fetchrow_array()) > { >

Passing file name /filehandle as argument to a subroutine...

2004-03-23 Thread urvashi mishra
hi; i am trying to take input from multiple files Various I/P files are specified at command line... Can anyone tell me how to pass the file name to a routine that opens it for parsing the same function is to be called for all the I/P files... Code is: foreach my $file (@ARGV) {

populating a cgi/perl program with a text file

2004-03-23 Thread srebecchi
Hi all: I am working with a couple of program that were in a SAMS 24 hour book. They create html forms that are used to enter data and then save the input to a text file another display a list of the created files for selection and viewing using html herf links. The first program generates a dat