Re: destroy widget

2012-09-05 Thread Irfan Sayed
please find the attached . what i am looking for is, need to destroy the window $mw1 once the text entered in scrolled text window i just want to destroy $mw1 and not entire application please suggest . regards, irfan From: Shlomi Fish

print 2 array elements

2012-09-05 Thread jet speed
Hi All, I would like to print array1 with array2 as below ex: output --- abc-12 20/1 def-22 30/22 ghi-33 40/3 def-22 20/1 @array1 =abc-12, def-22, ghi-33,abc-12,def-22; @array2 =20/1, 30/22, 40/3, 20/1; i did try to map array1 to array2 elements, did'nt work. %hash = map {$array1[$_]

Re: print 2 array elements

2012-09-05 Thread Shlomi Fish
Hi jet speed, On Wed, 5 Sep 2012 11:47:41 +0100 jet speed speedj...@googlemail.com wrote: Hi All, I would like to print array1 with array2 as below ex: output --- abc-12 20/1 def-22 30/22 ghi-33 40/3 def-22 20/1 The best way would be to iterate over the indexes: for my

Re: print 2 array elements

2012-09-05 Thread jet speed
Thanks Sholmi. Appreciate your help !. that's correct, i did make up the syntax, bec's the actual program is in a different system, were i cannot access mail. Cheers Sj On Wed, Sep 5, 2012 at 12:10 PM, Shlomi Fish shlo...@shlomifish.org wrote: Hi jet speed, On Wed, 5 Sep 2012 11:47:41

regx substitution question

2012-09-05 Thread jet speed
Hi All, i have an regx question. i have the array contents, now i want to remove the first 2 characters (fc) of each element in the array and store it in a second array ex: @array2 @array =fc20/1, fc30/22, fc40/3, fc20/1; output @array2 =20/1, 30/22, 40/3, 20/1; please advice. Thanks Sj

Re: regx substitution question

2012-09-05 Thread Shlomi Fish
Hi Sj, On Wed, 5 Sep 2012 14:33:13 +0100 jet speed speedj...@googlemail.com wrote: Hi All, i have an regx question. i have the array contents, now i want to remove the first 2 characters (fc) of each element in the array and store it in a second array ex: @array2 @array =fc20/1,

Re: regx substitution question

2012-09-05 Thread Shawn H Corey
On Wed, 5 Sep 2012 14:33:13 +0100 jet speed speedj...@googlemail.com wrote: Hi All, i have an regx question. i have the array contents, now i want to remove the first 2 characters (fc) of each element in the array and store it in a second array ex: @array2 @array =fc20/1, fc30/22,

Re: regx substitution question

2012-09-05 Thread Shlomi Fish
Hi Shawn, thanks for your answer. See below for my response. On Wed, 5 Sep 2012 09:54:11 -0400 Shawn H Corey shawnhco...@gmail.com wrote: On Wed, 5 Sep 2012 14:33:13 +0100 jet speed speedj...@googlemail.com wrote: Hi All, i have an regx question. i have the array contents, now i want

Re: regx substitution question

2012-09-05 Thread Shlomi Fish
Replying to myself, I have a correction which Shawn inspired. On Wed, 5 Sep 2012 16:49:42 +0300 Shlomi Fish shlo...@shlomifish.org wrote: Hi Sj, On Wed, 5 Sep 2012 14:33:13 +0100 jet speed speedj...@googlemail.com wrote: Hi All, i have an regx question. i have the array contents,

Re: destroy widget

2012-09-05 Thread Алексей Мишустин
2012/9/5 Irfan Sayed irfan_sayed2...@yahoo.com: please find the attached . what i am looking for is, need to destroy the window $mw1 once the text entered in scrolled text window i just want to destroy $mw1 and not entire application please suggest . Hello. I'm not expert neither in Perl

Re: destroy widget

2012-09-05 Thread Ron Bergin
Irfan Sayed wrote: please find the attached . what i am looking for is, need to destroy the window $mw1 once the text entered in scrolled text window i just want to destroy $mw1 and not entire application please suggest . regards, irfan From:

XML::Twig Question

2012-09-05 Thread Anirban Adhikary
Hi List, I have a XML file which looks like as follows ISProducts StoreInfo BSC id=AMIBRB1 ALPHA10/ALPHA AMRCSFR3MODE1,3,4,7/AMRCSFR3MODE AMRCSFR3THR12,16,21/AMRCSFR3THR AMRCSFR3HYST2,3,3/AMRCSFR3HYST AMRCSFR4MODE1,3,6,8/AMRCSFR4MODE

Re: XML::Twig Question

2012-09-05 Thread Anirban Adhikary
One thing forget to mention in the 2nd case I only able to print the value of id after removing of *xn: *from the beginning of the line.NO print for gci_sai and locationNumber . On Wed, Sep 5, 2012 at 8:26 PM, Anirban Adhikary anirban.adhik...@gmail.com wrote: Hi List, I have a XML file

Re: regx substitution question

2012-09-05 Thread Jim Gibson
On Sep 5, 2012, at 7:02 AM, Shlomi Fish wrote: # remove the first 2 characters from every element of the array my @array2 = map { s/^..//msx } @array1; This code is wrong in two respects: 1. the map clause will return the return value of the s/// subtitution and will modify

expect.pm not recognising match string

2012-09-05 Thread Rajeev Prasad
inside ssh tunnel (using Net::Openssh), a pty is opened. then an exp object is init to this pty   my $exp=Expect-init($pty); using this object i am trying to run about quite a few commands on remote system. I am using following method. It has two flaws: 1) does not work if $exp-expect(5);

Re: print 2 array elements

2012-09-05 Thread Dr.Ruud
On 2012-09-05 12:47, jet speed wrote: output --- abc-12 20/1 def-22 30/22 ghi-33 40/3 def-22 20/1 @array1 =abc-12, def-22, ghi-33,abc-12,def-22; @array2 =20/1, 30/22, 40/3, 20/1; i did try to map array1 to array2 elements, did'nt work. %hash = map {$array1[$_] = $array2[$_] }

Re: regx substitution question

2012-09-05 Thread John W. Krahn
Shlomi Fish wrote: On Wed, 5 Sep 2012 14:33:13 +0100 jet speedspeedj...@googlemail.com wrote: i have an regx question. i have the array contents, now i want to remove the first 2 characters (fc) of each element in the array and store it in a second array ex: @array2 @array =fc20/1, fc30/22,

Re: regx substitution question

2012-09-05 Thread John W. Krahn
Shlomi Fish wrote: Replying to myself, I have a correction which Shawn inspired. On Wed, 5 Sep 2012 16:49:42 +0300 Shlomi Fishshlo...@shlomifish.org wrote: On Wed, 5 Sep 2012 14:33:13 +0100 jet speedspeedj...@googlemail.com wrote: i have an regx question. i have the array contents, now i

Re: regx substitution question

2012-09-05 Thread John W. Krahn
Shlomi Fish wrote: thanks for your answer. See below for my response. On Wed, 5 Sep 2012 09:54:11 -0400 Shawn H Coreyshawnhco...@gmail.com wrote: On Wed, 5 Sep 2012 14:33:13 +0100 jet speedspeedj...@googlemail.com wrote: i have an regx question. i have the array contents, now i want to

My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-05 Thread andrew sison
Hello, It has been six years since I have shifted into a new role from being a systems administrator to being an IT auditor. It's been a while since I've written my last perl script. Now I'm back here again to get some help. Basically my job now requires me to conduct audits on the information