Just another regex quetion

2003-02-02 Thread Konrad Foerstner
Hi folks, an new question about the mystery of regexs: I want to store some parts of a file wich are separetet by "#". Each each part should become an entry of an array. example: " # foobar nothing important nothing interesting # bar foot lululul lalala lalala # foobar2 Rumba-Samba-Tango " (oka

problems with big numbers

2003-01-22 Thread Konrad Foerstner
Hi, My todays problem: I extraxt some data out of a file, stored it etc., put them into an equation and print it to an outputfile in which the results are sorted by some of their values. The equation was first a linear one (and worked perfectly), but now I would like to work with exponents (Basis

problems with big numbers

2003-01-21 Thread Konrad Foerstner
Hi, My todays problem: I extraxt some data out of a file, stored them etc., put them into an equation and print it to an outputfile in which the results are sorted by some of their values. The equation was first a linear one (and it worked perfectly), but now I would like to work with exponents (b

max floating point number

2003-01-21 Thread Konrad Foerstner
Hi, does anybody know the maximum value of floating point numbers I could use in Perl? Konrad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Splitting a variable

2003-01-16 Thread Konrad Foerstner
On Thu, 16 Jan 2003 15:12:05 -0800 "Scott, Joshua" <[EMAIL PROTECTED]> wrote: > I've got a CSV file which I need to process. The format is as follows. > > "Smith, John J",1/1/2002,1/15/2002,"Orlando, FL",Florida > "Doe, John L",1/1/2002,1/15/2002,Los Angeles, California > > I've tried splitting

Re: trouble when calling a shell script for setting an env var

2003-01-16 Thread Konrad Foerstner
> > I need to get a value from an environment variable VALUE. This value is > > set by an shell script which location is stored in anonther environment > > variable called SCRIPT. So I first call the shell script by > > > > `. \$SCRIPT`; > > > > and extract then the value of VALUE by > > > > my

trouble when calling a shell script for setting an env var

2003-01-16 Thread Konrad Foerstner
He folks! Todays problem: I need to get a value from an environment variable VALUE. This value is set by an shell script which location is stored in anonther environment variable called SCRIPT. So I first call the shell script by `. \$SCRIPT`; and extract then the value of VALUE by my $value =

floating-point number on the right side with sprintf

2003-01-16 Thread Konrad Foerstner
Hi, I have a problem with formating my output. I use sprintf to format a floating-point number. My output with "%.4f" looks like this: 111.5611 21.4870 10.7046 8.8443 8.6823 but I would like to see it that way: 111.5611 21.4870 10.7046 8.8443 8.6823 So, a kind of combin

floating-point number on the right side with sprintf

2003-01-15 Thread Konrad Foerstner
Hi, I have a problem with formating my output. I use sprintf to format a floating-point number. My output with "%.4f" looks like this: 111.5611 21.4870 10.7046 8.8443 8.6823 but I would like to see it that way: 111.5611 21.4870 10.7046 8.8443 8.6823 So, a kind of combin

removing emty lines without creating a new file or array

2003-01-08 Thread Konrad Foerstner
Hi, My problem today ;) : I have a file with some unmeant empty lines and I want to remove them, without writing a new file and without storing all the content temporarily in an array. I thought about the following lines of code, but they don't do the job. open (FH, "+<$filename"); foreach (){

sorting an id like a.12.34

2003-01-07 Thread Konrad Foerstner
Hi Folks! My problem: I have a file of ids like a.12.34 or z.9.234 and want to sort it into a new file. As the sort function sorts digit by digit I can't use it (not so easy). Additionally the data file is quite big (11M) so I don't know if it is okay to work with such big array. I hope someone c

sorting an id like a.12.34

2003-01-06 Thread Konrad Foerstner
Hi Folks! My problem: I have a file of ids like a.12.34 or z.9.234 and want to sort it into a new file. As the sort function sorts digit by digit I can't use it (not so easy). Additionally the data file is quite big (11M) so I don't know if it is okay to work with such big array. I hope someone c

Re: Position 251 ???

2002-07-23 Thread Konrad Foerstner
Okay, know I tried it and it works perfectly! Thanks! On Mon, 22 Jul 2002 15:37:03 -0400 Bob Showalter <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Konrad Foerstner [mailto:[EMAIL PROTECTED]] > > Sent: Monday, July 22, 2002 2:19 PM

Re: Position 251 ???

2002-07-22 Thread Konrad Foerstner
e it to me? Konrad On Mon, 22 Jul 2002 20:58:20 +0200 "Jenda Krynicky" <[EMAIL PROTECTED]> wrote: > From: Konrad Foerstner <[EMAIL PROTECTED]> > > > I have a strange error in my script. It should > > paint a column of lines next to each other in > > c

Position 251 ???

2002-07-22 Thread Konrad Foerstner
Hi, I have a strange error in my script. It should paint a column of lines next to each other in colors which are determinated by a given sequence of letters. It works...but only to the position of 251. After this point all lines have the color of the line at position 251...even when I use a dif

Re: maximum column length

2002-07-19 Thread Konrad Foerstner
e Math::Trig > > I don't know which one can help, but they seems quite like what you need. > > Rgds, > Connie > > > > > - Original Message - > From: "Konrad Foerstner" <[EMAIL PROTECTED]> > To: "Connie Chan" <[EMAI

Re: maximum column length

2002-07-18 Thread Konrad Foerstner
Well, I tried now to round the percent values with "sprintf" befor give it for the column calculation and it seems to work. But this is very bad rounded. Which module I need for "round()"? cu KUF -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: maximum column length

2002-07-18 Thread Konrad Foerstner
> to know if this would help, but when doing a similar thing with > web-based on the fly generation of graphs simply supplying a length of > 460.3 on an image's attributes for instance sent the browser into a tizzy. > > > > Konrad Foerstner wrote: > > Heyho! > &g

Re: maximum column length

2002-07-18 Thread Konrad Foerstner
> > to have column with the maximum lenght (in my case 580 pixels). > > What is length refer to ? I mean, the width or height ? Is this important? Well, my columns start left an go to the right side. So this pixel value is third value in the "filledRectangle" data. filledRectangle(100,90,$col

Re: maximum column length

2002-07-18 Thread Konrad Foerstner
> to know if this would help, but when doing a similar thing with > web-based on the fly generation of graphs simply supplying a length of > 460.3 on an image's attributes for instance sent the browser into a tizzy. > > > > Konrad Foerstner wrote: > > Heyho! > &g

Re: maximum column length

2002-07-18 Thread Konrad Foerstner
> to know if this would help, but when doing a similar thing with > web-based on the fly generation of graphs simply supplying a length of > 460.3 on an image's attributes for instance sent the browser into a tizzy. > > > > Konrad Foerstner wrote: > > Heyho! > &g

maximum column length

2002-07-18 Thread Konrad Foerstner
Heyho! My case: I'm writing a program which analyses some input to get some percent values. These values should be drawn in a diagramm (is use GD for that). To use the area of the created picture optimally I want the biggest value (see my question of yesterday...it is solved now) to have colu

formate text sequence

2002-07-17 Thread Konrad Foerstner
hi, does anyone know a function or a module which i can use to format a text which i get in a string. i would like to get out of the string lines of 40 letters which are surrounded by "" and ; the result should be stored in an string. short example with 3-letter-lines: $input = 'ABCDEFGHI';

formate text sequence

2002-07-17 Thread Konrad Foerstner
hi, does anyone know a function or a module which i can use to format a text which i get in a string. i would like to get out of the string lines of 40 letters which are surrounded by "" and ; the result should be stored in an string. short example with 3-letter-lines: $input = 'ABCDEFGHI';

Re: find biggest number

2002-07-16 Thread Konrad Foerstner
um) = @_; > > my ($max) = shift @$num; > > foreach $i (@$num) { > > $max = $i if $max < $i; > > } > > return($max); > >} > > > -Original Message- > > From: Konrad Foerstner [mailto:[EMAIL PROTECTED]] > >

find biggest number (new try :) )

2002-07-16 Thread Konrad Foerstner
sorry a small but important mistake Im looking for a method to extract the biggest element (number) out of array. Does anyone know a function for that? cu Konrad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

find biggest number

2002-07-16 Thread Konrad Foerstner
Hi, Im looking for a method to exact the biggest element (number) out of array. Does anyone know a function for that? cu Konrad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Chart::Plot

2002-06-21 Thread Konrad Foerstner
Hi folks, I have some problems with the Chart::Plot modul: I started to use the module (http://www.speakeasy.org/~cgires/modules/plot/plot.html) to make some plots. Without any modification I get nice plots, but when I use setGraphOptions() and getGDobject() the trouble begins: When I add an