Problems with opening a word doc on similar systems

2003-09-17 Thread sc00170
I am facing a very strange problem while i try opening a word document through my perl program. So far, i use the system() function. system(1, $winword_pathm $word_document); That works well on a win98 system, but it doesn't on another win98 system. Those machines have Office 97. What is the

RE: Conceptual -- Spam stopper script

2003-09-17 Thread Stephen Hardisty
You could try SpamAssassin (www.spamassassin.org). Quite effective rule based blocking. A lot (if not most) Spam emails come from real email addresses, they just don't belong to the guy that sent the email. For the Spammers that use their own email addresses (be it Yahoo or Hotmail etc.), if you

Re: OT: Conceptual -- Spam stopper script

2003-09-17 Thread Jenda Krynicky
From: Jerry Rocteur <[EMAIL PROTECTED]> > I've been analyzing my SPAM by replying to it lately and find that > MOST email addresses where the SPAM originates do not exist.. Nothing > new here.. > > What I'd like to do is to write a script that accesses my pop mail, > gets the From: address, ver

Re: How to secure database password? (was Re: Perl/DBI newbie: password stora...

2003-09-17 Thread Motherofperls
The only solutions I've discovered is: ( for less secure tables) 1. Crypt the password 2. Put it into directory not in the public domain 3. Set the permissions set only for your scripts. ( for more secure tables) 1. I would gather sensitive info last if possible. 2. Do not put the password on

Re: Any Suggestions for Programmer Needing To Know Perl by Tomorrow?

2003-09-17 Thread R. Joseph Newton
Dan Anderson wrote: > My local pointy haired boss decided I should learn Perl over the weekend The whole language, and all its subtleties, or some functional subset. > > -- specifically to interact with databases and use in CGI programming. What is your first Perl task. Focus on the task itsel

Split based on length

2003-09-17 Thread NYIMI Jose (BMB)
Hello, I have a string which i know, it is a concatenation of "fixed length of substring". I would like to split it based on this known length and get as result An array containing each substring. Let say the known length is 2. If the string is 'abcd', my array should be ('ab', 'dc') And if my st

Problems with CPAN

2003-09-17 Thread John Birkhead
Hi, I'm a perl newbie and I'm having problems getting CPAN connecting and downloading on SuSE 8.2. I start with 'perl -MCPAN -e shell' but the urlist is undefined. The default of 'ftp.perl.org' doesn't work. If I 'o conf urlist push ftp://cpan.nas.nasa.gov/pub/perl/CPAN' (or other mirror s

RE: Split based on length

2003-09-17 Thread Stephen Hardisty
Hi, you can use split for this sort of thing. For example: my $string = "hello there"; # add an extra '.' for every character you want my @pairs = split(/(..)/, $string); The only thing you want to be careful about is empty quotes/nothing (e.g. ''). For example, if we wanted to print the charac

RE: Split based on length

2003-09-17 Thread Charles K. Clarkson
NYIMI Jose (BMB) <[EMAIL PROTECTED]> wrote: : : I mean writing : : my @items = unpack('A2 A2', $str); : Will work for $str='abdc'; : Not for $str='abcdef'; : : Any ideas ? use POSIX 'ceil'; my $size = 4; my @items = unpack "A$size" x ceil( (length $string) / $size ), $string; OR: use Data::Du

RE: Problems with CPAN

2003-09-17 Thread Wiggins d'Anconia
On Wed, 17 Sep 2003 07:27:46 -0700, John Birkhead <[EMAIL PROTECTED]> wrote: > Hi, > I'm a perl newbie and I'm having problems getting CPAN connecting > and downloading on SuSE 8.2. I start with 'perl -MCPAN -e shell' but the > urlist is unde

RE: Problems with CPAN

2003-09-17 Thread John Birkhead
Hi, I tried this (unshift) and I still get the problem - see the cut/paste below. However, commiting changes works well. ibm600x:~ # perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.61) ReadLine support enabled cpan> cpan> cpan> o conf urlist urlist

how to "bless" while "strict"?

2003-09-17 Thread sfryer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm working through perlboot right now and have run up against a minor challenge. Unlike the tutorial itself, I'm using "strict" since this is the environment I wish to code in on a day to day basis. Following is example code and the error message it g

Looking for a good OpenSSL/Perl library

2003-09-17 Thread Rajesh Dorairajan
Does anyone know where I can find a good implementation of OpenSSL library on Perl. I tried Massimmilio Pala's OpenCA::OpenSSL and ran into some issues there. Specifically, I am not able to generate a request. Whatever DN string I pass does not seem to be acceptable to the underlying OpenSSL librar

Re: problem with DynaLoader.pm

2003-09-17 Thread Helmut Michels
Fischer Ulrich wrote: > Hi > > I'm new on this List, and perhaps it is the wrong place. > > Here is my problem: > > I upgraded my SuSE Linux from version 7.3 (perl 5.6..) to 8.2. (perl > 5.8.0). > > Now I get the following error: > > Can't load '/sw/bin/dislin/perl/Dislin.so' for module Dislin: >

perl @ mysql

2003-09-17 Thread peter grotz
Hi, I wanna use a mysql-database for our systemuser-management. Adding and showing a list of users is no problem but now my question: How can I handle the appearing mysql-errorcode instead of the "die"-statement when I´m selecting or deleting a nonexisting entry in my database? Thanks in advanc

perl(this) and perl(the)

2003-09-17 Thread Eric Rose
Are these part of CPAN modules or built into Perl itself? I'm trying to install Mysql and it's complaining that perl(this) and perl(the) are missing. I couldn't find anything on Google. Cheers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Split based on length

2003-09-17 Thread Jeff 'japhy' Pinyan
On Sep 17, NYIMI Jose (BMB) said: >Let say the known length is 2. >If the string is 'abcd', my array should be ('ab', 'dc') >And if my string is 'abcdef', my array should be ('ab', 'dc', 'ef'). I'd just use: @groups = $string =~ /../g; # use ... for three, or .{3}, etc. You don't need captur

Re: Split based on length

2003-09-17 Thread Rob Dixon
Nyimi Jose wrote: > > I have a string which i know, it is a concatenation of "fixed > length of substring". I would like to split it based on this > known length and get as result An array containing each > substring. > > Let say the known length is 2. If the string is 'abcd', my array > should be

Re: how to "bless" while "strict"?

2003-09-17 Thread Jeff 'japhy' Pinyan
On Sep 16, sfryer said: >use strict; >bless $talking, Horse; # <<<< this is the source of the problem Quote 'Horse'. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ what does

Re: how to "bless" while "strict"?

2003-09-17 Thread George Schlossnagle
On Tuesday, September 16, 2003, at 09:26 PM, sfryer wrote: So ... what is the correct "strict" way to "bless $talking, Horse"? bless $talking, "Horse"; George -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

portable directory tree searching

2003-09-17 Thread Michael Weber
Been to CPAN enough that I'm seeing crosseyed. What I want to do is to write a program that will return a list of files named *.edi which are found in /*/files_in directory and then process each file one at a time. Now for the kicker. It needs to run now on a Win32 platform, and in a few month

RE: portable directory tree searching

2003-09-17 Thread Wiggins d'Anconia
On Wed, 17 Sep 2003 10:38:08 -0500, "Michael Weber" <[EMAIL PROTECTED]> wrote: > Been to CPAN enough that I'm seeing crosseyed. > > What I want to do is to write a program that will return a list of files named *.edi > which are found in /*/files

RE: Split based on length

2003-09-17 Thread NYIMI Jose (BMB)
Do you see any pitfall if i remove the 'm' on the regexp And use $string =~ /.{1,$len}/g; instead ? I have tried without the 'm', it works as well :-) Thanks to all of you by the way... José. -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 20

RE: perl @ mysql

2003-09-17 Thread Dan Muey
> Hi, Howdy > > I wanna use a mysql-database for our systemuser-management. > Adding and showing a list of users is no problem but now my question: > > How can I handle the appearing mysql-errorcode instead of the > "die"-statement when I´m selecting or deleting a nonexisting Assuming I und

RE: Problems with CPAN

2003-09-17 Thread Wiggins d'Anconia
On Wed, 17 Sep 2003 08:16:22 -0700, John Birkhead <[EMAIL PROTECTED]> wrote: > Hi, > I tried this (unshift) and I still get the problem - see the > cut/paste below. However, commiting changes works well. > > > ibm600x:~ # perl -MCPAN -e she

RE: perl @ mysql

2003-09-17 Thread Wiggins d'Anconia
On Wed, 17 Sep 2003 09:48:31 +0200, peter grotz <[EMAIL PROTECTED]> wrote: > Hi, > > I wanna use a mysql-database for our systemuser-management. > Adding and showing a list of users is no problem but now my question: > > How can I handle the appe

Re: Split based on length

2003-09-17 Thread Jeff 'japhy' Pinyan
On Sep 17, Jeff 'japhy' Pinyan said: >On Sep 17, NYIMI Jose (BMB) said: > >>Let say the known length is 2. >>If the string is 'abcd', my array should be ('ab', 'dc') >>And if my string is 'abcdef', my array should be ('ab', 'dc', 'ef'). > >I'd just use: > > @groups = $string =~ /../g; # use ...

Re: Split based on length

2003-09-17 Thread John W. Krahn
Nyimi Jose wrote: > > Do you see any pitfall if i remove the 'm' on the regexp > And use $string =~ /.{1,$len}/g; instead ? > > I have tried without the 'm', it works as well :-) If you use // to delimit the regular expression then the 'm' is not required. In other words, m// and // are exactly

Re: portable directory tree searching

2003-09-17 Thread John W. Krahn
Michael Weber wrote: > > Been to CPAN enough that I'm seeing crosseyed. > > What I want to do is to write a program that will return a list of > files named *.edi which are found in /*/files_in > directory and then process each file one at a time. > > Now for the kicker. It needs to run now on

RE: perl @ mysql

2003-09-17 Thread Dan Anderson
Do you mean that you set a debug bool at the beginning of the file and if (main::$debug) { spit_out_error(); } or you just don't output errors at all? Doesn't that make debugging much harder? -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Split based on length

2003-09-17 Thread Dan Muey
> Hi, Howdy > you can use split for this sort of thing. For example: > > my $string = "hello there"; > > # add an extra '.' for every character you want > my @pairs = split(/(..)/, $string); > > The only thing you want to be careful about is empty > quotes/nothing (e.g. ''). For example, if w

RE: perl @ mysql

2003-09-17 Thread Wiggins d'Anconia
On Wed, 17 Sep 2003 12:49:28 -0400, Dan Anderson <[EMAIL PROTECTED]> wrote: > Do you mean that you set a debug bool at the beginning of the file and > if (main::$debug) { spit_out_error(); } or you just don't output errors > at all? Doesn't that m

Re: Conceptual -- Spam stopper script

2003-09-17 Thread Jerry Rocteur
Thanks Guys... Perhaps one day the SMTP protocol will be rewritten to perform checks on the sender, perhaps one day . Thanks for all your thoughts.. Jerry On Wednesday, Sep 17, 2003, at 11:58 Europe/Brussels, zsdc wrote: Hanson, Rob wrote: You will probably run into a few issues. First

Re: Conceptual -- Spam stopper script

2003-09-17 Thread zsdc
Hanson, Rob wrote: You will probably run into a few issues. First you need to fetch the MX record for the domain before you can even connect. After that you could use the SMTP verify user command to see if the user exists, ...or just use Email::Valid module. but I think you might find that man

Cross-site scripting (was Re: )

2003-09-17 Thread zsdc
Chuck Fox wrote: Sometimes "dumb users" can be quite creative: http://www.patrick.fm/boobies/boobies.php?text=VeriSign%3E";>I Love VeriSign [...] > No matter how foolproof you make, the fools keep getting smarter. > > Chuck That's not entirely true. As this examples shows, VeriSign programmers

Re: or operator

2003-09-17 Thread zsdc
Nigel Peck - MIS Web Design wrote: Sorry for the delay in responding. The Perl 6 format is what I was thinking, just have to wait for that :) For more info about Perl 6 syntax, see http://dev.perl.org/ Quantum::Superpositions sounds pretty cool. It's very cool. Every scalar can be in superpositi

Re: Conceptual -- Spam stopper script

2003-09-17 Thread zsdc
zsdc wrote: Hanson, Rob wrote: You will probably run into a few issues. First you need to fetch the MX record for the domain before you can even connect. After that you could use the SMTP verify user command to see if the user exists, ...or just use Email::Valid module. Sorry, I meant Mail::

Re: Conceptual -- Spam stopper script

2003-09-17 Thread Dan Anderson
> Perhaps one day the SMTP protocol will be rewritten to perform checks > on the sender, perhaps one day . You know it is interesting to think about what would be more efficient (resource wise): current SMTP or SMTP with back checking. Because you would use resources by checking addresses (a

Re: portable directory tree searching

2003-09-17 Thread Rob Dixon
John W. Krahn wrote: > > Michael Weber wrote: > > > > Been to CPAN enough that I'm seeing crosseyed. > > > > What I want to do is to write a program that will return a list of > > files named *.edi which are found in /*/files_in > > directory and then process each file one at a time. > > > > Now f

Re: Problems with CPAN

2003-09-17 Thread Todd W.
"John Birkhead" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I'm a perl newbie and I'm having problems getting CPAN connecting > and downloading on SuSE 8.2. I start with 'perl -MCPAN -e shell' but the > urlist is undefined. The default of 'ftp.perl.org' doesn't work. > > If

Re: perl @ mysql

2003-09-17 Thread Todd W.
"Wiggins D'Anconia" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > On Wed, 17 Sep 2003 12:49:28 -0400, Dan Anderson <[EMAIL PROTECTED]> wrote: > > > Do you mean that you set a debug bool at the beginning of the file and > > if (ma

Apache 1.3 config problem

2003-09-17 Thread Devin B. Hedge
Greetings all! I am having a problem with my Apache config in order to run perl scripts (*.pl) outside of the cgi-bin directory in a vHost arrangement. I have root on the box. Perl is corrrectly cofigured and working on the box. I have several Perl sistes running scripts out of cgi-bin. Here is my

Re: Split based on length

2003-09-17 Thread Stephen Hardisty
> for(split(/(..)/, $string)) { print "*$_" if $_; } Gorgeous :o) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Apache 1.3 config problem

2003-09-17 Thread Robert J Taylor
- Original Message - From: "Devin B. Hedge" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 2:32 PM Subject: Apache 1.3 config problem > Greetings all! > > I am having a problem with my Apache config in order to run perl scripts > (*.pl) outside of the cgi

help on installing GD and libpng

2003-09-17 Thread Yi Chu
I want to install GD, and libpng is pre-requisite. I did install zlib. In installing libpng, I copied the scripts/makefile.gcc following INSTALL instruction. Problem is that when I do 'make', it tells me that "make: Nothing to be done for `all'." Wonder anyone else encountered such problem and

Re: How to secure database password? (was Re: Perl/DBI newbie: password storage / security question)

2003-09-17 Thread Dan Anderson
I think you're complicating an already quite simple thing. 1. Most major databases support permissions. Use these liberally to seperate those who only need access to the database to view contents on a single table and those who should be able to alter one table or one database and ONLY that tabl

Re: How to secure database password? (was Re: Perl/DBI newbie: password storage / security question)

2003-09-17 Thread Chuck Fox
Zedgar, You are chasing the yourself into circles. Security is dictated by circumstances and resources available. In our case, we had plenty of both and developed for our needs the "best" solution. Insofar as the storing of the password for the login that is used to get the password, we too

How to secure database password? (was Re: Perl/DBI newbie: password storage / security question)

2003-09-17 Thread zedgar
Hello, Many thanks to R. Joseph Newton, Motherofperls, essential quint and Chuck Fox for answering my questions, however it is still not what I was asking about. My previous posts were long and maybe unclear so I'll try to get straight to the point this time, adding more details at the bottom o

Re: Problems with CPAN

2003-09-17 Thread Hari Fajri
Edit CPAN configuration. (do not forget to back up) For example: edit file: /usr/lib/perl5/5.6.0/CPAN/Config.pm and change the statement: 'urllist' => [q[bla .. bla.. bla..]]

Two dimensional associative arrays?

2003-09-17 Thread Airman
Is there any special way to do row/col (two dimensional) based associative arrays? Something like: $array{1.1}="line one column one"; $array{1.2}="line one column two"; or @names(Bob,John,Jeff); @info=(Age,Zip,Phone); $data{Bob.Age}=23; foreach $entry (@names) { print "$data{$entry.Age}\n";

Re: Two dimensional associative arrays?

2003-09-17 Thread David Wall
--On Wednesday, September 17, 2003 7:52 PM -0700 Airman <[EMAIL PROTECTED]> wrote: Is there any special way to do row/col (two dimensional) based associative arrays? Something like: $array{1.1}="line one column one"; $array{1.2}="line one column two"; Close. You need a hash of (references to) h