I found this excelent article about this subject at:
A Short Guide to DBI: http://www.perl.com/pub/a/1999/10/DBI.html
bnegrao.
- Original Message -
From: Octavian Rasnita [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 15, 2002 1:27 AM
Subject: Using MySQL
Hi all,
=~ /=/){
$out = $line ;
$out =~ s/\s*//;
print $out;
}
}
I learnt all this from the O'reilly book Learning Perl second edition.
Tied hugs and warmfull kisses,
Bruno Negrão.
- Original Message -
From: Javeed SAR
To: Bruno Negrao - Perl List
Sent
start_form,
Please select a flavor: , textfield(flavor,mint);
print end_form, hr;
};
exit;
I'm new to perl myself, so haven't found out why textfields aren't working
with print q. Please let me know if you find out.
Best Regards
Richard
Bruno Negrao - Perl List [EMAIL PROTECTED
No Richard, just in this script. The other cgi examples are correct.
Is this the way it is printed in your book? Did they switch q and p all
over
the book?
Bruno Negrao - Perl List [EMAIL PROTECTED] wrote in message
001e01c26ba7$4b219e00$5100a8c0@egp">news:001e01c26ba7$4b219e00$
Hi Javeed ,
the last element of the array is $attt[$#attt]. If you have one line per
element, that should do it.
Right. This is the easiest way. But, just to answer him, what he could do
using regular expression could be something like:
foreach (@attt) {
/=/ ( ($out) = (split (/=/))[1]
Hi all,
I'm studying the Learning Perl Second Edition and I'm learning cgi now.
The book presents a sample cgi that doesn't produces the expected result as
the book says it would. In sumary, this script should generate an one field
form with a default value - mint. But what appears in the screen
Hi all,
I'm studying the Learning Perl Second Edition and I'm learning cgi now.
The book presents a sample cgi that doesn't produces the expected result as
the book says it would.
Could someone test it and say to me if there is something wrong?
The following script was retired from the section
Hello Nathanael and other guys,
First of all, if possible, use the Llama 3rd, not 2nd.
It's not... :-(
Second, can you give the expected output and the actual output.
I tried to send the pictures to this list but my e-mail was rejected as it
grew upon 5 bytes
In sumary, this script
select a flavor: , textfield(flavor,mint));
print end_form, hr;
}
Thanks,
bnegrao.
- Original Message -
From: Bruno Negrao - Perl List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 9:44 PM
Subject: Re: CGI simple but not working
Hello Nathanael and other
[EMAIL PROTECTED]
Sent: Friday, September 27, 2002 1:04 AM
Subject: Re: dbmopen can't open /etc/aliases.db file
On Thu, Sep 26, 2002 at 09:38:18PM -0300, Bruno Negrao - Perl List wrote:
Hi,
Hi Bruno,
I'm triyng to open the /etc/aliases.db file for reading with the dbmopen
function
it the dbmopen()
really works with my system files.
Thanks for any help,
Bruno.
- Original Message -
From: nkuipers [EMAIL PROTECTED]
To: Bruno Negrao - Perl List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 27, 2002 12:30 PM
Subject: RE: dbmopen can't open /etc/aliases.db
it the dbmopen()
really works with my system files.
Thanks for any help,
Bruno.
- Original Message -
From: nkuipers [EMAIL PROTECTED]
To: Bruno Negrao - Perl List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 27, 2002 12:30 PM
Subject: RE: dbmopen can't open /etc/aliases.db
Bruno Negrao - Perl List wrote:
Hi Michael, the problem is not with the undef value - undef is fine -
if you read the dbmopen's documentation you could see it.
If I choose a value like 0644 the script still doesn't work.
Bellow, is the output of the execution of the same program
Subject: Re: dbmopen can't open /etc/aliases.db file
Bruno Negrao - Perl List wrote:
Ok david.
Could you send me a code example of a database file being opened for
reading with tie?
thanks,
bnegrao.
use NDBM_File;
tie(%HIST, 'NDBM_File', '/usr/lib/news/history', 1, 0);
while
Yes. Exist the Net::FTP module. The following text comes from the Oreilly's
book Perl in a Nutshell
16.2 Net::FTP
Net::FTP is used to transfer files from remote hosts. Using Net::FTP, you
can write simple FTP clients that transfer files from remote servers based
on information passed on the
Hi,
I'm triyng to open the /etc/aliases.db file for reading with the dbmopen
function - the result is that I can't open the file for reading, or
something like this. yes, I have permission because I'm root.
My script is:
#!/usr/bin/perl -w
use diagnostics;
dbmopen(%ALIAS,'/etc/aliases',undef) ||
16 matches
Mail list logo