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
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
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
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.
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
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"
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
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
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
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
>
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
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
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
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 " "
> >
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
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
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
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
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
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
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
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
--- "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 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
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
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
26 matches
Mail list logo