Perl classified script..

2004-09-19 Thread Joe Echavarria
Hi there, I am looking for a complete perl/mysql classified software for an internet business. Something as complete as http://www.esvon.com/products/cl/index.php or better than that. Thanks.. Joe. __ Do you Yahoo!? New and Imp

adding hash to a hash

2004-09-19 Thread JupiterHost.Net
Howdy group, This seems like it should be simple, but I'm a bit stumped on the best way to do this: I want to add a hash to a hash, With arrays you could: push @arr2, @arr2; but what is the best way to do that with a hash? perl -MData::Dumper -mstrict -we 'my %q=(1=>2,3=>4);my %w=(5=>6,7=>8);pr

Re: adding hash to a hash

2004-09-19 Thread Felix Li
- Original Message - From: "JupiterHost.Net" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 19, 2004 6:56 PM Subject: adding hash to a hash > Howdy group, > > This seems like it should be simple, but I'm a bit stumped on the best > way to do this: > > I want to a

Re: adding hash to a hash

2004-09-19 Thread Jeff 'japhy' Pinyan
On Sep 19, JupiterHost.Net said: >I want to add a hash to a hash, > >So how can I add %w to %q in that example? The general way is: # to add %w to %q @q{keys %w} = values %w; If there are overlapping keys, %w's values will be used. -- Jeff "japhy" Pinyan % How can we ever be the

Re: adding hash to a hash

2004-09-19 Thread Gunnar Hjalmarsson
Jeff 'japhy' Pinyan wrote: On Sep 19, JupiterHost.Net said: I want to add a hash to a hash, So how can I add %w to %q in that example? The general way is: # to add %w to %q @q{keys %w} = values %w; If there are overlapping keys, %w's values will be used. Why not just %q = (%q, %w); -- Gunna

Re: adding hash to a hash

2004-09-19 Thread Jeff 'japhy' Pinyan
On Sep 20, Gunnar Hjalmarsson said: >Jeff 'japhy' Pinyan wrote: >> On Sep 19, JupiterHost.Net said: >>> >>>I want to add a hash to a hash, >>> >>>So how can I add %w to %q in that example? >> >> The general way is: >> >> # to add %w to %q >> @q{keys %w} = values %w; >> >> If there are overlapp

Re: adding hash to a hash

2004-09-19 Thread Gunnar Hjalmarsson
Jeff 'japhy' Pinyan wrote: Gunnar Hjalmarsson said: Jeff 'japhy' Pinyan wrote: The general way is: # to add %w to %q @q{keys %w} = values %w; If there are overlapping keys, %w's values will be used. Why not just %q = (%q, %w); Benchmark it to see which is better. The slice method seems to b

Re: adding hash to a hash

2004-09-19 Thread JupiterHost.Net
Thanks for the input! Bit of a brain freeze there ;p All 3 methods have the desired effect. Here is the benchmark info for thsoe playing along: Benchmark: timing 100 iterations of %q = (%q, %w); , @q{keys %w} = values %w;, my(%c)=huh(%a,%b);... %q = (%q, %w); : 0.459673 wallclock secs ( 0.46

Moving between hashes 2.

2004-09-19 Thread Michael S. Robeson II
Ok, well I think I can see the forest but I have little idea as to what is actually going on here. I spent a few hours looking things up and I have a general sense of what is actually occurring but I am getting lost in the details that were posted in the last digest. See below: On Sep 19, 2004,

Site management - content deletion stage 1

2004-09-19 Thread Johnstone, Colin
Gidday all, In our CMS (Interwoven Teamsite) I need to write a content deletion workflow. If a user is deleting a html page I need to parse that page and report on all assets (images, pdfs) attached to the page and delete them as well. How do I go about doing this? I'll do the legwork just broa

Re: adding hash to a hash

2004-09-19 Thread JupiterHost.Net
Ok, I think I've decided to go with 'assign' 1) Because the benchmark difference isn't much: splice 2008032/s ---3% assign 2074689/s 3% -- 2) And duplicate keys become the value of the newest hash on both ways: use Data::Dumper; my %w = (1=>2,3=>4); my %q = (3=>6,7=>8); @q{key

Copy folder using Net::FTP

2004-09-19 Thread Roime bin Puniran
I am new in PERL programming...I have one question to ask..How can i transfer a folder in 2 different machine using Net::FTP...Now, i can transfer a sigle file between 2 machine but i am still having problemm to transfer a folder using Net::FTP...Did anybony have any idea?Please help me.

Re: Moving between hashes 2.

2004-09-19 Thread Gunnar Hjalmarsson
Michael S. Robeson II wrote: Ok, well I think I can see the forest but I have little idea as to what is actually going on here. I spent a few hours looking things up and I have a general sense of what is actually occurring but I am getting lost in the details that were posted in the last digest. We

Re: Site management - content deletion stage 1

2004-09-19 Thread perl.org
On Mon, 20 Sep 2004 12:26:45 +1000, Johnstone, Colin wrote > Gidday all, > > In our CMS (Interwoven Teamsite) I need to write a content deletion workflow. Typically a job (workflow) variable is set to indicate all files associated with the joy should be "deleted", maybe using a checkbox on the

Re: Copy folder using Net::FTP

2004-09-19 Thread Chris Devers
On Mon, 20 Sep 2004, Roime bin Puniran wrote: > I am new in PERL programming... Okay -- it's "Perl" for the language, "perl" for the program that runs programs written in the language, and "PERL" for nothing. In spite of what some of the docs jokingly say, "Perl" doesn't stand for anything, so

Perl_parse() - bus error.

2004-09-19 Thread rajesh.banda
static PerlInterpreter *perlInterpreter = 0; void Analyzer_i::CreatePerlInterpreter() { perlInterpreter = perl_alloc(); perl_construct(perlInterpreter); const char * persLoader = "/opt/blasoss/uma/umatkt/tktsni/lbin/persistent.pl"; char* embedding[] = {"", (char *) persLoader};

RE: Copy folder using Net::FTP

2004-09-19 Thread Roime bin Puniran
Thanks for ur reply..Actually, i need to transfer a folder that continously updated. It's so difficult to tarball a directory first then send it through Net::FTP while the content of the directory always updated...I mean my problem is, i need to transfer a folder without tarball it first using N