Error in the "if" block

2006-02-19 Thread Ron Smith
Hi all, This page accepts a series of numbers, separated by spaces, and gives the values listed bellow. I'm getting the following error, but don't see why. Can anyone spot my error? Please, enter numbers separated by spaces only!: Bad file descriptor at E:/www/cgi-bin/pg93ex3.11Ser

Re: Making Image::Magick against a specific ImageMagick installation path

2006-02-19 Thread acummingsus
On Friday 17 February 2006 10:25, JupiterHost.Net wrote: > Howdy list, > > When installign Image::Magick you do this: > > perl Makefile.PL > make > make install > > How do I tell it the path that ImageMagick is installed in sot hat its > get built agianst them specifically? > > The docs and comment

Re: Error in the "if" block

2006-02-19 Thread Hans Meier (John Doe)
Ron Smith am Sonntag, 19. Februar 2006 18.47: > Hi all, Hi Ron > This page accepts a series of numbers, separated by spaces, and gives the > values listed bellow. > I'm getting the following error, No information about the input that causes the error; are there also inputs not causing an e

Re: Error in the "if" block

2006-02-19 Thread Ron Smith
> > No information about the input that causes the > error; are there also inputs > not causing an error? Yes, the input expected would be: " 32 11 25" or "32 11 25 " or " 32 11 25 " ...etc. > > What you want is something like > > /^\s*((?:\d+\s*?)+)\s*$/ > > The inner (?:) does not capture

perl with databases

2006-02-19 Thread Octavian Rasnita
Hi, I need to recommend/use a better database than MySQL that should work well with perl. I have read some web pages about PostgreSQL and I have seen that it has a procedural language PLPERL, while Oracle doesn't have such a thing. I have also seen that Oracle is a little better than PostgreSQL.

Re: Error in the "if" block

2006-02-19 Thread John W. Krahn
Ron Smith wrote: > Hi all, Hello, > This page accepts a series of numbers, separated by spaces, and gives > the values listed bellow. > > I'm getting the following error, but don't see why. Can anyone spot > my error? > > Please, enter numbers separated by spaces only!: Bad file descriptor > at

Re: Error in the "if" block

2006-02-19 Thread John W. Krahn
Ron Smith wrote: > Hi all, Hello, > This page accepts a series of numbers, separated by spaces, and gives > the values listed bellow. > > I'm getting the following error, but don't see why. Can anyone spot > my error? > > Please, enter numbers separated by spaces only!: Bad file descriptor > at

Re: Error in the "if" block

2006-02-19 Thread John W. Krahn
Ron Smith wrote: Hans Meier (John Doe) wrote: >> >>The if-else could be shortened to (untested, so >>please check): >> >>die "Bla" unless >>($userIn)=$userIn=~/^\s*((?:\d+\s*?)+)\s*$/; > > Right; a lot shorter. Why, the parentheses around > $userIn? Context. Without the parentheses you have scala

Re: perl with databases

2006-02-19 Thread Owen Cook
On Sun, 19 Feb 2006, Octavian Rasnita wrote: > > I need to recommend/use a better database than MySQL that should work well > with perl. > I have read some web pages about PostgreSQL and I have seen that it has a > procedural language PLPERL, while Oracle doesn't have such a thing. I have > also

Re: Error in the "if" block

2006-02-19 Thread Hans Meier (John Doe)
Ron Smith am Sonntag, 19. Februar 2006 21.27: > I changed this too. Thanks, Hans! > > > [irrelevant parts snipped away] The "irrelevant" was not quite true... As always, John W. Krahn looked closer into the code, finds simpler solutions and does not miss to point to the appropriate documentation

[OT] Re: perl with databases

2006-02-19 Thread Hans Meier (John Doe)
Owen Cook am Sonntag, 19. Februar 2006 22.21: > I suggest you use Matt Sergeant's DBD::SQLite a Self Contained RDBMS in a > DBI Driver. > > It rocks Owen, thanks a lot for this tip!!! The aggregate function feature looks very promising :-) Hans -- To unsubscribe, e-mail: [EMAIL PROTECTED] For a

end of line

2006-02-19 Thread Bowen, Bruce
I have a text file with lines of varying length. 000,;,001,WL0,001,001,000,000,000,000 011,@D ,011,000,001,050,050,105,105,004,004,064,255,000,001,116,255,255,255,106,255,255,255,255,116,255,255,255 012,D,038,032,000,002,000,001,000,000 013,@D ,013,000,001,050,050,105,105,004,004,064,255,000,00

Re: end of line

2006-02-19 Thread Owen Cook
On Sun, 19 Feb 2006, Bowen, Bruce wrote: > I have a text file with lines of varying length. > > 000,;,001,WL0,001,001,000,000,000,000 > 011,@D > ,011,000,001,050,050,105,105,004,004,064,255,000,001,116,255,255,255,106,255,255,255,255,116,255,255,255 > 012,D,038,032,000,002,000,001,000,000 > 01

Re: end of line

2006-02-19 Thread Xavier Noria
On Feb 19, 2006, at 23:32, Bowen, Bruce wrote: I have a text file with lines of varying length. 000,;,001,WL0,001,001,000,000,000,000 011,@D , 011,000,001,050,050,105,105,004,004,064,255,000,001,116,255,255,255,10 6,255,255,255,255,116,255,255,255 012,D,038,032,000,002,000,001,000,000 013,@D

Re: perl with databases

2006-02-19 Thread Alan C
On Sunday 19 February 2006 12:56, Octavian Rasnita wrote: [ . . ] > The database I need to keep is not very very big, but too big for MySQL, > and the most important thing is the speed of selections/updates. [ . . ] DB_File and BerkelyDB are two Perl modules that use the embedded database which

Re: Net::Server

2006-02-19 Thread Hans Meier (John Doe)
Tom Allison am Samstag, 18. Februar 2006 21.27: > I am trying to set up a server using Net::Server. > Mostly this is out of curiousity more than anything else. > But following the man pages I got stuck. > > I was trying to set up a server to connect to port 8081, > but none of the configuration opt

Re: end of line

2006-02-19 Thread John W. Krahn
Bowen, Bruce wrote: > I have a text file with lines of varying length. Most text files are like that. > 000,;,001,WL0,001,001,000,000,000,000 > 011,@D > ,011,000,001,050,050,105,105,004,004,064,255,000,001,116,255,255,255,106,255,255,255,255,116,255,255,255 > 012,D,038,032,000,002,000,001,000,0

Re: Net::Server

2006-02-19 Thread Tom Phoenix
On 2/18/06, Tom Allison <[EMAIL PROTECTED]> wrote: > I am trying to set up a server using Net::Server. I believe that you omitted a vital piece at the top of your code: a package directive. package AuthServer; Without that, your @ISA variable isn't @AuthServer::ISA. But that's not the error

Re: populating a Hash

2006-02-19 Thread John W. Krahn
David Gilden wrote: > Good morning, Hello, > I would like to populate a hash from a csv text file, Do you really think that you need to? > then test for the existence of a value in the hash. A value? Or a key? perldoc -f exists > If not found return an error message and exit. > > > ithe

dual core cpu

2006-02-19 Thread Ken Perl
Does perl support dual core cpu(HT) technology? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/>

Re: dual core cpu

2006-02-19 Thread Owen Cook
On Mon, 20 Feb 2006, Ken Perl wrote: > Does perl support dual core cpu(HT) technology? > -- > perl -e 'print unpack(u,"62V5N\"FME;G\!E ")' As an observer, I would say yes. When you configure CPAN, I think it asks a question "How many cores do you have...press enter if you don't understand this

Re: Error in the "if" block

2006-02-19 Thread Ron Smith
--- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > Your problem is that you are using the $! variable: > > But you are using it for a pattern match failure > which is neither a system nor > a library call. > > > my @numbers = split( / /, $userIn ); > > I would write that as: > > my @numbers = $

IP Number/ IP Address Array

2006-02-19 Thread overkill
I need to convert the first column of a list of IP numbers to IP addresses. I created an array of my list but am stumped on how to convert the numbers. File: 180884576 imstrmcs05 180884577 imstrmcs06 180884578 imstrmcs07 180884579 imstrmcs08 180884580 imstrmcs09

Matrix Average code / Module Avaialable ?

2006-02-19 Thread I BioKid
Dear All, Is there any program/module to calculate matrix average I have a matrix of NxN and I need to see the average of the same for example 11 22 43 54 50 27 87 74 32 10 66 58 98 78 20 22 23 44 16 34 I have gone through Math::Matrix http://search.cpan.org/~ulpfr/Math-Matrix-0.4/Matrix.pm

Re: Error in the "if" block

2006-02-19 Thread Ron Smith
--- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > Ron Smith wrote: > Hans Meier (John Doe) wrote: > >> > >>The if-else could be shortened to (untested, so > >>please check): > >> > >>die "Bla" unless > >>($userIn)=$userIn=~/^\s*((?:\d+\s*?)+)\s*$/; > > > > Right; a lot shorter. Why, the parenthes

Re: end of line

2006-02-19 Thread Xavier Noria
On Feb 20, 2006, at 0:39, Bowen, Bruce wrote: A possible idiom is: my @lines = <>; # slurp all lines my @wanted = grep { m'012,D|011,@D' } @lines; * I tried open STATE, "STATEFILE.txt" or die my @lines = ; my $state = grep {m"011

IP Number/ IP Address Array

2006-02-19 Thread overkill
Greetings, I need to convert the first column of a list of IP numbers to IP addresses. I created an array of my list but am stumped on how to convert the numbers. File: 180884576 imstrmcs05 180884577 imstrmcs06 180884578 imstrmcs07 180884579 imstrmcs08 180884580