Delete/Archive older enteries.

2003-11-06 Thread Sara
I am trying to modify an already existing piece of code. This piece of code -> opens a db file -> split the records (one of which is date when the record was added) -> compare the dates with current date -> and remove all the records if those are old enteries (as specified to remove e.g 7 days old

HTTP::Request

2003-11-06 Thread Tobias Fink
Hi, why doesn't my $ua = LWP::UserAgent->new; my $res = $ua->request(GET 'http://www.google.de/search', q => 'asdasd'); if ($res->is_success) { my $server_response = $res->content; print $server_response; } print the html-source of http://www.google.de/search?q=asdasd ? Regards, Tobias

Re: HTTP::Request

2003-11-06 Thread Wiggins d'Anconia
Tobias Fink wrote: Hi, why doesn't my $ua = LWP::UserAgent->new; my $res = $ua->request(GET 'http://www.google.de/search', q => 'asdasd'); if ($res->is_success) { my $server_response = $res->content; print $server_response; } print the html-source of http://www.google.de/search?q=asdasd ?

Simple CGI question

2003-11-06 Thread Jack
Hello, I'm trying to redirect the output of my CGI (written in Perl) to another frame, but I'm not exactly sure how to do this. i.e. I have two frames on my page one on the right and one on the left. There is a form on the right frame. When the user clicks on the Submit button on my form, I'd l

Re: HTTP::Request

2003-11-06 Thread Sara
#!/usr/bin/perl use CGI; use LWP::UserAgent; my $q = new CGI; my $query = $q->param('query') || 'LWP'; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $response = $ua->get("http://search.cpan.org/search?query=$query";); if ($response->is_success) { my $server_response = $response->conte

removing apache

2003-11-06 Thread BetaGamma
Hi guys... If I want to remove my apache server do I need to only delete the $HOME/apache directory and delete the enteris from my .cshrc or anything else is also required. Thanks Pawan - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard

Re: Simple CGI question

2003-11-06 Thread Andrew Gaffney
Jack wrote: Hello, I'm trying to redirect the output of my CGI (written in Perl) to another frame, but I'm not exactly sure how to do this. i.e. I have two frames on my page one on the right and one on the left. There is a form on the right frame. When the user clicks on the Submit button on my

Re: HTTP::Request

2003-11-06 Thread drieux
On Thursday, Nov 6, 2003, at 15:12 US/Pacific, Tobias Fink wrote: [..] why doesn't my $ua = LWP::UserAgent->new; my $res = $ua->request(GET 'http://www.google.de/search', q => 'asdasd'); if ($res->is_success) { my $server_response = $res->content; print $server_response; } print the html-sou

Re: Delete/Archive older enteries.

2003-11-06 Thread drieux
On Wednesday, Nov 5, 2003, at 23:12 US/Pacific, Sara wrote: [..] foreach my $line(@lines) { chomp $line; my ($name, $id); ($name, $id) = split (/\|/, $line); if ($removeby > &date_to_delete($id)){next;} print DB "$line\n"; } close DB; [..] that's the operable part of your problem, it is in this fo

Re: Simple CGI question

2003-11-06 Thread drieux
On Thursday, Nov 6, 2003, at 16:42 US/Pacific, Andrew Gaffney wrote: Jack wrote: [..] When the user clicks on the Submit button on my form, I'd like to call a CGI script and redirect its output to the left frame. Could anyone please tell me how I can do this? In the right frame, put this: ...

Re: removing apache

2003-11-06 Thread Wiggins d'Anconia
BetaGamma wrote: Hi guys... If I want to remove my apache server do I need to only delete the $HOME/apache directory and delete the enteris from my .cshrc or anything else is also required. This is a Perl list, there are many lists for apache questions. There are way to many possiblities to e

Re: Simple CGI question

2003-11-06 Thread Andrew Gaffney
drieux wrote: On Thursday, Nov 6, 2003, at 16:42 US/Pacific, Andrew Gaffney wrote: Jack wrote: [..] When the user clicks on the Submit button on my form, I'd like to call a CGI script and redirect its output to the left frame. Could anyone please tell me how I can do this? In the right frame

RE: Simple CGI question

2003-11-06 Thread drieux
On Thursday, Nov 6, 2003, at 18:10 US/Pacific, Andrew Gaffney wrote: [..] ... substituting 'leftframe' for the name of the left frame and 'yourscriptlocation.pl' for the URL of your script. neet solution there, I hadn't thought about arming the 'onClick'. but why not have the form line simple so