Re: errror while installing DBD::MYSQL.

2007-11-13 Thread Dr.Ruud
Gunnar Hjalmarsson schreef: > Tom Phoenix: >> Generally, top-posting is preferred in public forums. > > s/top-posting/bottom-posting/ http://en.wikipedia.org/wiki/Top-posting#Inline_replying -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Regex to remove zeros after . in file name

2007-11-13 Thread Dr.Ruud
Gunnar Hjalmarsson schreef: > 1. Why is rewriting so bad? Personally I need to look up those > extended patterns, and letting the s/// operator rewrite a single dot > is easier to read IMO. That is exactly why I suggested that the 5.10.x regex-optimiser should take care of that. But only if it pa

Re: Regex

2007-11-13 Thread Dr.Ruud
Tom Phoenix schreef: > Dr.Ruud: >> Gunnar Hjalmarsson: >>> Are you saying that \d is no longer equivalent to [0-9]? >>> If so, which digits does \d match besides [0-9]? >> >> perl -wle'print "\x666"=~/\d/' > > perl -wle'print "\x666"=~/[0-9]/' > > They both match; it seems they're just matchi

Re: errror while installing DBD::MYSQL.

2007-11-13 Thread Gunnar Hjalmarsson
Tom Phoenix wrote: Generally, top-posting is preferred in public forums. s/top-posting/bottom-posting/ -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org

Re: Regex

2007-11-13 Thread Tom Phoenix
On 11/13/07, Dr.Ruud <[EMAIL PROTECTED]> wrote: > Gunnar Hjalmarsson schreef: > > > Are you saying that \d is no longer equivalent to [0-9]? > > If so, which digits does \d match besides [0-9]? > > perl -wle'print "\x666"=~/\d/' perl -wle'print "\x666"=~/[0-9]/' They both match; it seems they'r

Re: errror while installing DBD::MYSQL.

2007-11-13 Thread John W . Krahn
On Tuesday 13 November 2007 14:53, Tom Phoenix wrote: > > Generally, top-posting is preferred in public forums. It is? That's news to me! :-( John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.p

Re: Regex

2007-11-13 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On Nov 13, 2007 12:18 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: Chas. Owens wrote: On Nov 13, 2007 10:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: snip I believe you want /\d[a-z]{2}/i. snip Oops, I didn't pay attention to my own warning about \d, I should have sa

Re: errror while installing DBD::MYSQL.

2007-11-13 Thread Tom Phoenix
On 11/12/07, Siva Prasad <[EMAIL PROTECTED]> wrote: > I am still stuck up with the below problem. Generally, top-posting is preferred in public forums. Begin by quoting the minimum, relevant, context; follow with whatever is new. > Please help me in intalling DBD::mysql on WinXP Have you ever b

Re: Regex to remove zeros after . in file name

2007-11-13 Thread Gunnar Hjalmarsson
Dr.Ruud wrote: Gunnar Hjalmarsson schreef: danlamb: I need a regex to remove zeros after the . in a file name if they are followed by another digit. Example: XX.001 becomes XX.1 s/\.0+(?=[1-9])/./; That rewrites the dot, and won't handle ".000". I would write it like s

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-13 Thread John W . Krahn
On Tuesday 13 November 2007 13:15, [EMAIL PROTECTED] wrote: > On Nov 13, 9:13 am, [EMAIL PROTECTED] (Randal L. Schwartz) wrote: > > > long disclaimer> So, you have a one line question, and 15 lines of > > disclaimer > > Oh, no, Randal, you didn't READ it, did you? Surely you are not > specificall

Re: subtracting parsed GMT(zulu) time from perl GMT time

2007-11-13 Thread Dr.Ruud
"Tom Phoenix" schreef: > shadkeene: >> The problem is that when I parse the valid time, I just have a number >> like 0030, so if Perl's valid time is 2330, it would be an absolute >> difference of 2300 according to the math but only an hour difference >> in time. Is there a function to subtract z

Re: Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-13 Thread usenet
On Nov 13, 9:13 am, [EMAIL PROTECTED] (Randal L. Schwartz) wrote: > disclaimer> > So, you have a one line question, and 15 lines of disclaimer Oh, no, Randal, you didn't READ it, did you? Surely you are not specifically the "intended recipient" of the message, so you are "strictly prohibited" fr

Re: Regex to remove zeros after . in file name

2007-11-13 Thread Dr.Ruud
Gunnar Hjalmarsson schreef: > danlamb: >> I need a regex to remove zeros after the . in a file name if they are >> followed by another digit. >> >> Example: XX.001 becomes XX.1 > > s/\.0+(?=[1-9])/./; That rewrites the dot, and won't handle ".000". I would write it like s/(?

Re: Hash dereferencing problem

2007-11-13 Thread John W . Krahn
On Tuesday 13 November 2007 12:02, Chas. Owens wrote: > On Nov 13, 2007 12:55 PM, <[EMAIL PROTECTED]> wrote: > > > > my %napMD_ProgressCode = ( > > snip > > > drawInputRowControlled('napMD_ProgressCode'); > > snip > > That is because you are passing a scalar containing the string > "napMD_Progress

Re: Hash dereferencing problem

2007-11-13 Thread John W . Krahn
On Tuesday 13 November 2007 09:55, [EMAIL PROTECTED] wrote: > Folks, Hello, > I am having a problem dereferencing a hash and am hoping somebody can > assist. I am getting the error: It appears that you are actually having a problem creating a reference to a hash. perldoc perldata perldoc perl

Re: Hash dereferencing problem

2007-11-13 Thread Dr.Ruud
[EMAIL PROTECTED] schreef: > use strict; > my %napMD_ProgressCode = ( >[...] > ); > > sub drawInputRowControlled{ > my $ControlList = $_[0]; > my %ControlList = %$ControlList; #Problem line > > for my $i (sort keys %ControlList) { > print qq{ > name='status' >

Re: Regex Help

2007-11-13 Thread Dr.Ruud
"Jenda Krynicky" schreef: > { > my $static; > sub foo { > $static++; > ... > } > } There (the first declared version of) the variable $static is part of the environment of foo(). Don't mistake that for staticness. In Perl 5.8.8 you can enforce $static to be static, like this: {

Re: Hash dereferencing problem

2007-11-13 Thread Chas. Owens
On Nov 13, 2007 12:55 PM, <[EMAIL PROTECTED]> wrote: > Folks, > > I am having a problem dereferencing a hash and am hoping somebody can > assist. I am getting the error: > > Can't use string ("napMD_ProgressCode") as a HASH ref > while "strict refs" in use snip > my %napMD_Progres

Re: Regex Help

2007-11-13 Thread Dr.Ruud
"Jenda Krynicky" schreef: > I'd definitely never ever do > > condition and my $x = blah(); That is what I said. It is "technically" OK to use it with a condition that can not be decided at compile time, but I still recommend not to use it. -- Affijn, Ruud "Gewoon is een tijger." -- To uns

Re: Regex Help

2007-11-13 Thread Dr.Ruud
"Jenda Krynicky" schreef: > if > > 0 and my $x; > > creates a static $x I call it a bug. It's called a feature. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Regex

2007-11-13 Thread Dr.Ruud
Gunnar Hjalmarsson schreef: > Are you saying that \d is no longer equivalent to [0-9]? > If so, which digits does \d match besides [0-9]? perl -wle'print "\x666"=~/\d/' -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Hash dereferencing problem

2007-11-13 Thread exlibris
Folks, I am having a problem dereferencing a hash and am hoping somebody can assist. I am getting the error: Can't use string ("napMD_ProgressCode") as a HASH ref while "strict refs" in use for the code below. I have tried various combinations of brackets and plus signs in the

Re: Regex

2007-11-13 Thread Chas. Owens
On Nov 13, 2007 12:18 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Chas. Owens wrote: > > On Nov 13, 2007 10:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: > > snip > >> I believe you want /\d[a-z]{2}/i. > > snip > > > > Oops, I didn't pay attention to my own warning about \d, I should have s

Meta: please don't mail here if you have huge useless pointless disclaimers (was Re: SOH char)

2007-11-13 Thread Randal L. Schwartz
> ""Brown," == "Brown, Rodrick" <[EMAIL PROTECTED]> writes: "Brown,> How can I split a string based on this char? Or even print it in perl "Brown,> Thanks. "Brown,> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Brown,> This message is intended o

Re: Regex

2007-11-13 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On Nov 13, 2007 10:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: snip I believe you want /\d[a-z]{2}/i. snip Oops, I didn't pay attention to my own warning about \d, I should have said /[0-9][a-z]{2}/i Are you saying that \d is no longer equivalent to [0-9]? If so, which

Re: Check if a module is installed properly

2007-11-13 Thread Tom Phoenix
On 11/13/07, jeevs <[EMAIL PROTECTED]> wrote: > Failed 2/6 test scripts, 66.67% okay. 29/116 subtests failed, 75.00% > okay. > I used the following command to check if all the dependencies are > installed > > perl -M -e 'print $::VERSION' > > and to my surprise i found that all the dependencies w

Re: indexing tables using my owns functions

2007-11-13 Thread Chas. Owens
On Nov 13, 2007 9:24 AM, Pau Marc Munoz Torres <[EMAIL PROTECTED]> wrote: > Hi > > I've created a function that return a float value the code for it is : > > create function IDR(pin1 varchar(20),pin4 varchar(20),pin6 varchar(20),pin7 > varchar(20),pin9 varchar(20),MOL varchar(20)) returns float sn

Re: Regex

2007-11-13 Thread Chas. Owens
On Nov 13, 2007 10:58 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: snip > I believe you want /\d[a-z]{2}/i. snip Oops, I didn't pay attention to my own warning about \d, I should have said /[0-9][a-z]{2}/i The whole regex should be $data =~ /^[a-z]{2,4} [0-9][a-z]{2}$/i; Other things to be aware

Re: Parse html files

2007-11-13 Thread Tom Phoenix
On 11/13/07, I BioKid <[EMAIL PROTECTED]> wrote: > I have around 1000 html files, I got it using different web crawling programs. > I need to save this and use it as a part of a database. > But all the files have links to cgi programs. All these CGI links are > mentioned as /cgi-bin/foo/foo.pl as

Re: Regex

2007-11-13 Thread Chas. Owens
On Nov 13, 2007 4:33 AM, <[EMAIL PROTECTED]> wrote: > HI > > my conditions are > > //Code length rule (Min - 6 and Max-8) > //leftmost character must be alpha character rule > //first character of inward code must be numeric rule > //second character of inward code must be alpha rule > //third cha

Re: SOH char

2007-11-13 Thread Tom Phoenix
On 11/13/07, Brown, Rodrick <[EMAIL PROTECTED]> wrote: > How can I split a string based on this char? Or even print it in perl Do you know specifically which character you want? Any character may be represented by a backslash escape in a literal string. If you can find your character on an ASCII

Re: SOH char

2007-11-13 Thread Chas. Owens
On Nov 13, 2007 9:56 AM, Brown, Rodrick <[EMAIL PROTECTED]> wrote: > > How can I split a string based on this char? Or even print it in perl > Thanks. snip I assume you are talking about the Start of Header ASCII control character. This is character 1 in the ASCII set, so you should be able to sp

SOH char

2007-11-13 Thread Brown, Rodrick
How can I split a string based on this char? Or even print it in perl Thanks. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are no

Re: loading scripts to mysql

2007-11-13 Thread Pau Marc Munoz Torres
hi, Tanks for your help, finally i found the "source" command. It work like this: mysql> source /Lhome/geruppa/mhc/Pack_Ref_web/prova.sql 2007/11/9, Michael Gargiullo <[EMAIL PROTECTED]>: > > On Fri, 2007-11-09 at 13:22 +0100, Pau Marc Munoz Torres wrote: > > > Hi everybody > > > > I'm writin

Re: Regex to remove zeros after . in file name

2007-11-13 Thread danlamb
On Nov 12, 7:51 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: > s/\.0+(?=[1-9])/./; Thank you Gunnar. This did exactly what I needed. Dan Lamb -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

indexing tables using my owns functions

2007-11-13 Thread Pau Marc Munoz Torres
Hi I've created a function that return a float value the code for it is : create function IDR(pin1 varchar(20),pin4 varchar(20),pin6 varchar(20),pin7 varchar(20),pin9 varchar(20),MOL varchar(20)) returns float DETERMINISTIC begin declare output float;

Check if a module is installed properly

2007-11-13 Thread jeevs
Hi Forum, It happened that i tried installing Net::SSH::Perl from cpan. After a long haul and installing most of the dependencies it happend that installation was aborted in between with the message. ## Failed Test Stat Wstat Total Fail Failed

Re: Regex

2007-11-13 Thread neelike
HI Rodrick Brown, Yes I realize that how my previous mail has made such a inconvenience to you and all the wisdoms of perl community .Really I regret for the inconvenience. On thinking of more grisp what I was comming to ask , my way of asking questions was differed. Thanks for ur

Parse html files

2007-11-13 Thread I BioKid
Hey all, I have around 1000 html files, I got it using different web crawling programs. I need to save this and use it as a part of a database. But all the files have links to cgi programs. All these CGI links are mentioned as /cgi-bin/foo/foo.pl as path. I dont have local copy of these programs a

Re: Regex

2007-11-13 Thread Rodrick Brown
On Nov 13, 2007 4:33 AM, <[EMAIL PROTECTED]> wrote: > HI > > > my conditions are > > > //Code length rule (Min - 6 and Max-8) > > //leftmost character must be alpha character rule > > //first character of inward code must be numeric rule > > //second character of inward code must be alpha rule > >

Re: Problems with cpan.

2007-11-13 Thread Jeff Pang
On Nov 13, 2007 7:01 PM, Tobias L <[EMAIL PROTECTED]> wrote: > Anyway I have a more technical question about the fact that my CPAN won't > install ANYTHING AT ALL! What're the error messages you got? What OS are you using? Have you set the network and DNS correctly? -- To unsubscribe, e-mail: [

Problems with cpan.

2007-11-13 Thread Tobias L
Hi All. First I would like to say this is my first email to this mail list I have read it for quite some time and solved problems mainly by myself this far - nothing particularly advanced yet. Anyway I have a more technical question about the fact that my CPAN won't install ANYTHING AT ALL! Can t

Regex

2007-11-13 Thread neelike
HI my conditions are //Code length rule (Min - 6 and Max-8) //leftmost character must be alpha character rule //first character of inward code must be numeric rule //second character of inward code must be alpha rule //third character of inward code must be alpha rule //space in position