Re: using perl in a c code

2003-12-03 Thread Tassilo von Parseval
On Tue, Dec 02, 2003 at 05:40:14PM -0600 Dan Muey wrote: > What I was wondering about was how to execute some perl code *inside* > the c program instead of takign it via ARGV. I think eval_pv and > eval_sv have somethgin to do with it but I'm a bit cloudy there. > Since I don't know hardly anyth

RE: Net::SSH and Net::FTP?

2003-12-03 Thread Mark Weisman
Thanks for the reply Dan, the two remote servers do not have FTP running on them, so they must initialize the FTP connection. I've now built the scripts on their ends, I'm working on an SSH script that will login to them and launch the scripts on each server. Got the traffic direction thing going o

Something like PHP's PEAR::DB_NestedSet?

2003-12-03 Thread David Garamond
This PHP module looks cool: http://pear.php.net/package/DB_NestedSet is there something like it in CPAN? -- dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Undefined subroutine

2003-12-03 Thread Jan Gruber
Hi! What could be a possible reason, that functions exported by a module appear like that in the Symbol Table: Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/Eris_Gate.pm:146] Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/Eris_Gate.pm:147] Eris_Gate::__ANON__[/usr/lib/pe

Bio::MAGE

2003-12-03 Thread Sebastian Jünemann
Hi List! Im new in Perl and just starting with a big Mission... I have to use teh Bio::MAGE Modul to Parse Mage-ML Files ( these ar eXML-Files) and put them in a SQL DB! But this Modul is really huge and besides i must modify they due to we use 02DBI instead of the included SQL.pm! So my questi

RE: Reading files

2003-12-03 Thread Wiggins d Anconia
> OK, but how about: > > 1)where is $LOG being set? $LOG is the first opened filehandle... > 2)does it get past the dies shown below? > 3)got strict? it's 'fer your own good, you know! ;) > Good question, good point > -Tom Kinzer > > > > #!/usr/bin/perl -w > > $file="./text"; > $|=1;

Bio::MAGE

2003-12-03 Thread Sebastian Jünemann
Hi List! Im new in Perl and just starting with a big Mission... I have to use teh Bio::MAGE Modul to Parse Mage-ML Files ( these ar eXML-Files) and put them in a SQL DB! But this Modul is really huge and besides i must modify they due to we use 02DBI instead of the included SQL.pm! So my questi

RE: Net::SSH and Net::FTP?

2003-12-03 Thread Dan Muey
> Thanks for the reply Dan, the two remote servers do not have > FTP running on them, so they must initialize the FTP Nuts! > connection. I've now built the scripts on their ends, I'm > working on an SSH script that will login to them and launch > the scripts on each server. Got the traffic

RE: Reading files

2003-12-03 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hello All, > I am trying to open a file once , and then duplicate it's > File Handle. I am trying to workout example straight from > FAQ5, with no luck. What does "no luck" mean? You never tell us what happens when you run your code. > I will basicly trying to open a f

Re: Undefined subroutine

2003-12-03 Thread Rob Dixon
Jan Gruber wrote: > > What could be a possible reason, that functions exported by a module appear > like that in the Symbol Table: > > Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/Eris_Gate.pm:146] > Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/Eris_Gate.pm:147] > Eris_G

Re: search and replace using regex

2003-12-03 Thread Rob Dixon
Drieux wrote: > > On Dec 3, 2003, at 12:25 PM, Saskia van der Elst wrote: > > > I have trouble executing a search and replace through all files in a > > certain > > directory. > > > > I want to replace " _ > > > Can I match a white-space? > > > > I have tried the following regex: > > > > s/ _\ [..]

RE: using perl in a c code

2003-12-03 Thread Dan Muey
Don't get me wrong, I have no practical reason for running website stuff from C. I think it may be valueable to know at some point and would be a terrific learning experience. > Now as for the code fragment: Which is a Perl example of what I think would be cool to be able to do with C... >> my

Re: search and replace using regex

2003-12-03 Thread Rob Dixon
Saskia Van Der Elst wrote: > > I have trouble executing a search and replace through all files in a certain > directory. > > I want to replace " _ > Can I match a white-space? > > I have tried the following regex: > > s/ _\

RE: using perl in a c code

2003-12-03 Thread Dan Muey
> On Tue, Dec 02, 2003 at 05:40:14PM -0600 Dan Muey wrote: > > > What I was wondering about was how to execute some perl > code *inside* > > the c program instead of takign it via ARGV. I think eval_pv and > > eval_sv have somethgin to do with it but I'm a bit cloudy > there. Since > > I don't

Re: RE: Reading files

2003-12-03 Thread mgoland
Hi Bob, Thanks for a good reply, see my coments under your questions. - Original Message - From: Bob Showalter <[EMAIL PROTECTED]> Date: Wednesday, December 3, 2003 9:54 am Subject: RE: Reading files > [EMAIL PROTECTED] wrote: > > Hello All, > > I am trying to open a file once , and t

Timing several processes

2003-12-03 Thread Akens, Anthony
Hi all! I'm wanting to write a simple web-based tool to see the status of several servers at a glance. I know there are many solutions existing, but I can't learn as much about perl by just using one of those as I can by writing my own. The first step I want to do is call a script from cron th

Re: Undefined subroutine

2003-12-03 Thread Jan Gruber
Hi > Where is Eris_Gate.pm, and what is its package declaration? From > what you say it should be in > /usr/lib/perl5/site_perl/5.8.0/Modules Right, its in there. > and should read > package Modules::Eris_Gate NO, it didn't. It read "package Eris_gate" before. Thanks, I missed this one at

Re: using perl in a c code

2003-12-03 Thread Tassilo von Parseval
On Wed, Dec 03, 2003 at 09:35:54AM -0600 Dan Muey wrote: > > On Tue, Dec 02, 2003 at 05:40:14PM -0600 Dan Muey wrote: > > > > > What I was wondering about was how to execute some perl > > code *inside* > > > the c program instead of takign it via ARGV. I think eval_pv and > > > eval_sv have som

Re: Undefined subroutine

2003-12-03 Thread drieux
On Dec 3, 2003, at 3:59 AM, Jan Gruber wrote: [..] What could be a possible reason, that functions exported by a module appear like that in the Symbol Table: Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/ Eris_Gate.pm:146] Eris_Gate::__ANON__[/usr/lib/perl5/site_perl/5.8.0/Modules/

Re: Timing several processes

2003-12-03 Thread Casey West
It was Wednesday, December 03, 2003 when Akens, Anthony took the soap box, saying: : Hi all! : : I'm wanting to write a simple web-based tool to see the status : of several servers at a glance. I know there are many solutions : existing, but I can't learn as much about perl by just using one : o

Databases - MS Sql Server Desktop Engine

2003-12-03 Thread Paul Kraus
Is there a DBI driver for the MS Sql Server Desktop Engine? Paul -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Databases - MS Sql Server Desktop Engine

2003-12-03 Thread Aman Raheja
Someone will correct me if I am wrong, I don't have much Windows experience. Can't ODBC be used, in what you are doing? Aman Raheja AGF Technologies http://www.agftech.com - Original Message - From: "Paul Kraus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 03,

set a cookie and redirect using CGI.pm

2003-12-03 Thread Aman Raheja
Hello I want to set a user cookie and redirect to a different URL on the same domain. I searched and found alternate ways of doing it. I am looking for a way to do using CGI.pm Suggestions? Thank you Aman

RE: Timing several processes

2003-12-03 Thread Tom Kinzer
http://poe.perl.org Maybe this would be a good job for POE? -Tom Kinzer -Original Message- From: Akens, Anthony [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 7:49 AM To: [EMAIL PROTECTED] Subject: Timing several processes Hi all! I'm wanting to write a simple web-bas

RE: Databases - MS Sql Server Desktop Engine

2003-12-03 Thread Paul Kraus
I can't figure out how to connect to the database engine with odbc. Paul Kraus Xp pro sp1 workstation. > -Original Message- > From: Aman Raheja [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 12:23 PM > To: [EMAIL PROTECTED] > Subject: Re: Databases - MS Sql Server Deskto

RE: using perl in a c code

2003-12-03 Thread Dan Muey
> > Can you once more explain why you want a C program that > executes Perl code given as a string? Mainly learning purposes to better my mind > And how should the Perl > code be injected into the C program? To illustrate it in Perl: $perlcode = q(print "monkey";); eval $perlcode; Excpet in C

RE: Timing several processes

2003-12-03 Thread Akens, Anthony
I already have some ideas for how I want to build the page, how to parse the data I will generate, etc. As I said, I've looked at some of the other tools out there, and want to stick to some simple perl code to parse out the information and return the results. The only bit I'm not sure of is h

Re: perl -ne 'if(/rcn/) {print "$ARGV: $_" unless -d}' *

2003-12-03 Thread Jerry Rocteur
On Tuesday, Dec 2, 2003, at 21:06 Europe/Brussels, John W. Krahn wrote: Jerry Rocteur wrote: Hi, Hello, I'm trying to use perl for most shell stuff and this is some of the stuff I'm using for grep .. perl -ne 'print "$ARGV: $_" if /jerry/i ' * perl -ne 'print if /jer{1,}y/i ' * perl -ne 'print

Re: using perl in a c code

2003-12-03 Thread drieux
On Dec 3, 2003, at 7:06 AM, Dan Muey wrote: Don't get me wrong, I have no practical reason for running website stuff from C. I think it may be valueable to know at some point and would be a terrific learning experience. Sorry for panicking Early Technically I can understand the Intellectual I

RE: Timing several processes

2003-12-03 Thread Akens, Anthony
To clarify, I found the following in "Learning Perl". It doesn't quite make sense to me, though. Perhaps someone Can clarify what's going on in this? defined(my $pid = fork) or die "Cannot fork: $!"; unless ($pid) { # Child process is here exec "date"; die "cannot exec date: $!"; } # Paren

RE: Timing several processes

2003-12-03 Thread Tom Kinzer
Right. POE may be a good tool for handling those children processes. (Instead of forking at all.) -Tom Kinzer -Original Message- From: Akens, Anthony [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 9:58 AM To: Tom Kinzer; [EMAIL PROTECTED] Subject: RE: Timing several proces

RE: using perl in a c code

2003-12-03 Thread Dan Muey
Thanks for the info. > On Dec 3, 2003, at 7:06 AM, Dan Muey wrote: > > > Don't get me wrong, I have no practical reason > > for running website stuff from C. I think it may > > be valueable to know at some point and would be a > > terrific learning experience. > > Sorry for panicking Early >

RE: Timing several processes

2003-12-03 Thread Tom Kinzer
Correct. You could spawn 5 and then do 5 waits. Assuming you want to do nothing until all 5 finish. But: Do you actually want to do a timer for those 5 processes, run for a certain amount of time and then have them stop?? Then check to make sure all 5 are done, then do some other stuff (report

Re: search and replace using regex

2003-12-03 Thread drieux
On Dec 3, 2003, at 7:06 AM, Rob Dixon wrote: [..] remember that those double quotes will allow things to be 'interpolated' - which is not what you want. No they won't: they're not string delimiters in this context so they'll be treated as any other non-special character between the real s/// slash

RE: Timing several processes

2003-12-03 Thread Wiggins d Anconia
I was going to suggest POE as well, 'til I saw that little word 'simple' :-)... Have you read: perldoc perlipc perldoc -f fork perldoc -f wait perldoc -f waitpid Of course POE is what makes keeping track of all those spun off processes trivial, but learning it is I will admit not trivial... htt

RE: using perl in a c code

2003-12-03 Thread david
Dan Muey wrote: [snip] > > perlemb.c:18: macro `SvPV' used with just one arg > > So I tried it as > printf("%s", SvPV(eval_pv(perlcode),n_a)); > Which is how it was in another example and got: you don't need to supply n_a if you are not intested in the length of the SV, Perl has another api f

Re: using perl in a c code

2003-12-03 Thread Tassilo von Parseval
On Wed, Dec 03, 2003 at 11:33:53AM -0600 Dan Muey wrote: > Ok, I can compile this example with: > cc -o perlemb perlemb.c `perl -MExtUtils::Embed -e ccopts -e ldopts` > > I can run it like this: > ./perlemb -e 'print "Howdy";' > Howdy > Or > ./perlemb > print "Howdy"; > > Howdy > > Here's wha

Re: set a cookie and redirect using CGI.pm

2003-12-03 Thread Wiggins d Anconia
> > > Hello > > I want to set a user cookie and redirect to a different URL on the same domain. > I searched and found alternate ways of doing it. > > I am looking for a way to do using CGI.pm > > Suggestions? > What have you tried and what didn't work? A cookie is really just a part of t

Re: Undefined subroutine

2003-12-03 Thread drieux
On Dec 3, 2003, at 7:55 AM, Jan Gruber wrote: [..] Where is Eris_Gate.pm, and what is its package declaration? From what you say it should be in /usr/lib/perl5/site_perl/5.8.0/Modules Right, its in there. and should read package Modules::Eris_Gate NO, it didn't. It read "package Eris_gate" bef

RE: Timing several processes

2003-12-03 Thread Akens, Anthony
Here's the sample code I'm trying... In essence I would expect to see The following output: Running vmstat Running sar Waiting... (at this point a long wait while sar and vmstat finish) Done! Instead I am seeing: Running vmstat Running sar (The long wait is here) Waiting... Done! In wat

first steps - read from files and make linklist

2003-12-03 Thread Stephan Hochhaus
Hello list, I am trying to write my very own first "useful" program and I am in need of some help. I do have a lot of ressources (a book by Andrew Johnson, the yellow book for dummies and lots of hypertexts) but I cannot seem to get things done the way they're supposed to work. I am completely

Re: first steps - read from files and make linklist

2003-12-03 Thread Jonathan Jesse
Hello list, I am as well a beginner to Perl and am currently working my way through the LLama and I have also purchased the Camel and am looking through it. My goal is to be able to do some programming for a MySQL database that I am in charge of running. Any help along with the previous messag

Re: first steps - read from files and make linklist

2003-12-03 Thread drowl
> Hello list, > > I am trying to write my very own first "useful" program and I am in > need of some help. I do have a lot of ressources (a book by Andrew > Johnson, the yellow book for dummies and lots of hypertexts) but I > cannot seem to get things done the way they're supposed to work. I am >

remove control chars

2003-12-03 Thread Kipp, James
Hi I have some C code that I need to convert to perl and I am pressed for time, which is why I am posting this. All the code does is read each character from either STDIN or a file and replaces any ASCII control characters with a space. Is the perl getc() function the best way to look at one char

Re: remove control chars

2003-12-03 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. I know we all do research before posting here, in som

RE: using perl in a c code

2003-12-03 Thread Dan Muey
> > [panda]# perl ${PATH}/xsubpp -v > xsubpp version 1.9507 > finally, i am VERY surprise that your code: > > >const char *perlcode = "use CGI 'header';print header();print 'hello > World';"; > > will work at all. the reason being is that the Perl > interpreter you create > with: > > > st

help with removing control chars

2003-12-03 Thread Kipp, James
Hi I have some C code that I need to convert to perl and I am pressed for time, which is why I am posting this. All the code does is read each character from either STDIN or a file and replaces any ASCII control characters with a space. Is the perl getc() function the best way to look at one char

Re: help with removing control chars

2003-12-03 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. I know we all do research before posting here, in som

RE: first steps - read from files and make linklist

2003-12-03 Thread Bob Showalter
Stephan Hochhaus wrote: > Hello list, > > I am trying to write my very own first "useful" program and I am in > need of some help. I do have a lot of ressources (a book by Andrew > Johnson, the yellow book for dummies and lots of hypertexts) but I > cannot seem to get things done the way they're s

RE: remove control chars

2003-12-03 Thread Bob Showalter
Kipp, James wrote: > Hi > I have some C code that I need to convert to perl and I am pressed > for time, which is why I am posting this. All the code does is read > each character from either STDIN or a file and replaces any ASCII > control characters with a space. > > Is the perl getc() function

First Steps Perl DB programming (was: Re: first steps - read from files and make linklist)

2003-12-03 Thread Wiggins d Anconia
> Hello list, > I am as well a beginner to Perl and am currently working my way through > the LLama and I have also purchased the Camel and am looking through it. > My goal is to be able to do some programming for a MySQL database that I > am in charge of running. Any help along with the pre

Re: remove control chars

2003-12-03 Thread Casey West
It was Wednesday, December 03, 2003 when Bob Showalter took the soap box, saying: : The following one-liner will do the trick: : : perl -pe 'BEGIN {$/=\8192} tr/\040-\176/ /c' myfile : : The /c on the tr/// operator complements the search range, so everything : *not* in the range 040 to 176 gets

Re: first steps - read from files and make linklist

2003-12-03 Thread Stephan Hochhaus
The while() reads a line into the $_ variable, but you're not printing that; you're printing the filename itself. So you'll get one line of (the same) output for each line in the file. Ah, I should have seen that in the first place Then to show just the 'perl.txt' part, use: print basename($

RE: first steps - read from files and make linklist

2003-12-03 Thread Bob Showalter
Stephan Hochhaus wrote: > > The while() reads a line into the $_ variable, but you're not > > printing that; you're printing the filename itself. So you'll get > > one line of (the same) output for each line in the file. > Ah, I should have seen that in the first place > > > Then to show just the

RE: remove control chars

2003-12-03 Thread Kipp, James
> > > > Is the perl getc() function the best way to look at one char at a > > time? > > > > The C code looks like below. I have some ideas but I am not sure of > > the best way to represent these char ranges in perl > > -- > > while ( !feof(fin) ) { > > ch=getc(fin); > > > > if ( (ch<

Re: remove control chars

2003-12-03 Thread Jeff 'japhy' Pinyan
On Dec 3, Kipp, James said: >Is the perl getc() function the best way to look at one char at a time? The C way is always never the Perl way. > while ( !feof(fin) ) { >ch=getc(fin); > >if ( (ch<=0176) && (ch>=040) || (ch=='\n') ) { > putc( ch, stdout ); >} else { > putc( '

RE: Timing several processes

2003-12-03 Thread Akens, Anthony
It seems as if my example was doing what it was intended to do, the "problem" was in the exec for sar... It seems that using redirection with the sar command is a little different then I expected... it does not write anything to the output file until it is finished. As for the "Waiting..." line n

RE: remove control chars

2003-12-03 Thread Kipp, James
> >if ( (ch<=0176) && (ch>=040) || (ch=='\n') ) { > > putc( ch, stdout ); > >} else { > > putc( ' ', stdout ); > >} > > } > > perl -pi.bak -e 'tr/\040-\176\n/ /c' file > Thanks. For some reason, this is not working like the C code is ( my desired result) C: echo | c

RE: remove control chars

2003-12-03 Thread Kipp, James
> Thanks. For some reason, this is not working like the C code > is ( my desired result) > > C: > echo | cvt > adc def > hij > > Perl: > echo "abc^Hdef\nhij" | perl -pe 'tr/\040-\176\n/ /c' > abc^Hdef > hij > perl -pi.bak -e 'tr/\040-\176\n/ /c' file > That'll change all char

Re: remove control chars

2003-12-03 Thread John W. Krahn
James Kipp wrote: > > Hi Hello, > I have some C code that I need to convert to perl and I am pressed for time, > which is why I am posting this. All the code does is read each character > from either STDIN or a file and replaces any ASCII control characters with a > space. Including "\t" and "

Re: first steps - read from files and make linklist

2003-12-03 Thread Stephan Hochhaus
Hello Bob, thanks a lot for your help! read the documentation and you'll see that the basename() function can remove extensions as well. Done that :-) The final app looks like this: #!/usr/bin/perl use strict; use diagnostics; use File::Basename; fileparse_set_fstype( 'Unix' ); #HTML blah blah

RE: remove control chars

2003-12-03 Thread Kipp, James
THanks. worked fine as well ! > -Original Message- > From: John W. Krahn [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2003 4:24 PM > To: [EMAIL PROTECTED] > Subject: Re: remove control chars > > > Including "\t" and "\n"? > > > > Is the perl getc() function the best way

RE: using perl in a c code

2003-12-03 Thread Dan Muey
Thank yu Tassilo and David for your insights!! > > > Maybe I can also point you to [EMAIL PROTECTED] If you want > to do the occasional XS or embedding, this mailing-list is > the right place to consult. I may do that, thanks! Ok heres what #include #include static PerlInterpreter *my_p

Re: Reading files

2003-12-03 Thread drieux
On Dec 3, 2003, at 7:44 AM, [EMAIL PROTECTED] wrote: how can I dup file handles do you mean: open(LOG, ">>/tmp/logfile"); open(STDERR, ">&LOG"); hence you code is One $ over the line? #!/usr/bin/perl -w use strict; # this would help you with finding those

RE: using perl in a c code

2003-12-03 Thread david
Dan Muey wrote: [snip] > /* From David >printf("%s",SvPV_nolen(eval_pv(perlcode,0))); > at compile: > cc -o perlemb perlemb.c `perl -MExtUtils::Embed -e ccopts -e ldopts` > /tmp/ccTi5bTD.o: In function `main': > /tmp/ccTi5bTD.o(.text+0x77): undefined reference to `eval_pv' > /tmp/ccTi5bTD.o(.

Crypt::CBC

2003-12-03 Thread Phil Schaechter
What am I doing wrong? I encrypt a tar file and immediatly decrypt it (in a different function, however) and it is a totally borked file upon decryption. I've basically copy-pasted the example from Crypt:CBC. The only clue I have is this warning: Use of uninitialized value in pack at /usr/

Re: Crypt::CBC

2003-12-03 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice, legal API for s

RE: using perl in a c code

2003-12-03 Thread Dan Muey
> Dan Muey wrote: > > [snip] > > > /* From David > >printf("%s",SvPV_nolen(eval_pv(perlcode,0))); > > at compile: > > cc -o perlemb perlemb.c `perl -MExtUtils::Embed -e ccopts -e ldopts` > > /tmp/ccTi5bTD.o: In function `main': > > /tmp/ccTi5bTD.o(.text+0x77): undefined reference to `eval_pv

RE: using perl in a c code

2003-12-03 Thread david
Dan Muey wrote: [snip] > Doh! I was on 5.5, 5.8 just worked for me to, 5.6.1 also! > Great! Awesome! Perfect! One little catch now is > it'd be nice to just do ./test or ./test name=value&name2=val2 instead of > ./test -e '' > Or ./test > this can easily be solve by adding: char* nothing[] =

Re: using perl in a c code

2003-12-03 Thread drieux
On Dec 3, 2003, at 3:17 PM, Dan Muey wrote: [..] Doh! I was on 5.5, 5.8 just worked for me to, 5.6.1 also! just wait until you have to remember, did this work with gcc2.X or only with gcc3.Y... and how exactly did I get it to build for the DogBertOS??? Before you get too lost, you

Re: Timing several processes

2003-12-03 Thread drieux
On Dec 3, 2003, at 10:49 AM, Akens, Anthony wrote: [..] print "Running vmstat\n"; defined(my $vmstat_pid = fork) or die "Cannot fork: $!"; unless ($vmstat_pid) { exec "vmstat 5 5 > /log/monitor/delta/vmstat.out"; die "cannot exec vmstat: $!"; } print "Running sar\n"; defined(my $sar_pid = fork)

Re: Crypt::CBC

2003-12-03 Thread Wiggins d'Anconia
Phil Schaechter wrote: What am I doing wrong? I encrypt a tar file and immediatly decrypt it (in a different function, however) and it is a totally borked file upon decryption. I've basically copy-pasted the example from Crypt:CBC. The only clue I have is this warning: Use of uninitialize

Re: Bio::MAGE

2003-12-03 Thread Wiggins d'Anconia
Sebastian Jünemann wrote: Hi List! Im new in Perl and just starting with a big Mission... I have to use teh Bio::MAGE Modul to Parse Mage-ML Files ( these ar eXML-Files) and put them in a SQL DB! But this Modul is really huge and besides i must modify they due to we use 02DBI instead of the inc

Re: Timing several processes

2003-12-03 Thread Wiggins d'Anconia
drieux wrote: So while you are in the process of learning fork() and exec() why not think a bit more agressively and go with say a pipe to pass back the information so as not to buy the IO overhead of writing to files? While the following was written for a command line 'let us get interactive

Re: Timing several processes

2003-12-03 Thread drieux
On Dec 3, 2003, at 5:01 PM, Wiggins d'Anconia wrote: [..] it might be a framework you could rip off and use: Have we come back to POE? POE. ;-) who knows, after a bit of work the OP may decide that the 400m of downloadable free software

Help access SQL Data using Hashes

2003-12-03 Thread Patrick Shoaf
I am retrieving the following data from MySQL. I need to access the data via some sort of Hash or Array. I need to take this data and create a web page using some some of the data to create Java Script Arrays, while the rest is simply display on the web page. Any all help is appreciated... D

Re: Help access SQL Data using Hashes

2003-12-03 Thread Casey West
Hi. I'm in the employ of Casey West, a list admin, to assist you with your question. I've taken the liberty to search Google using the Subject line you provided in your email to the list. I hope one of the links below will be of service to you. Sadly Google hasn't given us a nice, legal API for s

Re: using perl in a c code

2003-12-03 Thread R. Joseph Newton
Dan Muey wrote: > > On Dec 1, 2003, at 6:22 AM, Ramprasad A Padmanabhan wrote: > > [..] > > > Instead Can I just embed this perl code in my c program > > > I will be happy if someone can give some links to examples > > on the net > > > > > > Tha

Beta Testing a Robot

2003-12-03 Thread Casey West
I'm beta-testing a robot that searches Google when new questions are posed to the beginners' lists. I have no idea if it will be useful. :-) I'm going to watch it closely and hope it is. I'll remove it if I find that it does a bad job. Casey West -- Good Idea: Kissing a loved one. Bad Idea: