Re: DBI and mySQL problems

2003-09-10 Thread Thanatos
Thanatos wrote: Gavin Laking wrote: Hi, First, sorry for the wrap on the lines below, and my apologies if this message has been seen already- I appear to be having problems sending to nntp.perl.org (I didn't realise you had to be subscribed to [EMAIL PROTECTED] to send). I am trying to insert so

Re: DBI and mySQL problems

2003-09-10 Thread Thanatos
Gavin Laking wrote: Hi, First, sorry for the wrap on the lines below, and my apologies if this message has been seen already- I appear to be having problems sending to nntp.perl.org (I didn't realise you had to be subscribed to [EMAIL PROTECTED] to send). I am trying to insert some values into a

Re: Replacing variable data between fields

2003-09-10 Thread R. Joseph Newton
James Edward Gray II wrote: > ... > > Address:2933HummingbirdSt.City:GrotonState > > :CT > > Address:4321SparrowAve.City:GrotonState: > b>CT > > . . . > > > > What I want to do is get all of the data between Address: and City: and > > strip the and replace with spaces. The only problem is that

DBI and mySQL problems

2003-09-10 Thread Gavin Laking
Hi, First, sorry for the wrap on the lines below, and my apologies if this message has been seen already- I appear to be having problems sending to nntp.perl.org (I didn't realise you had to be subscribed to [EMAIL PROTECTED] to send). I am trying to insert some values into a mySQL database, all

VCS module

2003-09-10 Thread denis
Anyone have a script written to allow cvs checkouts via the VCS module? I downloaded and installed it, but I cant figure out how to do checkouts.. Thanks Denis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Modules Question

2003-09-10 Thread James Edward Gray II
On Wednesday, September 10, 2003, at 05:43 PM, Hanson, Rob wrote: I googles Julian and came up with two email addresses from this page: http://www.monkey.org/openbsd/archive/misc/9904/msg00077.html Thank you. I have no idea why, but it never occurred to me to Google for a person, though it seem

RE: Modules Question

2003-09-10 Thread Hanson, Rob
I googles Julian and came up with two email addresses from this page: http://www.monkey.org/openbsd/archive/misc/9904/msg00077.html If that fails I'm not sure. The FAQ on CPAN doesn't help much with this specific case since the mails are bouncing: http://www.cpan.org/misc/cpan-faq.html#How_mainta

Modules Question

2003-09-10 Thread James Edward Gray II
I use Text::Bastardize off of the CPAN from time to time. I find it mildly amusing, if not terribly practical. However, today when I was working with it, I basically fed it some text that overwhelmed it. What I fed it really wasn't too crazy, so I took a look under the hood. While I was in t

Re: ? about this NG speed.

2003-09-10 Thread Todd Wade
"Dennis G. Wicks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > On Wed, 10 Sep 2003, Ramprasad A Padmanabhan wrote: > > > Date: Wed, 10 Sep 2003 14:02:07 +0530 > > From: Ramprasad A Padmanabhan <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > > Cc: 'Rodney Wis

RE: CUt first and last line from a file (DATA)

2003-09-10 Thread Paul Kraus
Not tested While (){ my @record = split /\|/; next unless ($record[6]); # go to next line if all 7 fields are not populated . } Unless I am misunderstanding what you are trying to do that should work. I don't get why you would want to skip the first and second lines

CUt first and last line from a file (DATA)

2003-09-10 Thread LoneWolf
GARNOR|09/10/03 GARNOR|141023|BUDDY|Y54321|[EMAIL PROTECTED]|Y|Y GARNOR|141033|BUDD|Y5432|[EMAIL PROTECTED]|Y|Y GARNOR|141043|BUD|Y5432|[EMAIL PROTECTED]|Y|Y GARNOR|141053|BU|Y54|[EMAIL PROTECTED]|Y|Y -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

RE: CUt first and last line from a file

2003-09-10 Thread Paul Kraus
Can you send a sample of the data that you are parsing? -Original Message- From: LoneWolf [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 4:42 PM To: [EMAIL PROTECTED] Subject: CUt first and last line from a file I'm parsing every file in a directory, cutting whitespace ou

CUt first and last line from a file

2003-09-10 Thread LoneWolf
I'm parsing every file in a directory, cutting whitespace out (per a previous request) and so far it is working great, but I have come across a couple of things: 1. I either need to cut the first and last line of each file or 2. I need to skip the line if one of the fields is empty. I have tried

perl environment setup

2003-09-10 Thread Wayne Mulhair
Hi All, Can somebody point me to a good guide that is geared toward setting up perl? I'm not a perl programmer per se, but I do have to troubleshoot the occasional perl environment problem. Thanks Wayne -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

RE: [:^class:] question

2003-09-10 Thread Dan Muey
> Dan Muey wrote: > > > > Howdy, > > Hello, > > > perldoc perlre on 5.8.0 says that [:ascii:] should match any ascii > > character and [:^ascii:] is the negate version. > > > > If I do =~m/[:^ascii:]/ or [:ascii:] on astring that is 'hi' it > > That character class matches the characters 'a',

Re: PERL code execution rule?

2003-09-10 Thread david
John W. Krahn wrote: [snip] >> >> example of my Subroutine declarations: >> >> # Get the Data Number >> &get_number; >> >> # Get Form Information >> &parse_form; >> [snip] > > You are running the subroutines. These are all equivalent (note that > the third example only works if the sub ha

Re: [:^class:] question

2003-09-10 Thread John W. Krahn
Dan Muey wrote: > > Howdy, Hello, > perldoc perlre on 5.8.0 says that [:ascii:] should match any ascii > character and [:^ascii:] is the negate version. > > If I do =~m/[:^ascii:]/ or [:ascii:] on astring that is 'hi' it That character class matches the characters 'a', 'c', 'i', 's', ':' or '^

[:^class:] question

2003-09-10 Thread Dan Muey
Howdy, perldoc perlre on 5.8.0 says that [:ascii:] should match any ascii character and [:^ascii:] is the negate version. If I do =~m/[:^ascii:]/ or [:ascii:] on astring that is 'hi' it returns true each way, so I believe it says the [] are part of [::] conbstruct which I think means you have

RE: Module install

2003-09-10 Thread Wiggins d'Anconia
For those that prefer CPAN, you can mimc the behavior Rob describes by setting the 'makepl_arg' switch when configuring, or if you have already configured, you can set it using the 'o conf' options For instance: o conf makepl_arg "PREFIX=/path/to/lib LIB=/path/to/lib" (temporary) o conf com

RE: Module install

2003-09-10 Thread denis
Thanks Rob.. Denis On Wed, 10 Sep 2003, Hanson, Rob wrote: > Sure. > > Use this when running Makefile.PL. > > perl Makefile.PL LIB=~/myhomelib PREFIX=~/myhomelib > > This will install the modules to ~/myhomelib. To use the modules in a > script you can either "use lib '/myhomepath/myhomelib'

RE: Module install

2003-09-10 Thread Hanson, Rob
Sure. Use this when running Makefile.PL. perl Makefile.PL LIB=~/myhomelib PREFIX=~/myhomelib This will install the modules to ~/myhomelib. To use the modules in a script you can either "use lib '/myhomepath/myhomelib'" (note the full path, no ~). Or you can set the environment var PERL5LIB to

Module install

2003-09-10 Thread denis
Anyone know if your able to install modules in the users local home directory? I'm running on a system that I'm not able to install modules system wide. Thanks Denis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: install modules in winXP

2003-09-10 Thread Bakken, Luke
> >Hello, > > > >When I try to install modules from CPAN to my Window XP > followed by perl > >Makefile.PL nmake nmake test nmake install > > > >Most time installation is OK, but sometime I get following > message after > > > >"nmake": > > > >'cl' is not recognized as an internal or external comm

Re: File::Find Laments

2003-09-10 Thread Rob Dixon
Stephen wrote: > > Rob Dixon wrote: > > > > In essence, what File::Find does is > > > > - Read a file directory > > > > - If 'postprocess' is specified then the subroutine is called with > > the list of files as parameters. The subroutine must then return > > a list of those files it is interes

RE: install modules in winXP

2003-09-10 Thread Shiping Wang
Hi Paul, Thanks for your info. Normally I do install a module from ppm. If the module I can't find, I go to: perl -MCPAN -e CPAN::shell -> install x. Sometime I get problem list in below. I tried to add CPAN site to ppm repository then do installation without success - rep add CPAN http://s

Re: Replacing variable data between fields

2003-09-10 Thread James Edward Gray II
On Wednesday, September 10, 2003, at 09:20 AM, Jeff 'japhy' Pinyan wrote: On Sep 10, James Edward Gray II said: tr/\t/ /; s/(^| )([A-Za-z]+:) / length($1) ? "\t$2\t" : "$2\t" /eg; This does work on all the sample lines you provided. I'd remove the length() call, and just see if $1 is true (" ")

Re: File::Find Laments

2003-09-10 Thread Jeff 'japhy' Pinyan
On Sep 10, Stephen said: >> find( { >> wanted => \&wanted, >> preprocess = \&preprocess, >> postprocess = \&postprocess, >> }, 'C:/SomeFolder'); > >Starting to make sense. Just a small question, though. The use of \& >before the sub name -- my understanding is that the "\" charac

Re: Replacing variable data between fields

2003-09-10 Thread Jeff 'japhy' Pinyan
On Sep 10, James Edward Gray II said: >tr/\t/ /; >s/(^| )([A-Za-z]+:) / length($1) ? "\t$2\t" : "$2\t" /eg; > >This does work on all the sample lines you provided. I'd remove the length() call, and just see if $1 is true (" ") or false (""). -- Jeff "japhy" Pinyan [EMAIL PROTECTED] ht

Re: File::Find Laments

2003-09-10 Thread Stephen
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote > > John W. Krahn wrote: > > > > Stephen wrote: > > > > > 4. Maybe I'm restating the above question, but in addition to the > > > &wanted sub, File::find accommodates process, etc., as well. When/how > > > can these are typically used? > > > > Sorr

Re: Replacing variable data between fields

2003-09-10 Thread James Edward Gray II
On Wednesday, September 10, 2003, at 12:52 AM, Alejandro Chavarria - CyPage wrote: James, If you ask the whole list your questions, you probably won't have to wait until I wake up to get an answer. ;) Why is the "tr/\t/ /;" substitution better than just using s///g;? Thanks Transliterate do

Re: Replacing variable data between fields

2003-09-10 Thread James Edward Gray II
On Tuesday, September 9, 2003, at 11:19 PM, perlwannabe wrote: On Tuesday, September 9, 2003, at 08:58 PM, perlwannabe wrote: I know it involves using the s/// operator to both strip the tabs and replace with but the problem is that it requires using an array for each address...and that is w

RE: ? about this NG speed.

2003-09-10 Thread Paul Kraus
You are misreading this then. I have no problem with the list. I get messages immediately as well. We where talking about the performance of the nntp servers and viewing/sending via nntp not POP/SMTP. PK -Original Message- From: Dennis G. Wicks [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: ? about this NG speed.

2003-09-10 Thread Dennis G. Wicks
On Wed, 10 Sep 2003, Ramprasad A Padmanabhan wrote: > Date: Wed, 10 Sep 2003 14:02:07 +0530 > From: Ramprasad A Padmanabhan <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > Cc: 'Rodney Wise' <[EMAIL PROTECTED]> > Subject: Re: ? about this NG speed. > > Paul Kraus wrote: > > Don't

RE: PERL code execution rule?

2003-09-10 Thread Bob Showalter
R. Joseph Newton wrote: > James Edward Gray II wrote: > > > Almost. You have to declare them before you use them if you want > > to leave of the parenthesis. :) > > > > James > > Actually, it is vice-versa. Actually, James is correct. Quoting from perldoc perlsyn: Declaring a subroutine

RE: ? about this NG speed.

2003-09-10 Thread Paul Kraus
I used nntp.perl.org. I am very familiar with ng and use them for everything except this list. I have not be able to get to this list from my news server which is why I used nntp.perl.org. I was always at least 6 hours behind what I was getting on the list. So if you know something that I don't Th

Re: Help on processinf Date String.

2003-09-10 Thread Janek Schleicher
Pandey Rajeev-A19514 wrote at Wed, 10 Sep 2003 11:56:01 +0530: > I have to start with input as date string which I need to process. > $date1 = "Wed Sep 10 15:51:50 CST 2003"; > $date2 = "15:52:00.885 cst Wed Sep 10 2003"; Here's a complete example working with Date::Manip. use Date::Manip; my $

Re: File::Find Laments

2003-09-10 Thread Rob Dixon
John W. Krahn wrote: > > Stephen wrote: > > > 4. Maybe I'm restating the above question, but in addition to the > > &wanted sub, File::find accommodates process, etc., as well. When/how > > can these are typically used? > > Sorry, I've never used them. You can specify 'preprocess' and 'postproce

Re: ? about this NG speed.

2003-09-10 Thread Ramprasad A Padmanabhan
Paul Kraus wrote: Don't waste your time. I tried to use the ng for a month and it was simply unusable unless you don't mind being 4 to 12 hours behind which basically means you can't help anyone and you better not be pressed for help yourself. Aw Cmon Did you try usenet at nntp.perl.org. If you are

Re: Help on processinf Date String.

2003-09-10 Thread Ramprasad A Padmanabhan
Pandey Rajeev-A19514 wrote: Hi , I have to start with input as date string which I need to process. $date1 = "Wed Sep 10 15:51:50 CST 2003"; $date2 = "15:52:00.885 cst Wed Sep 10 2003"; I have to find the difference in between the two dates. Which is the best module to do that and probably a sampl