search and replace array variables contents

2004-07-20 Thread Baskaran
Dear sir, I have two array variables. I want to find $a[1] and replace $b[1] in a file. ($a[1],$b[1] are array variables) How to find and replace the variable contents. for ($i=0;$i<$totalnum;$i++){ s/$a[i]/$b[i]/g; } Is it possible to do search and replace or kindly suggest me an idea Thanki

Re: search and replace array variables contents

2004-07-20 Thread Ramprasad A Padmanabhan
On Tue, 2004-07-20 at 15:42, Baskaran wrote: > Dear sir, > > > I have two array variables. I want to find $a[1] and replace $b[1] in a > file. > ($a[1],$b[1] are array variables) > How to find and replace the variable contents. > > for ($i=0;$i<$totalnum;$i++){ > s/$a[i]/$b[i]/g; > } > You ha

Re: Could anyone please answer a $telnetAte = Net::Telnet -> new...

2004-07-20 Thread Jenda Krynicky
From: Marco Perl <[EMAIL PROTECTED]> > I use CYGWIN on win-2000 with a ô$ö prompt and run > > my .pl to telnet to a VxWorks station. doing it manually this is what > I follow: > > telnet > > open 144.248.176.132 > > then I get the login prompt which is ôVxWorks Login: ô > > and I enter ômarcoö >

RE: search and replace array variables contents

2004-07-20 Thread Moon, John
Dear sir, I have two array variables. I want to find $a[1] and replace $b[1] in a file. ($a[1],$b[1] are array variables) How to find and replace the variable contents. for ($i=0;$i<$totalnum;$i++){ s/$a[i]/$b[i]/g; } Is it possible to do search and replace or kindly suggest me an idea Thanki

FTPing of files between remote servers.

2004-07-20 Thread Anand . V
Hi All, I am using following code to transfer a file from remote host to local system. sub transferEJSFiles{ $ftp = Net::FTP->new($sourceServer, Timeout => 30) or die "Can't contact $sourceServer: $!"; $ftp->login($sourceUser,$sourcePassword) or die "Can't login ($sour

Antwort: FTPing of files between remote servers.

2004-07-20 Thread Manfred . Beilfuss
Hi Anand, I fear that you will have to run our perl-script or any other ftp-script remote on one of your servers, if you are bound to the ftp-protocol. The only alternative is to copy it first to your desktop and then to the second server. Sorry but ftp is a protocol between two points. Mit freu

RE: Antwort: FTPing of files between remote servers.

2004-07-20 Thread Anand . V
Hi Manfred Beilfuss, Thanks for the reply. Could you elaborate on running your perl-script or any other ftp-script remote script . Thanks & Best Regards, Anand -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 7:08 PM To: [EMAIL PROTECT

Antwort: RE: Antwort: FTPing of files between remote servers.

2004-07-20 Thread Manfred . Beilfuss
Hi Anand, I don't have enough perl practise to tell how to do it in perl. But speaking in general terms you will have to copy your ftp-script by any means available to one of the server and execute it there. If it is a perl script you need perl on the server. You will have to log into the serve

Problem with highlighting a word

2004-07-20 Thread Paul Smith
Dear All I would like to know how to print a line of text to the console with a specific word highlighted in a way such that the foreground color is exchanged with the background colour. Any ideas? Thanks in advance, Paul -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: Another Perl datatype headache ( scalars $, hashes %, and arrays @ )

2004-07-20 Thread gohaku
On Jul 19, 2004, at 9:46 AM, James Edward Gray II wrote: anyway, Is it possible to write scripts using only '$' instead of other prefix symbols? In other words, a php-style script written in perl Whether it is or not, it's not the answer to your problems. Start trying to make sense of the world yo

RE: Data File getting set to an empty file

2004-07-20 Thread Nigel Peck
Thanks for all that, any suggestions why the file gets wiped out every so often? -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED] Sent: 14 July 2004 21:06 To: [EMAIL PROTECTED] Subject: Re: Data File getting set to an empty file From: "Nigel Peck" <[EMAIL PROTECTED]> > I

find out who was online at a given time

2004-07-20 Thread christopher . l . hood
Ok, this may or may not be a tricky one I will try and be succinct in my statement. I have a database (mysql 4.0) with radius log entries for each day, we receive emails about Acceptable Use Abuses and must figure out exactly who was online with a certain IP address when the abuse occurred. As yo

Re: Problem with highlighting a word

2004-07-20 Thread Paul Kraus
cpan search Term::Ansi On Tue, Jul 20, 2004 at 04:22:56PM +0100, Paul Smith wrote: > Dear All > > I would like to know how to print a line of text to the console with a > specific word highlighted in a way such that the foreground color is > exchanged with the background colour. Any ideas? > >

Re: find out who was online at a given time

2004-07-20 Thread Eric Walker
On Tuesday 20 July 2004 10:34 am, [EMAIL PROTECTED] wrote: > Ok, this may or may not be a tricky one I will try and be succinct in my > statement. > > I have a database (mysql 4.0) with radius log entries for each day, we > receive emails about Acceptable Use Abuses and must figure out exactly > wh

where does IO::File come from?

2004-07-20 Thread Christopher J. Bottaro
i use IO::File all the time in my perl scripts. i never installed any IO::File module from cpan.org and i don't see it anywhere in /usr/lib/perl. also, its not listed in my book "programming perl" as a standard module. so where does it come from and how am i able to use it? thanks for the help.

Re: where does IO::File come from?

2004-07-20 Thread Owen
On Tue, 20 Jul 2004 15:24:03 -0500 "Christopher J. Bottaro" <[EMAIL PROTECTED]> wrote: > i use IO::File all the time in my perl scripts. i never installed any > IO::File module from cpan.org and i don't see it anywhere in /usr/lib/perl. > also, its not listed in my book "programming perl" as a s

Re: where does IO::File come from?

2004-07-20 Thread Randy W. Sims
On 7/20/2004 6:34 PM, Owen wrote: On Tue, 20 Jul 2004 15:24:03 -0500 "Christopher J. Bottaro" <[EMAIL PROTECTED]> wrote: i use IO::File all the time in my perl scripts. i never installed any IO::File module from cpan.org and i don't see it anywhere in /usr/lib/perl. also, its not listed in my bo

Using a CGI form for editing a freeform hash structure

2004-07-20 Thread Shawn
My holy grail for right now is to be able, from a CGI form, allow someone to: 1. display a hash of both key/value pairs, hashes, or arrays, fully expanded 2. be able to edit key/value pairs in the structure through the CGI form 3. add or delete key/value pairs, or empty sub-hashes Even a pretty d

image magick problem on free bsd

2004-07-20 Thread David Inglis
I am having trouble using image magick on a free bsd box, the code below works fine on redhat but gets the following error message using bsd /libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.3/i386-freebsd/auto/Image/Magick/Magick.so: Undefined symbol "AcquireMagickMemory" Can anybody give

Re: image magick problem on free bsd

2004-07-20 Thread Randy W. Sims
On 7/20/2004 8:12 PM, David Inglis wrote: I am having trouble using image magick on a free bsd box, the code below works fine on redhat but gets the following error message using bsd /libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.3/i386-freebsd/auto/Image/Magick/Magick.so: Undefined symbo

Re: image magick problem on free bsd

2004-07-20 Thread David Inglis
I may have compiled it initially but I later used the sysinstall program on free bsd to download the bsd port ver image-Magic-5.5.7.11-1 -- Regards David Inglis Quoting "Randy W. Sims" <[EMAIL PROTECTED]>: > On 7/20/2004 8:12 PM, David Inglis wrote: > > > I am having trouble using image magick

Re: FTPing of files between remote servers.

2004-07-20 Thread Kelvin Wu
try $from_ftp->pasv_xfer($file, $to_ftp); perldoc Net::FTP for details. On Tue, 20 Jul 2004 09:09:49 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Could some suggest how can i transfer a file from one remote host to another > remote host using FTP module. Is there any way of doing this .

Re: Using a CGI form for editing a freeform hash structure

2004-07-20 Thread Randal L. Schwartz
> "Shawn" == Shawn <[EMAIL PROTECTED]> writes: Shawn> 1. display a hash of both key/value pairs, hashes, or arrays, fully Shawn> expanded Shawn> 2. be able to edit key/value pairs in the structure through the CGI form Shawn> 3. add or delete key/value pairs, or empty sub-hashes Shawn> Even a

Re: Using a CGI form for editing a freeform hash structure

2004-07-20 Thread Shawn
On Tue, 2004-07-20 at 18:47 -0700, Randal L. Schwartz wrote: > > "Shawn" == Shawn <[EMAIL PROTECTED]> writes: > > Shawn> 1. display a hash of both key/value pairs, hashes, or arrays, fully > Shawn> expanded > Shawn> 2. be able to edit key/value pairs in the structure through the CGI form > Sh