Good Unix Mailing List

2004-06-04 Thread Satya_Devarakonda
Hi, This question may be out of scope for this mailing list. But if there are also some good Unix mailing list out there for average Unix shell programmers please let me know. Appreciate your help, Sincerely, Satya Anders Holm <[EMAIL PROTECTED]> 06/04/2004 10:40 AM To: Stev

Missing Component

2004-05-24 Thread Satya_Devarakonda
Hi, I have a program with some ftp code in it. This is working fine on a Unix machine but is giving the following error on a Windows machine. >Can't locate Net/FTP.pm in @INC at \\mmpapp01\nal_sd\gxsftp\programs\get-edi.pl line 17. >BEGIN failed--compilation aborted at \\mmpapp01\nal_sd\gxsftp

Re: perlglob on Windows platform

2004-05-21 Thread Satya_Devarakonda
Thank you sir, I corrected my code. Regards, satya "John W. Krahn" <[EMAIL PROTECTED]> 05/20/2004 05:28 PM To: [EMAIL PROTECTED] cc: (bcc: Satya Devarakonda/HAM/AM/HONDA) Subject:Re: perlglob on Windows platform Satya Devarakonda wrote: > > Hi, H

perlglob on Windows platform

2004-05-20 Thread Satya_Devarakonda
Hi, I am trying to delete zero byte files using the following code: for ($i=0; $i<[EMAIL PROTECTED];$i++) { $filelst[$i] =~ s/\s//; #Process creates zero byte file if nothing was found in the mailbox #Hence delete zero byte files

I guess I am not doing it right???

2002-12-23 Thread Satya_Devarakonda
Hi, I have a set of strings in array @search_key and a log file loaded into an array @modem_log. I want to extract lines that contain the keys and load them into four arrays - @env_start, @env_end, @env_files, @env_bytes, @env_errors. Can somebody tell me if what I am doing below is right? Than

Re: Passing array to a function

2002-12-20 Thread Satya_Devarakonda
Thank you so much!!! I could not hold to check things for myself. Satya::Novice_City; ---

Re: Passing array to a function

2002-12-19 Thread Satya_Devarakonda
Hi My sincere thanks go to all those who answered and are answering my question about - passing array to a function. This is my first time on a technical mailing list and so had trouble expressing my questions. I started PERL recently and am primarily from a C programming background. My intentio

Re: Passing array to a function

2002-12-19 Thread Satya_Devarakonda
Thank you very much. I come from little bit of C program so was kind of suspcious.. So I am safe using a reference created in a function. Thanks again and regards, Satya

Re: Passing array to a function

2002-12-19 Thread Satya_Devarakonda
Thank you Sir, But is it not wrong to create an array in a function and send a reference to the array back into the main function? Because the scope of the array is limited to the function and calling a reference that is not available(the variables local in scope to the function are collapsed) m

Passing array to a function

2002-12-19 Thread Satya_Devarakonda
Hi, How can I pass an array to a function and get values back in it??? Here are excerpts from my code. sub getTimeInfo { my $sec = 0; my $min = 0; my $hour = 0; my $day = 0; my $mon = 0; my $year = 0; my $IsDST = 0; my $week_day = 0; my @ti

Re: Why does this code fail? - Sorry here are the line numbers..

2002-12-17 Thread Satya_Devarakonda
>>my @str_start = qw ( 1 0 28 27 34 ); >>my @str_length = qw ( 8 9 10 9 2 ); >>my @search_key = qw (FILETYPE.ZIP RBZ RBZ Bytes Errors); >>Since search_key is used in a regular expression it might be better to >>create one. >>my $search_key = qr/FILETYPE.ZIP|RBZ|RBZ|Bytes|Errors/; B

Re: Why does this code fail? - Sorry here are the line numbers..

2002-12-16 Thread Satya_Devarakonda
Thanks to all those guys who answered my question As you guys pointed out the join worked without //s. But the code also had some correction to be made (eg. line number 34) and would look really like this(and not as I initially sent you folks). There are still has some issues with line 11 and I a

RE: Why does this code fail? - Sorry here are the line numbers..

2002-12-14 Thread Satya_Devarakonda
Thank you - the / was the problem... Satya Devarakonda IS - EDI Tufts Health Plan Tel: 617-923-5587 X 3413 Fax: 617-923- "Wag

Why does this code fail? - Sorry here are the line numbers..

2002-12-14 Thread Satya_Devarakonda
Can somebody tell what is wrong with this. I tried single quote (') in place of double quote(") neither of them work. 184 for ($i = 0; $i < @clm_types; $i++) 185 { 186@temp_str = grep (/$_/,@env_desc); 187@fields = split (/,/,$temp_str[@temp_str - 1],4); 188$env_final[$i] = join (/","

Why does this code fail?

2002-12-14 Thread Satya_Devarakonda
Can somebody tell what is wrong with this. I tried single quote (') in place of double quote(") neither of them work. for ($i = 0; $i < @clm_types; $i++) { @temp_str = grep (/$_/,@env_desc); @fields = split (/,/,$temp_str[@temp_str - 1],4); $env_final[$i] = join (/","/,$fields[1],$fie

Re: Errors during FTP

2002-11-26 Thread Satya_Devarakonda
I am sorry. This is how I used the FTP related code. But when "server" refuses connection it doesn't die. use Net::FTP; eval { my $ftp ="\0"; $ftp = Net::FTP->new( "server" , Debug => 0); $ftp->login("ftp1","pass"); $ftp->cwd("//dir1/datatrend/test"); $ftp->put("clmgxstime.txt

Errors during FTP

2002-11-25 Thread Satya_Devarakonda
Hi, How do we trap errors during FTP? Can somebody throw some light on this Thank you, Satya Devarakonda IS - EDI Tufts Health Plan Tel: 617-923-5587 X 3413 Fax: 617-923- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

avoid grepping a string

2002-11-22 Thread Satya_Devarakonda
Hi, In one of my scripts I am trying to grep lines from a list that doesn't have the word HOLD @temp_str = grep ( {$_ ne /HOLD/}, @temp_str); Can anybody help me on this. Satya Devarakonda IS - EDI Tufts Health Plan Tel: 617-923-5587 X 3413 Fax: 617-923- -- To unsubscribe, e-mail: [

RE: Last Wednesday of Month

2002-11-22 Thread Satya_Devarakonda
Hi, In one of my scripts I am trying to grep lines from a list that doesn't have the word HOLD @temp_str = grep ( {$_ ne /HOLD/}, @temp_str); Can anybody help me on this. Satya Devarakonda IS - EDI Tufts Health Plan Tel: 617-923-5587 X 3413 Fax: 617-923- -- To unsubscribe, e-mail: [

RE: Grep function inside a for loop does NOT grep the values.

2002-02-20 Thread Satya_Devarakonda
Thanks again... Satya "Brett W. McCoy"

RE: Grep function inside a for loop does NOT grep the values.

2002-02-20 Thread Satya_Devarakonda
inside a for loop. regards, Satya - Forwarded by Satya Devarakonda/THP on 02/19/2002 05:18 PM - Satya_Devarakonda@tufts- health.com To: [EMAIL PROTECTED] cc:

RE: Grep function inside a for loop does NOT grep the values.

2002-02-20 Thread Satya_Devarakonda
arakonda/THP on 02/19/2002 05:18 PM - Satya_Devarakonda@tufts- health.com To: [EMAIL PROTECTED] cc: 02/19/2002 05:13 PM Subject: Grep function i

Grep function inside a for loop does NOT grep the values.

2002-02-19 Thread Satya_Devarakonda
- Satya_Devarakonda@tufts- health.com To: [EMAIL PROTECTED] cc

Grep function inside a for loop does grep the values.

2002-02-19 Thread Satya_Devarakonda
Can somebody help me on what is wrong in the following piece of code? foreach (@prv_lst) { $item = $_; @list_prv = grep (/$item/, @txn_log); print "The foll. are the Txn details for Trading Partner $item \n"; print @list_prv; for (@txn_lst) {