building a userspace Perl

2003-01-19 Thread David Nicely
Hi, I am building perl for use with mod_perl on a chroot httpd. It needs to not be linked to any system library's, but I'm missing something in the config becouse it is still linking to /usr/lib/libc.so.28.5 . I'm not sure where in the configure script to tell it not to do this. I got

Re: Need Help

2003-01-19 Thread Wiggins d'Anconia
Try this: perldoc -q 'My CGI script runs from the command line but not the browser' Which is found here: perldoc perlfaq9 http://danconia.org [EMAIL PROTECTED] wrote: Ok, found out why I am getting this error... Premature end of script headers What does that mean?? Anyone? This file w

RE: How to use ATL COM components in perl

2003-01-19 Thread Toby Stuart
> -Original Message- > From: Toby Stuart [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 20, 2003 3:26 PM > To: '[EMAIL PROTECTED]' > Subject: RE: How to use ATL COM components in perl > > > > > > -Original Message- > > From: Pankaj Kapare [mailto:[EMAIL PROTECTED]] > > Sen

RE: How to use ATL COM components in perl

2003-01-19 Thread Toby Stuart
> -Original Message- > From: Pankaj Kapare [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 19, 2003 2:00 AM > To: [EMAIL PROTECTED] > Subject: How to use ATL COM components in perl > > > Hi, >Can anybody tell me how to use perl components in perl. > Pankaj. > See the following

How to use ATL COM components in perl

2003-01-19 Thread Pankaj Kapare
Hi, Can anybody tell me how to use perl components in perl. Pankaj.

RE: Counting words in a line?

2003-01-19 Thread Toby Stuart
> -Original Message- > From: Steven Jackson [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 20, 2003 11:24 AM > To: [EMAIL PROTECTED] > Subject: Counting words in a line? > > > Hi, > > this is my first post, so go ahead, call me a newbie. > > How do I count the number of words in a

Re: Counting words in a line?

2003-01-19 Thread Tim Musson
Hey Steven, My MUA believes you used MIME::Lite 1.2 (F2.71; T1.001; A1.51; B2.12; Q2.03) to write the following on Sunday, January 19, 2003 at 7:24:01 PM. SJ> How do I count the number of words in a line? I need to convert SJ> some astronomy data which has floats, integers and commas i

RE: Counting words in a line?

2003-01-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Steven Jackson wrote: > Hi, > > this is my first post, so go ahead, call me a newbie. > > How do I count the number of words in a line? I need to convert some > astronomy data which has floats, integers and commas in the string and > massage this data into something more palatable to the applica

Counting words in a line?

2003-01-19 Thread Steven Jackson
Hi, this is my first post, so go ahead, call me a newbie. How do I count the number of words in a line? I need to convert some astronomy data which has floats, integers and commas in the string and massage this data into something more palatable to the application. Cheerio, Steve Scotty, I nee

Re: compare multiple lines

2003-01-19 Thread Rob Dixon
Mertens Bram wrote: > Hi, > > I have a bookmark-file from opera6.11 that contains a lot of duplicate > entries. > > I would like to be able to remove all duplicate entries without > destroying the structure of the file. This is something that you could do to any level of complexity. First of all,

RE: compare multiple lines

2003-01-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Mertens Bram wrote: > Hi, > > I have a bookmark-file from opera6.11 that contains a lot of duplicate > entries. > > I would like to be able to remove all duplicate entries without > destroying the structure of the file. > > I have tried this with a set of scripts that converted the file into a >

compare multiple lines

2003-01-19 Thread Mertens Bram
Hi, I have a bookmark-file from opera6.11 that contains a lot of duplicate entries. I would like to be able to remove all duplicate entries without destroying the structure of the file. I have tried this with a set of scripts that converted the file into a format that could be sent through 'uniq

Need Help

2003-01-19 Thread perl
Ok, found out why I am getting this error... Premature end of script headers What does that mean?? Anyone? This file works on my computer but when I upload it to a unix system and try it from the internet it gives me a 500 error. Can anyone tell me what the problem is?? Still new at perl.

Re: Out of Memory Working With Large Files

2003-01-19 Thread Rob Dixon
John W. Krahn wrote: > Rob Dixon wrote: >> >> Nelson Ray wrote: >>> Just as a little background, I am working on a BioInformatics >>> program that runs on large (about 300 meg) text files. I am using a >>> filehandle to open and load it into an array. Then I use the join >>> command to read the a

Re: CSV File Creation

2003-01-19 Thread R. Joseph Newton
A slightly corrected version of my _CSV with commas in the fields_ solution: sub DataPrint { my($Handle, $key, $hashref) = @_; my $Data = $$hashref{$key}; $Data =~ (s/,/%2C/g); print $Handle "$Data,"; } Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Out of Memory Working With Large Files

2003-01-19 Thread John W. Krahn
Rob Dixon wrote: > > Nelson Ray wrote: > > Just as a little background, I am working on a BioInformatics program > > that runs on large (about 300 meg) text files. I am using a > > filehandle to open and load it into an array. Then I use the join > > command to read the array into a scalar varia

Re: Out of Memory Working With Large Files

2003-01-19 Thread John W. Krahn
Nelson Ray wrote: > > Just as a little background, I am working on a BioInformatics program that > runs on large (about 300 meg) text files. I am using a filehandle to open > and load it into an array. Then I use the join command to read the array > into a scalar variable in order to be in a wor

Re: scalar number or string?

2003-01-19 Thread R. Joseph Newton
And how can I get it to calculate the thing? print eval($calc) ."\n"; Hi Jacques, Sorry. In my previous post, I answered your first question, but offered no solution. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: scalar number or string?

2003-01-19 Thread R. Joseph Newton
"...if you run that last one and type 3+5-2, you get 3+5-2.(string "3+5-2", not the number 6)" --Jacques Hi Jacques, Well, this is about data types. Unfortunately, Perl tends to haze up the issue by doing away with explicit types and doing everything implicitly. In a programming, as opposed

RE: scalar number or string?

2003-01-19 Thread Oblak, Sasha
You have to compile the input. Try using eval. It should look something like: while () { $calc= eval $_; print $calc."\n"; last; } But, don't forget to catch errors. Sasha > -Original Message- > From: Jacques Lederer [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 19, 2

Fw: pid

2003-01-19 Thread Jacques Lederer
- Original Message - From: "Jacques Lederer" <[EMAIL PROTECTED]> To: "Paul Johnson" <[EMAIL PROTECTED]> Sent: Sunday, January 19, 2003 8:32 PM Subject: Re: pid > OK. Thanks very much, the eval thing does work. > I have another one now, on another subject. On a linux box, I am trying to >

Re: CSV File Creation

2003-01-19 Thread R. Joseph Newton
"Is a CSV a comma delimited list. If so when creating a CSV how does one cope with fields that have commas in them.[?]" Hi Colin, Sorry for the late response. I forgot the solution I had come up with earlier. I used in a project that I tabled while I was working on another one. Try(on the lo

Re: scalar number or string?

2003-01-19 Thread Jenda Krynicky
From: Paul Johnson <[EMAIL PROTECTED]> > On Sun, Jan 19, 2003 at 06:44:31PM +0100, Jacques Lederer wrote: > > When you write > > > > $calc=3+5-2; > > print $calc."\n"; > > > > you get 6. (number, not the string "3+5-2") > > > > When you write > > > > while () { > > $calc=$_; > > print $calc

Re: scalar number or string?

2003-01-19 Thread Paul Johnson
On Sun, Jan 19, 2003 at 06:44:31PM +0100, Jacques Lederer wrote: > Hello, > > When you write > > $calc=3+5-2; > print $calc."\n"; > > you get 6. (number, not the string "3+5-2") > > When you write > > while () { > $calc=$_; > print $calc."\n"; > last; > } > > if you run that last one a

Re: scalar number or string?

2003-01-19 Thread Mystik Gotan
Aye. I once made a simple program, just for calculating + and *. I had no problem with that. Which means somethin' like: #!usr/bin/perl print "Enter a number."; $number = ; # *ing by 2 (can't get to the right word) $result = $number * 2; print "Aye, the result is" . $result; Which you could do

scalar number or string?

2003-01-19 Thread Jacques Lederer
Hello, When you write $calc=3+5-2; print $calc."\n"; you get 6. (number, not the string "3+5-2") When you write while () { $calc=$_; print $calc."\n"; last; } if you run that last one and type 3+5-2, you get 3+5-2.(string "3+5-2", not the number 6) Why is it so? And how can I get it to

Re: How 'global' are STDIN/STDOUT/STDERR?

2003-01-19 Thread Jenda Krynicky
From: "Beau E. Cox" <[EMAIL PROTECTED]> > I am developing a perl 5.8 application using the > new threading model. I use this technique > (thanks Jenda!) to dup STDIN to a temp file handle: > ... > open SAVIN, '<&STDIN'; > open (STDIN,'<&' . $tmpfh->fileno) or die "..."; >

Re: Can somebody send me RFC numbers of POP3 & SMTP

2003-01-19 Thread Jenda Krynicky
From: "LRMK" <[EMAIL PROTECTED]> > can somebody send me RFC numbers of POP3 & SMTP http://www.faqs.org/rfcs/ SMTP = 2821 POP3 = 1939 MIME = 2045-2049 Jenda P.S.: I't possible that one of those is already obsoleted by a higher number. You'll find that info on that site. Jenda =

Can somebody send me RFC numbers of POP3 & SMTP

2003-01-19 Thread LRMK
can somebody send me RFC numbers of POP3 & SMTP -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Out of Memory Working With Large Files

2003-01-19 Thread Rob Dixon
Hi Nelson Nelson Ray wrote: > Just as a little background, I am working on a BioInformatics program > that runs on large (about 300 meg) text files. I am using a > filehandle to open and load it into an array. Then I use the join > command to read the array into a scalar variable in order to be

Re: Newbie - Perl installation on WinXP

2003-01-19 Thread Anthoni
Hi there Wiggins, Thank you for your advice, I have heard of Cygwin and tried to visit their site but it says it can't find the domain. Will try later. I have also heard of ActiveState. I am wanting to develop pure CGI programs with Perl (when i finally learn it), is this setup still good for this

Out of Memory Working With Large Files

2003-01-19 Thread Nelson Ray
Just as a little background, I am working on a BioInformatics program that runs on large (about 300 meg) text files. I am using a filehandle to open and load it into an array. Then I use the join command to read the array into a scalar variable in order to be in a workable form for my computation

Tk

2003-01-19 Thread Mark Goland
hey gang, I know this is unrelated, but does anyone know of a good Tk tutorial, or book ?? Thanx, Mark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]