Re: Retrieving Dataset along with REcordsets

2008-09-12 Thread jeevs
On Sep 11, 7:12 pm, [EMAIL PROTECTED] (Jeevs) wrote: > I understand a $stmt->execute($sql) will return me the recordset and I > can fetch the records using fetchrow_hashref and other methods > > Howeveer I have a scenario where I get multiple datasets, ( Reason : > My Stored Procedure calls oth

Re: using ssh to do remote audit of machines

2008-09-12 Thread Ignacio
On Sep 9, 3:36 am, [EMAIL PROTECTED] (Gregory Machin) wrote: > Hi > I have a database with my servers details in .. I would like to write > a scripts to get the servers log on info ssh to the box and get basic > info using the following > > hostname > cat /etc/issue > cat /proc/cpuinfo | grep "mode

Character Sets and Encoding in Web Applications

2008-09-12 Thread Nigel Peck
I have a web application that gathers various data. When users enter pound signs (english money not #) a number of strange characters get stored in the database: Here's a copy and paste: £6.50 per hour Now I'm 99% sure this will be because I am not handling the character sets and enc

Re: Problems with the GnuPG::Interfaces Module in perl

2008-09-12 Thread Sebastian Cabrera
Hi You mean GnuPG::Interface ? (Perl is quantity-sensitive :-) I've just searched the GnuPG-Interface-0.36 documentation on CPAN, and there's no reference to "recv-keys" at all. Which version are you using ? Thanks for your reply. I'm using GnuPG::Interface, (I always have any typo in this

Round a digit in perl

2008-09-12 Thread V.Ramkumar
Hi List, My input xml file has, 246–52 I have to replace, 246–252 Similarly, 100-5 100-105 198-10 198-210. If anybody have logic for the above, please suggest. Regards, Ramkumar -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http

RE: Round a digit in perl

2008-09-12 Thread Thomas Bätzler
Hi, V.Ramkumar <[EMAIL PROTECTED]> asked: > My input xml file has, > 246–52 > > I have to replace, > 246–252 > > Similarly, > > 100-5 100-105 > 198-10198-210. > > If anybody have logic for the above, please suggest. Hope this helps: #!/usr/bin/perl -w $| = 1; use strict;

RE: Round a digit in perl

2008-09-12 Thread Stewart Anderson
> -Original Message- > From: V.Ramkumar [mailto:[EMAIL PROTECTED] > Sent: 12 September 2008 11:33 > To: beginners@perl.org > Subject: Round a digit in perl > > Hi List, > > My input xml file has, > 246–52 > > I have to replace, > 246–252 > > Similarly, > > 100-5 100-10

Re: Round a digit in perl

2008-09-12 Thread Raymond Wan
Hi Ramkumar, Ummm, as a suggestion, why don't you explain to us (in words) what you want to do and try some sample code and we can give you some feedback/corrections? Your question about whether anyone has any "logic for the above" sounds like you can't put the problem into words? That see

RE: Round a digit in perl

2008-09-12 Thread V.Ramkumar
>>Hope this helps: >>#!/usr/bin/perl -w >>$| = 1; >>use strict; >>sub correct_range { >> my @args = @_; # nasty side effects if you map @_! >> my( $from, $to ) = map { $_ = reverse $_ } @args; >> substr( $from, 0, length $to ) = $to; >> return reverse( $from ); >>} >>while( my $line = ){ >>my

script to SFTP without NET::SFTP module

2008-09-12 Thread kscott
Does any one have a simple script to retrieve a file from a remote server using SFTP? I can not use the net::stp module because I do not have the required authority to add modules to our Perl interpeter. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: script to SFTP without NET::SFTP module

2008-09-12 Thread Kenneth Wolcott
On Fri, Sep 12, 2008 at 1:21 PM, kscott <[EMAIL PROTECTED]> wrote: > Does any one have a simple script to retrieve a file from a remote > server using SFTP? > > I can not use the net::stp module because I do not have the required > authority to add modules to our Perl interpeter. > > > -- > To uns