Re: help with perl, openbsd and postgres [SOLVED]

2003-02-15 Thread Mailing lists
Thanks - it is actually what i have done and it works fine! It's a bit tricky, but it doesn't matter, as long as it works! Gabriele. At 09.00 15/02/2003 +, David Nicely wrote: Mailing lists wrote: Dear sirs i need to drive a postgres database using a perl script. I also have to tell you t

Spamassassin & HTML::Parser

2003-02-15 Thread Tom Beer
Hi, I try to get Spamassassin running. Either under 5.005 nor 5.6.1 it seems to work. [root@milestone bin]# uname -sr FreeBSD 4.7-STABLE [root@milestone bin]# perl -v This is perl, version 5.005_03 built for i386-freebsd [root@milestone bin]# pkg_tree p5-Mail-SpamAssassin-2.44 p5-Mail-S

Re: crypt() unix function, what about windows cryption? .htpasswd file

2003-02-15 Thread zentara
On Fri, 14 Feb 2003 11:17:48 -0800 (PST), [EMAIL PROTECTED] (Patricia Hinman) wrote: >I don't want to hide the main source code. Only >encrypt the password on the client side. I could do >that with a js program. Then my pl file could unwind >the script. This is to keep people from viewing the

recursive edit tweaks

2003-02-15 Thread ktb
The program below works as intended. It recursively searches directories and changes any instances of "spike.domain" to "spike.lib.domain" without making a backup (I will already have the directory backed up). There are two things I would like to have the program do that I'm having trouble with.

RE: recursive edit tweaks

2003-02-15 Thread Wagner, David --- Senior Programmer Analyst --- WGO
ktb wrote: > The program below works as intended. It recursively searches > directories and changes any instances of "spike.domain" to > "spike.lib.domain" without making a backup (I will already have the > directory backed up). There are two things I would like to have the > program do that I'm

writing a script

2003-02-15 Thread dakenah johnson
Hi, I am trying to write a script that reads names fron standard input and matches it to a key in a given table and prints out the name and key Enter a first name or " ", to exit chomp { $name = }; while $name ne " " if $name is in @given_table then print "$name maps to $value in given_table"

Re: recursive edit tweaks

2003-02-15 Thread Wiggins d'Anconia
Wagner, David --- Senior Programmer Analyst --- WGO wrote: ktb wrote: But while you are running the script $0 will always be true. Also from my testing the name in $0 shows the full pathname while what comes out of File::Find is in reference to where you started the processing. So you mig

Re: writing a script

2003-02-15 Thread Wiggins d'Anconia
dakenah johnson wrote: Hi, I am trying to write a script that reads names fron standard input and matches it to a key in a given table and prints out the name and key Enter a first name or " ", to exit chomp { $name = }; while $name ne " " if $name is in @given_table then print "$name maps

Re: crypt() unix function, what about windows cryption? .htpasswd file

2003-02-15 Thread R. Joseph Newton
Patricia Hinman wrote: > OOPS mistake corrected > > I did stumble across a method call to a cryption() > ---wrong crypt() is the method -- > > I have just discovered it is a unix function. It > doesn't decrypt. One must always crypt user input then > check for equality. > if (crypt ($gu

Re: crypt() unix function, what about windows cryption? .htpasswd file

2003-02-15 Thread R. Joseph Newton
Patricia Hinman wrote: > > There are measures that can be taken to make it > > harder for someone to get the source, but there is > > no way to prevent it. There is also little reason > > to, that I can see, most things that are done with > > javascript are relatively simple anyways, and since >

Re: copying a file without using module File::Copy

2003-02-15 Thread R. Joseph Newton
Michael Pastore wrote: > Tim/Rob/All, > > Being a Perl nubieand not having alot of experience in installing and > using Perl modules...I decided to go the route of using the system > function.. > > I took a look at CPAN and what was involved in installing the module and > using it (was confuse

Re: How to get a value from a Select (HTML Tag) and use it in Perl

2003-02-15 Thread R. Joseph Newton
Lance wrote: > Remember that the perl is being run server-side. It won't be able to read > form values on the same page ( unlike JavaScript ). You have to submit to a > cgi script, which can then read the various form values. > > "Guy P" <[EMAIL PROTECTED]> wrote in message True, but the client

Re: recursive edit tweaks

2003-02-15 Thread John W. Krahn
Ktb wrote: > > The program below works as intended. It recursively searches > directories and changes any instances of "spike.domain" to > "spike.lib.domain" without making a backup (I will already have the > directory backed up). There are two things I would like to have the > program do that I

Re: writing a script

2003-02-15 Thread John W. Krahn
Wiggins D'Anconia wrote: > > dakenah johnson wrote: > > > > I am trying to write a script that reads names fron standard input and > > matches it to a key in a given table and prints out the name and key > > > > Enter a first name or " ", to exit > > chomp { $name = }; > > while $name ne " " > >

writing a script

2003-02-15 Thread brady jacksan
Hi I am writing a script that reads file from command line and places each line from the files into an array, and prints out the total lines read and then each line read. while (defined ($files = <>)) { chomp; print "Total lines in the files:@files\." print "@files\n" why do kee

Re: writing a script

2003-02-15 Thread Wiggins d'Anconia
brady jacksan wrote: Hi I am writing a script that reads file from command line and places each line from the files into an array, and prints out the total lines read and then each line read. while (defined ($files = <>)) { chomp; print "Total lines in the files:@files\." prin

Re: writing a script

2003-02-15 Thread Wiggins d'Anconia
Wiggins d'Anconia wrote: brady jacksan wrote: Hi I am writing a script that reads file from command line and places each line from the files into an array, and prints out the total lines read and then each line read. while (defined ($files = <>)) { chomp; print "Total lines in

Re: writing a script

2003-02-15 Thread ktb
On Sat, Feb 15, 2003 at 01:03:50PM -0800, brady jacksan wrote: > Hi > > I am writing a script that reads file from command line and places > each line from the files into an array, and prints out the total lines > read and then > each line read. > > while (defined ($files = <>)) { > ch

Re: writing a script

2003-02-15 Thread John W. Krahn
Brady Jacksan wrote: > > Hi Hello, > I am writing a script that reads file from command line and places > each line from the files into an array, and prints out the total lines > read and then > each line read. > > while (defined ($files = <>)) { ^^^^ Unless y

Re: recursive edit tweaks

2003-02-15 Thread ktb
On Sat, Feb 15, 2003 at 12:33:15PM -0800, John W. Krahn wrote: > Ktb wrote: > > > > The program below works as intended. It recursively searches > > directories and changes any instances of "spike.domain" to > > "spike.lib.domain" without making a backup (I will already have the > > directory bac

Re: recursive edit tweaks

2003-02-15 Thread John W. Krahn
Ktb wrote: > > Thanks for laying out the following code John. I've learned a few new > tricks for my bag:) There are a couple things I'm confused about. > > 1) I've read about "return" but am still trying to wrap my mind around it. >I understand the two return statements skip if it comes ac

Re: writing a script

2003-02-15 Thread Paul
Another excellent tool (if you don't mind a tron of output) is use diagnostics -verbose; enable diagnostics; Paul --- ktb <[EMAIL PROTECTED]> wrote: > On Sat, Feb 15, 2003 at 01:03:50PM -0800, brady jacksan wrote: > > Hi > > > > I am writing a script that reads file from command line and

Re: REPACE CHARS

2003-02-15 Thread Paul
--- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > Paul wrote: > > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > > Why are you replying to me instead of the OP? :-) lol -- oops. Must've hit "Reply" instead of "Reply All". General apologies all 'round. :) > > > How can y give s sbstition order

How to get the script line number on demand

2003-02-15 Thread Harry Putnam
How does one print the line number of the script as it executes. Something like what the PS4 shell var does if you set it to: PS4='$LINENO' Then when running a shell script with -x flag you see script line numbers as it runs. I'd like to stick these into code at times to help debug print "mydb

Re: How to get the script line number on demand

2003-02-15 Thread John W. Krahn
Harry Putnam wrote: > > How does one print the line number of the script as it executes. > > Something like what the PS4 shell var does if you set it to: > > PS4='$LINENO' > Then when running a shell script with -x flag you see script line > numbers as it runs. > > I'd like to stick these into

problem executing perl script

2003-02-15 Thread John Lin
Hi list, I have written a perl CGI script that basically executes a system command via an open command like so: open (COMHANDLE, '/usr/local/bin/gpg --no-tty --list-keys |') or die "can not list keys \n"; print ; close (COMHANDLE) or die "can not close COMHANDLE \n"; For some reason, if I run