Custom message formatting callback for Log::Dispatch

2005-07-08 Thread Dan Fish
I want to set up Log::Dispatch with two outputs... "file" and "email". I'd like to use a callback function to do custom formatting of the message based on whether the output is going to a logfile or email. I.E. a one line entry if sent to logfile and a verbose description, possibly including html

Re: array names

2005-07-08 Thread John W. Krahn
The Ghost wrote: i want to do this: @arraynames = ( 'ernie', 'bert', 'bbird'); foreach $name (@arraynames) { push @$name, $someValue; } so I have an array @ernie, another array @bert, etc... so how? Something like this: my %arraynames = ( ernie => [], bert => [], bbird =

RE: array names

2005-07-08 Thread Charles K. Clarkson
The Ghost wrote: : i want to do this: : : @arraynames = ( 'ernie', 'bert', 'bbird'); : : foreach $name (@arraynames) { : push @$name, $someValue; : } : so I have an array @ernie, another array @bert, etc... : Make the array names keys in a hash

array names

2005-07-08 Thread The Ghost
i want to do this: @arraynames = ( 'ernie', 'bert', 'bbird'); foreach $name (@arraynames) { push @$name, $someValue; } so I have an array @ernie, another array @bert, etc... so how? Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Re: How can I access the Serial Port usnig perl

2005-07-08 Thread Chris Devers
On Fri, 8 Jul 2005, pranesh krishnan wrote: I ve started studying Perl. How can I use perl in Writing Embedded Applications It depends on the embedded application. Have a specific question? I[']m Using C language [a]nd how to incorporate Perl in C , The Inline::C module may be useful to yo

Re: answering prompts using expect or perl

2005-07-08 Thread JupiterHost.Net
As people have recommended to you nearing close thousands of times :) search.cpan.org for "Expect" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

answering prompts using expect or perl

2005-07-08 Thread DBSMITH
Yo...what up. I have wrote this perl program to automatically download a block of strings specifically a public key. I opted for cURL instead of lwp but may switch as of yet. My question is when I goto sign the new key I am prompted with as in red : pub 1024D/886EC5AB created: 2005-03-28

Re: Multitasking

2005-07-08 Thread Wiggins d'Anconia
Please group reply to prevent getting accidentally ignored and so everyone can help and be helped. Also please bottom post. [EMAIL PROTECTED] wrote: > Well, I have tried some modules, etc, but none of them have been > properly documented, or made the documentation available to any > mortals. Afte

Re: Help, single quotation mark conflicts error in SQL statement!

2005-07-08 Thread Nan Jiang
Thanks indeed! Actually I feel so bad that I found many codes without enough explanations...:-) Nan From: Chris Devers <[EMAIL PROTECTED]> Reply-To: beginners@perl.org To: Nan Jiang <[EMAIL PROTECTED]> CC: beginners@perl.org Subject: Re: Help, single quotation mark conflicts error in SQL state

Re: Help, single quotation mark conflicts error in SQL statement!

2005-07-08 Thread Chris Devers
On Fri, 8 Jul 2005, Nan Jiang wrote: Anyway, can I just use this statement below instead of yours as I set id is INT with AUTOINCREMENT? my $sql = q[INSERT INTO table1 VALUES (?, ?, ?)]; Absolutely. Experiment with it, and use the approach that works best for you. Never take the code that

Re: Help, single quotation mark conflicts error in SQL statement!

2005-07-08 Thread Nan Jiang
Much appreciated! :-) I'll try it and get back to you ASAP. Anyway, can I just use this statement below instead of yours as I set id is INT with AUTOINCREMENT? my $sql = q[INSERT INTO table1 VALUES (?, ?, ?)]; Nan From: Chris Devers <[EMAIL PROTECTED]> Reply-To: beginners@perl.org To: Nan

Re: Help, single quotation mark conflicts error in SQL statement!

2005-07-08 Thread Chris Devers
On Fri, 8 Jul 2005, Nan Jiang wrote: I'm trying to add data to my mysql database, however, I received a SQL syntax error because sometimes my string variable contains single quotation mark ('). Does anyone know how to cope with it? My statement is below: $dbh->do("INSERT INTO table1 values(

RE: Query about "ssh" from perl program

2005-07-08 Thread Dhanashri Bhate
Hello John, Thank you very much! I made changes as per your inputs and it worked, Thanks again, Dhanashri -> -Original Message- -> From: Moon, John [mailto:[EMAIL PROTECTED] -> Sent: Friday, July 08, 2005 4:21 PM -> To: Dhanashri Bhate; beginners@perl.org -> Subject: RE: Query about "s

Re: Help, single quotation mark conflicts error in SQL statement!

2005-07-08 Thread Ing. Branislav Gerzo
Nan Jiang [NJ], on Friday, July 08, 2005 at 11:15 (+) has on mind: NJ> My statement is below: NJ> $dbh->do("INSERT INTO table1 values(id, '$_', '$t')") foreach sort keys NJ> %temp; you really should read guide for database statements, this is not way how to do these things. for example: ht

Help, single quotation mark conflicts error in SQL statement!

2005-07-08 Thread Nan Jiang
Hi All, I'm trying to add data to my mysql database, however, I received a SQL syntax error because sometimes my string variable contains single quotation mark ('). Does anyone know how to cope with it? My statement is below: $dbh->do("INSERT INTO table1 values(id, '$_', '$t')") foreach sor

RE: Query about "ssh" from perl program

2005-07-08 Thread Moon, John
Subject: Query about "ssh" from perl program Hello All, I have a query about using "ssh" programmatically. I tried using both system and exec, but didn't work. I mean, I wanted some processing to happen on the remote machine to which i connect with "ssh", which is not happening. I have copied

How can I access the Serial Port usnig perl

2005-07-08 Thread pranesh krishnan
Dear All This is Pranesh , a Fresh Engineer, I ve started studying Perl. How can I use perl in Writing Embedded Applications , Im Using C language ,nd how to incorporate Perl in C , For instance , How can I use Perl Programming in Accessing the RFID Reader through Serial Port. Is th