Hi,
Anyone know any URL about libwww example / tutorial?
I cant find decent source. I just want to learn how to GET an ouput from a website and
parse the
output.
from one of example, I can print the output like this :
if ($res->is_success) {
print $res->content;
} else {
prin
On Fri, 22 Nov 2002 at 15:56, Mike(mickako)Blezien opined:
M: @lists = split(/ /,param('list'));
from perldoc CGI:
FETCHING THE VALUE OR VALUES OF A SINGLE NAMED PARAMETER:
@values = $query->param('foo');
-or-
$value = $query->param('foo');
--
On Sat, 23 Nov 2002 at 05:07, Admin-Stress opined:
A: if ($res->is_success) {
A: print $res->content;
A: } else {
A: print "Error: " . $res->status_line . "\n";
A: }
A:
A:What is the variable type of $res->content ? is it Array? Because it
A:just dumped the output (multiple lines),
Two things:
1) Your action parameter of the form tag was pointing to a separate program.
If you leave it blank (or leave it out altogether), then this same script
will process it.
2) You don't need to split param('list') - CGI.pm will automatically make an
array for you, if it contains multiple ent
> I know I am missing a lot in my knowledge, but I'm trying to figure
> something out & seemingly am in a hole...
MySQL can do a lot of this for you, I believe...
You want a random record from the database and retrieve a particular field
from that record:
# Untested, but you would call this subr
here is an example of MySQL code to pick a random
record using some select criteria. i use it in a
homepage for an online store where my client has
random items from his catalog displayed as "featured"
items (really nothing more than picking a random
record from the 10,000+ items!)...
$mysql_que
does anybody have any really good sites or books that deal just with CGI as
in applications to web programming. Almost all i have found in the book area
is how to code perl in the command line interface. I looking for just web
based stuff.
Thanks
Always look to O'Reilly first, they usually have something not only relevant
to your request, but well-written and comprehensive as well.
Try "CGI Programming with Perl". It's the one with the mouse on the cover.
I don't have this one, but I hear "The Perl Cookbook" is supposed to be good
also.
try the O Reilly series. there is a great book, CGI Proramming With Perl
that I use all the time.
hth
Al
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 23, 2002 5:26 PM
> To: [EMAIL PROTECTED]
> Subject: tutorials
>
>
> does anybody h
Perl Cookbook is a very good book too...
Al
> -Original Message-
> From: Scot Robnett [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 23, 2002 5:30 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: tutorials
>
>
> Always look to O'Reilly first, they usually have somethi
It is a very good book, but I am not sure it is what the original poster
was looking for, I don't think it is geared towards the cgi spectrum of
Perl. It is great for doing specific tasks, many of which can be
implemented in multiple arenas, but as a CGI book it really isn't.
Along with the CG
Don't forget about the "Official Guide To Programming With CGI.pm". The book is hard
to find but the site has a lot of information and examples:
http://www.wiley.com/legacy/compbooks/stein/index.html
-Original Message-
From: "Al Hospers"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL P
I have a text file i called users.dat
I want to be able to delete users from the list
ie i have form with a text input, and i would like to be able to type the
name in and have it delted from my users.dat
how can i remove the file?
thanks guys, you were great on my last question
Ambrose
Yes, CGI with Perl is a great one. I wish they would print a 3rd Edition though.
-Original Message-
From: "Scot Robnett"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Sat Nov 23 14:30:15 PST 2002
Subject: Re: tutorials
>Always look to O'Reilly first, they usually have
On Sat, 23 Nov 2002 at 17:25, [EMAIL PROTECTED] opined:
:does anybody have any really good sites or books that deal just with CGI as
:in applications to web programming. Almost all i have found in the book area
:is how to code perl in the command line interface. I looking for just web
:based st
Du you want to remove the file as you told us, or you want to remove a line
from the file?
Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 24, 2002 3:13 AM
Subject: removing
16 matches
Mail list logo