[Perl-unix-users] Getting values from form_field

2003-01-08 Thread Devi .M


Hello all,

May i know how to get the values typed in the form field
Just i want a form with two or three fields 
If i enter any values i have to get those values and store in another file
i am using Curses for this
Any help is appreciated
Thanx in advance

Regards,
M. Devi

___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



[Perl-unix-users] Creating a MYSQL database programmatically via DBI

2003-01-08 Thread Ken Hilliard
Does anyone know how to create the initial database and tables
programmatically via DBI under MYSQL. I've been creating the application
database and required tables using the provided MYSQL utilities and then
using the Perl DBI to insert/update/delete records. I know that MYSQL's
command line utility allows you to script database and table creation;
however, I'd like to generate the database/tables using Perl. I realize the
solution will be MYSQL specific. It looks like there might be a way of
creating the database via the database driver handle but I'm not sure.

Thanks, Ken

___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



[Perl-unix-users] question about Mail::Sender

2003-01-08 Thread Merijn van den Kroonenberg
Hello all,

I am running perl 5.8.0 on linux and i am using the Mail::Sender module.
Whenever I use this module i get the following warning:

Unknown PerlIO layer 'raw:perlio' at
/usr/lib/perl5/site_perl/5.8.0/Mail/Sender.pm line 21

It seems this is something caused by perl version 5.8.0 because this is the
section in sender.pm causing the warning:

BEGIN {
if ($] >= 5.008) {
# fsck, the 5.8 is broken. The binmode() doesn't work for
socket()s.
require 'open.pm';
'open'->import(OUT=>":raw:perlio");
}
}

Anyone know if this warning is harmful (or what is the problem)? The module
seems to work fine, but i'd rather not have any suprises if possible.

thank you,

Merijn


___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Re: [Perl-unix-users] question about Mail::Sender

2003-01-08 Thread Jenda Krynicky
From: "Merijn van den Kroonenberg" <[EMAIL PROTECTED]>
> I am running perl 5.8.0 on linux and i am using the Mail::Sender
> module. Whenever I use this module i get the following warning:
> 
> Unknown PerlIO layer 'raw:perlio' at
> /usr/lib/perl5/site_perl/5.8.0/Mail/Sender.pm line 21
> 
> It seems this is something caused by perl version 5.8.0 because this
> is the section in sender.pm causing the warning:

Whoops. Sorry.

Please change the line 21 to
'open'->import(OUT=>":raw :perlio");

(add a space in front of the second colon)

This trickery is only necessary because of a bug in Perl 5.8 (already 
fixed in the development version AND ActivePerl!) that caused the 
binmode() to work incorrectly on socket()s under Windows.

I'll release a new fixed version of Mail::Sender very soon.

Thanks, Jenda
= [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery

___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: [Perl-unix-users] Creating a MYSQL database programmatically via DBI

2003-01-08 Thread Kirk
perldoc DBD::mysql

and from the above result in the 'admin' section:
...
$rc = $drh->func('createdb', $database, $host, $user, $password, 'admin');
...

and for table creation and in the 'example' section:
...
# Create a new table 'foo'. This must not fail, thus we don't
# catch errors.
$dbh->do("CREATE TABLE foo (id INTEGER, name VARCHAR(20)");
...





Kirk

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Ken
>Hilliard
>Sent: Wednesday, January 08, 2003 12:30 AM
>To: [EMAIL PROTECTED]
>Subject: [Perl-unix-users] Creating a MYSQL database programmatically
>via DBI
>
>
>Does anyone know how to create the initial database and tables
>programmatically via DBI under MYSQL. I've been creating the application
>database and required tables using the provided MYSQL utilities and then
>using the Perl DBI to insert/update/delete records. I know that MYSQL's
>command line utility allows you to script database and table creation;
>however, I'd like to generate the database/tables using Perl. I realize the
>solution will be MYSQL specific. It looks like there might be a way of
>creating the database via the database driver handle but I'm not sure.
>
>   Thanks, Ken
>
>___
>Perl-Unix-Users mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: [Perl-unix-users] Creating a MYSQL database programmatically via DBI

2003-01-08 Thread Ken Hilliard
Thanks, Kirk. I wrote a quick script and it worked fine.

-Original Message-
From: Kirk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 4:52 PM
To: Ken Hilliard
Cc: [EMAIL PROTECTED]
Subject: RE: [Perl-unix-users] Creating a MYSQL database
programmatically via DBI


perldoc DBD::mysql

and from the above result in the 'admin' section:
...
$rc = $drh->func('createdb', $database, $host, $user, $password, 'admin');
...

and for table creation and in the 'example' section:
...
# Create a new table 'foo'. This must not fail, thus we don't
# catch errors.
$dbh->do("CREATE TABLE foo (id INTEGER, name VARCHAR(20)");
...





Kirk

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Ken
>Hilliard
>Sent: Wednesday, January 08, 2003 12:30 AM
>To: [EMAIL PROTECTED]
>Subject: [Perl-unix-users] Creating a MYSQL database programmatically
>via DBI
>
>
>Does anyone know how to create the initial database and tables
>programmatically via DBI under MYSQL. I've been creating the application
>database and required tables using the provided MYSQL utilities and then
>using the Perl DBI to insert/update/delete records. I know that MYSQL's
>command line utility allows you to script database and table creation;
>however, I'd like to generate the database/tables using Perl. I realize the
>solution will be MYSQL specific. It looks like there might be a way of
>creating the database via the database driver handle but I'm not sure.
>
>   Thanks, Ken
>
>___
>Perl-Unix-Users mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



[Perl-unix-users] Perl and Serial ports

2003-01-08 Thread Mundell, R. \(Ronald\)
Title: Perl and Serial ports





Good Day All


How do one configure a serial port in perl? This is with regards to baud rate parity the whole nine yards. 


If anyone could assist me with this it would be greatly appreciated


Ronald