Re: How can I get Inline::C to deal with big number?

2005-03-28 Thread Steven Schubiger
On 26 Mar, Edward Wijaya wrote: > What could be the problem? > Is there a way to solve it I assume, the typedef doesn't value the "hooked" malloc, thus, I recommend: long double *big_double; big_double = (long double *) malloc(2*sizeof(long double)); -- The trouble with having an open mind, of

Re: When does a process become defunct

2005-03-28 Thread Steven Schubiger
On 28 Mar, Ramprasad A Padmanabhan wrote: > I am writing a daemon in perl , where the parent just forks on some > requests and the children take over. But I found many child processes > becoming defunct. > wait(); perldoc -f waitpid -- The trouble with having an open mind, of course, is that

Re: When does a process become defunct

2005-03-28 Thread John W. Krahn
Ramprasad A Padmanabhan wrote: Hi all, Hello, I am writing a daemon in perl , perldoc -q daemon Also the sections "Complete Dissociation of Child from Parent" and "Handling the SIGHUP Signal in Daemons" in: perldoc perlipc A description of daemons: http://www.enderunix.org/docs/eng/daemon.php And

Re: How can I get Inline::C to deal with big number?

2005-03-28 Thread John W. Krahn
Steven Schubiger wrote: > On 26 Mar, Edward Wijaya wrote: > >>What could be the problem? >>Is there a way to solve it > > I assume, the typedef doesn't value the "hooked" malloc, thus, > I recommend: > > long double *big_double; > big_double = (long double *) malloc(2*sizeof(long double));

Re: When does a process become defunct

2005-03-28 Thread Ramprasad A Padmanabhan
On Mon, 2005-03-28 at 14:35, Steven Schubiger wrote: > On 28 Mar, Ramprasad A Padmanabhan wrote: > > > I am writing a daemon in perl , where the parent just forks on some > > requests and the children take over. But I found many child processes > > becoming defunct. > > > wait(); > > perldoc -

RE: Regex against a scalar

2005-03-28 Thread Marcos Rebelo
I'm lost with this question, but try to run: print("abcd" =~ /(b.)/) Is this what you need? Marcos -Original Message- From: Perl [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 24 de Março de 2005 1:42 To: Beginner Perl Subject: Regex against a scalar Hi. I would like to search a sca

PERL_ROOT - Need info how it works

2005-03-28 Thread Rathna N
Hi, I've a very basic question for clarification. 1.c:/script1 has below lines $ENV{PERL_ROOT} ='D:/'; open(fh,'perl script2.pl |'); $x=; close fh; print $x; 2. Script2 has just one line print "hello"; When I execute the script 1, it doesn't execute or find script2. It works fine, if I give co

Re: PERL_ROOT - Need info how it works

2005-03-28 Thread John W. Krahn
Rathna N wrote: Hi, Hello, I've a very basic question for clarification. 1.c:/script1 has below lines $ENV{PERL_ROOT} ='D:/'; open(fh,'perl script2.pl |'); $x=; close fh; print $x; 2. Script2 has just one line print "hello"; When I execute the script 1, it doesn't execute or find script2. It work

Re: PERL_ROOT - Need info how it works

2005-03-28 Thread Rathna N
Hi, thanks for the response, I observed this behavior on Windows, Linux and NetWare. On Mon, 28 Mar 2005 03:05:10 -0800, John W. Krahn <[EMAIL PROTECTED]> wrote: > Rathna N wrote: > > Hi, > > Hello, > > > I've a very basic question for clarification. > > > > 1.c:/script1 has below lines > > $E

Re: PERL_ROOT - Need info how it works

2005-03-28 Thread John W. Krahn
Rathna N wrote: On Mon, 28 Mar 2005 03:05:10 -0800, John W. Krahn <[EMAIL PROTECTED]> wrote: Rathna N wrote: I've a very basic question for clarification. 1.c:/script1 has below lines $ENV{PERL_ROOT} ='D:/'; open(fh,'perl script2.pl |'); $x=; close fh; print $x; 2. Script2 has just one line print "

Create unexistent directories by FTP

2005-03-28 Thread marcos rebelo
I have a program that is supposed to send files throw FTP. And I'm using the Net::FTP. I have a destiny path and I need to create the directories if they don't exist. How do I check if a Directory exist? Actual code +-: sub fput($$$) { my ($ftp, $orig, $dest) = @_; return if $orig =~ /

Problems matching or parsing with delimiters in text

2005-03-28 Thread KEVIN ZEMBOWER
I'm trying to read in text lines from a file that look like this: "B-B01","Eng","Binder for Complete Set of Population Reports",13,0 "C-CD01","Eng","The Condoms CD-ROM",12,1 "F-J41a","Fre",,13,1 "F-J41a","SPA",,13,1 "M-FC01","Eng","Africa Flip Charts- Planning Your Family (E,F, Swahili)(12""x9"")"

RE : Problems matching or parsing with delimiters in text

2005-03-28 Thread Jose Nyimi
> -Message d'origine- > De : KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED] > Envoyé : lundi 28 mars 2005 18:13 > À : beginners@perl.org > Objet : Problems matching or parsing with delimiters in text > > I'm trying to read in text lines from a file that look like this: > "B-B01","Eng","Binder

Re: Problems matching or parsing with delimiters in text

2005-03-28 Thread Chris Devers
On Mon, 28 Mar 2005, KEVIN ZEMBOWER wrote: > I'm trying to read in text lines from a file that look like this: > "B-B01","Eng","Binder for Complete Set of Population Reports",13,0 > "C-CD01","Eng","The Condoms CD-ROM",12,1 > "F-J41a","Fre",,13,1 > "F-J41a","SPA",,13,1 > "M-FC01","Eng","Africa Flip

perl.beginners Weekly list FAQ posting

2005-03-28 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

Re: Problems matching or parsing with delimiters in text

2005-03-28 Thread Offer Kaye
On Mon, 28 Mar 2005 11:13:05 -0500, KEVIN ZEMBOWER wrote: > I'm trying to read in text lines from a file that look like this: [...snip...] As others have said, you really should use a module. For completness, here's a solution using Text::CSV::Simple ("datafile" holds the data you gave in the ques

Re: Problems matching or parsing with delimiters in text

2005-03-28 Thread KEVIN ZEMBOWER
Offer, Chris and Jose, thank you all very much for the help. I was aware of Text::CSV and it's brothers, and have even used them successfully in other programs. I can't remember what I was thinking here. I may have even started with Text::CSV, but then discarded it because I thought it was malfu

Re: Create unexistent directories by FTP

2005-03-28 Thread marcos rebelo
Hy In the remote machine. I know how to create it, but I don't like to have a big error log. Eatch request creates log entraces, but if the directory already exists, creates also error logs. Marcos On Mon, 28 Mar 2005 19:08:32 +0200 (CEST), Steven Schubiger <[EMAIL PROTECTED]> wrote: > On 28

no main, perlembed env

2005-03-28 Thread toolscripts
perlembed for perl-5.8.6 : I'm trying to do something like this: int useargs(int argc, char **argv, char **env) { PERL_SYS_INIT3(&argc,&argv,&env); ... } The trouble is I don't think I'm supposed to retrieve the env pointer in the wxWidgets SDK I'm using. Basically I can't seem to get ahold o

Re: Create unexistent directories by FTP

2005-03-28 Thread Steven Schubiger
> On 28 Mar, marcos rebelo wrote: > I have a program that is supposed to send files throw FTP. And I'm > using the Net::FTP. I have a destiny path and I need to create the > directories if they don't exist. Locally or remotely? > How do I check if a Directory exist? -e $dir for local purpo

Re: Regex against a scalar

2005-03-28 Thread Steven Schubiger
On 28 Mar, Marcos Rebelo wrote: > I want another scalar, $regex to hold the output of a regular > expression lookup against $test. my ($match) = $regexp =~ /.*\s+(so.*?)\s+.*/; $match holds "some". Steven -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

regexp help

2005-03-28 Thread Abhishek Dave
Hello , i am sticking with a problem to replace all words of a file in such a = manner that the first and second word need to interchanged. some thing like ... 10 11 2 20001 so that the output file will be 11 1 20001 2 any helpful regex ??? thanks

RE: Problems matching or parsing with delimiters in text

2005-03-28 Thread Graeme St. Clair
-Original Message- From: Offer Kaye [mailto:[EMAIL PROTECTED] Sent: Monday, March 28, 2005 12:17 PM To: Perl Beginners Subject: Re: Problems matching or parsing with delimiters in text On Mon, 28 Mar 2005 11:13:05 -0500, KEVIN ZEMBOWER wrote: > I'm trying to read in text lines from a file

Re: regexp help

2005-03-28 Thread Hendrik Maryns
Abhishek Dave schreef: Hello , i am sticking with a problem to replace all words of a file in such a = manner that the first and second word need to interchanged. some thing like ... 10 11 2 20001 so that the output file will be 11 1 20001 2 any helpful regex ??

Re: regexp help

2005-03-28 Thread Jeff 'japhy' Pinyan
On Mar 28, Abhishek Dave said: i am sticking with a problem to replace all words of a file in such a = manner that the first and second word need to interchanged. some thing like ... 10 11 2 20001 so that the output file will be 11 1 20001 2 The easiest way I can t

More Regex for Newbies

2005-03-28 Thread Mike Lesser
Hi all. I have this strange relationship with Regex. I seem to be able to get simple stuff accomplished, but in really brute-force ways, and I think I'm missing some fundamental aspect of its usage. I'm forced to chomp thru strings from the side like pac-man. It's like I can do a simple match or

RE: More Regex for Newbies

2005-03-28 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Mike Lesser wrote: > Hi all. I have this strange relationship with Regex. I seem to be able > to get simple > stuff accomplished, but in really brute-force ways, and I think I'm > missing some > fundamental aspect of its usage. I'm forced to chomp thru strings from > the > side like pac-man. It's l

RE: More Regex for Newbies

2005-03-28 Thread Charles K. Clarkson
Mike Lesser wrote: : For example, if I have a string that goes like : :"Joe Shmoe (alphanumerics)" : : and I want to get the alphanumerics between the parens, It's like : pulling teeth, I think (i think..) what I want to do is match the : stuff that's _not_ between

Re: Create unexistent directories by FTP

2005-03-28 Thread JupiterHost.Net
marcos rebelo wrote: I have a program that is supposed to send files throw FTP. And I'm using the Net::FTP. I have a destiny path and I need to create the directories if they don't exist. How do I check if a Directory exist? If you can wait a couple days Net::FTP::File (http://search.cpan.org/~dm

HTML::Template help

2005-03-28 Thread Hawkes, Mick I
Hi all, All i want is a pull down select to work. I can get it to display passed data but I just can't get it to return the selection. here is a code snippit (its inside a table) . "> " selected> >Open Pending Closed so why doesn't it work? TIA cheers Mick Hawkes -- To unsub

RE: HTML::Template help

2005-03-28 Thread Charles K. Clarkson
Hawkes, Mick I wrote: : All i want is a pull down select to work. I can get it to display : passed data but I just can't get it to return the selection. here is : a code snippit (its inside a table) . : : "> : " selected> >Open : Pending : Closed : : : so why doe

RE: HTML::Template help

2005-03-28 Thread Hawkes, Mick I
Hawkes, Mick I wrote: : All i want is a pull down select to work. I can get it to display : passed data but I just can't get it to return the selection. here is : a code snippit (its inside a table) . : : ">

EastAsianWidth test.

2005-03-28 Thread Rajarshi Das
Hi, I am running a EastAsianWidth property test on z/OS using perl-5.8.6. $str = chr(0xA1).chr(0xA2); if ($str =~ /(\p{EastAsianWidth: A}+)/) { print "match"; } else { print "no match"; } First, is the above regex supposed to mean this : does $str contain chars one or more of which has a "

Regex to breakdown c code

2005-03-28 Thread Jerry Preston
I am want to break down the following code that can have any number of vars being passed: c_routine("name_1", 2, 3, 5, 0,9, 1, A, b, -1.5, 1.2, 10, 0.03, 0, 0, 1, 0, m, l, var_name_1, var_name_2, var_name_3, var_name_4, var_name_5, var_name_6); I only want the passed vars. m

Re: More Regex for Newbies

2005-03-28 Thread Offer Kaye
On Mon, 28 Mar 2005 18:07:20 -0500, Mike Lesser wrote: > Hi all. I have this strange relationship with Regex. I seem to be able > to get simple stuff accomplished, but in really brute-force ways, The answer from Charles will help you up with your specific problem. In addition, I heartly recommend

Re: HTML::Template help

2005-03-28 Thread Offer Kaye
On Tue, 29 Mar 2005 13:51:44 +1000, Hawkes, Mick I wrote: > Hi all, > > All i want is a pull down select to work. I can get it to display passed data > but I just can't get it to > return the selection. here is a code snippit (its inside a table) . > > "> You're missing a "<" before the "TMPL"

Re: EastAsianWidth test.

2005-03-28 Thread Offer Kaye
On Tue, 29 Mar 2005 11:08:05 +0530, Rajarshi Das wrote: > Hi, > I am running a EastAsianWidth property test on z/OS using perl-5.8.6. > > $str = chr(0xA1).chr(0xA2); > > if ($str =~ /(\p{EastAsianWidth: A}+)/) > { > print "match"; > } > else > { > print "no match"; > } > I'm using per

Re: Regex to breakdown c code

2005-03-28 Thread John W. Krahn
Jerry Preston wrote: I am want to break down the following code that can have any number of vars being passed: c_routine("name_1", 2, 3, 5, 0,9, 1, A, b, -1.5, 1.2, 10, 0.03, 0, 0, 1, 0, m, l, var_name_1, var_name_2, var_name_3, var_name_4, var_name_5, var_name_6); I only want the passed

Re: Regex to breakdown c code

2005-03-28 Thread Offer Kaye
On Tue, 29 Mar 2005 00:06:55 -0600, Jerry Preston wrote: > I am want to break down the following code that can have any number of vars > being passed: > > c_routine("name_1", 2, 3, 5, 0,9, 1, A, b, -1.5, 1.2, 10, 0.03, 0, 0, > 1, 0, m, l, var_name_1, var_name_2, var_name_3, var_name_4, v

HTML parsing

2005-03-28 Thread Daniel Smith
Hi all, I'm brand new to Perl, and have just a little programming background. I was tasked with parsing a set of .html files in order to extract the data contained within some terribly formatted tables. Here is a sample of what I have. Data to be extracted DATA DATA DATA Need this too

RE: HTML::Template help

2005-03-28 Thread Charles K. Clarkson
Hawkes, Mick I wrote: [snipped code] That code has nothing to do with the template (and it looks really ugly -- use some white space). : As I said above all the other parameters are returned, this one, : which is the only pulldown select I use, doesn't : :