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

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

How do it do find and replace specific words using perl

2004-07-23 Thread Anand . V
Hi All, Could some help me in doing this using perl. 1. Open a text file (Adapter.data ) with following contents. HEADER.JMSDestination=sample_dataQ HEADER.JMSDeliveryMode=Persistent HEADER.JMSType=Data HEADER.JMSCorrelationID=2 HEADER.JMSPriority=4

RE: How do it do find and replace specific words using perl

2004-07-23 Thread Anand . V
Hi James, I was trying this but not sure where it is going wrong ... use strict; use File::Copy; my $dest_file = "sendToAdapter.properties"; my $searchstr = 'sample'; my $repstr= 'FileAdapter'; open(FL, $dest_file) or die("Doh - $!"); $^I = '~'; s/$searchstr/$repstr/g while ; close(FL);

doubt in Definition of sub routine.

2004-08-05 Thread Anand . V
Hi All, I am using code written by some one else. I didn't understand the difference between these subroutines, the way they were defined. 1. sub addToLog { Some code }Any specific reason where we should not use braces ?? 2. sub displayEnv( ) { " }Any specific reason why

Out of Topic :-Any perl training institutes in Bangalore

2004-08-09 Thread Anand . V
Hi All, I am new to perl. I would like to know if any one of you, aware of any training institutes in bangalore for perl training. I am also learning on my own, especially this group has been highly helpfull for beginners like me, but keeping in view of vastness of perl and limited time that we