It seems that Win32::OLE::Variant doesn't work!

2005-06-01 Thread J aperlh
It seems that Win32::OLE::Variant doesn't work! Below is the script: #! perl -W use strict; use Win32::OLE; use Win32::OLE::Variant; my $Array = Variant(VT_ARRAY|VT_R8, [1,2], 2); $Array-Put([[1,2], [3,4]]); Below

RE: It seems that Win32::OLE::Variant doesn't work!

2005-06-01 Thread Anderson, Mark (Service Delivery)
perl 5.8.4 on NT4 C:\perl -e use Win32::OLE;use Win32::OLE::Variant; my $Array=Variant(VT_ARRAY| VT_R8,[1,2],2); $Array-Put([1,2],[2,3]); Win32::OLE(0.1701): Win32::OLE::Variant-Put(): Wrong number of indices; dimension of SafeArray is 2 at -e line 1. This works fine... it's normally easier

perl Tk question

2005-06-01 Thread assistent
Hi All! In the following snippet: use strict; use Tk; require Tk::LabFrame; my $top = new MainWindow; my $bar=$top-LabFrame(-label = 'buttons bar'); $bar-pack; my $exi=$bar-Button(-command=\exi,-text='exit'); $exi-pack(-side='left'); my $prg=$bar-Button(-command=\prg,-text='prg');

Re: perl Tk question

2005-06-01 Thread Chris Wagner
Well right now ur deleting all the text before inserting any more. Get rid of the delete line or move it out of the for loop. Then it'll work as expected. At 08:06 AM 6/1/05 UT, [EMAIL PROTECTED] wrote: sub prg{ for (my $i=0;$i20;$i++){ $text0-delete('0.0','end');

RE: perl Tk question

2005-06-01 Thread BLAHA Jan
When executing this snippet I see in text0 only the last $i /in for cycle/ What I must add to prg code in order to see all cosequtive values of $i ? for (my $i=0;$i20;$i++){ #$text0-delete('0.0','end'); # just don't delete everytime all contents of the box

Re: perl Tk question

2005-06-01 Thread David TV
Just add: $top-update any place inside the prg procedure. On Wed, 1 Jun 2005 08:06:42 UT, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All! In the following snippet: use strict; use Tk; require Tk::LabFrame; my $top = new MainWindow; my $bar=$top-LabFrame(-label = 'buttons bar');

RE: perl Tk question

2005-06-01 Thread Anderson, Mark (Service Delivery)
Looks like it's just because the window doesn't update until you return from the callback. Are you trying to create some sort of special effect? Perhaps asking how to create that effect might be simpler - the Text widget doesn't look like it likes that sort of thing! Kind regards, Mark Anderson

Net::Telnet

2005-06-01 Thread Rajesh Vattem
Hi, I am using this module (Net::Telnet) downloaded from CPAN, for a small interactive program in which I telnet to a particular host, login and give some commands (based on the options you get). I am not able to do this. I am able to login but whatever I do after that doesn't seem to happen.

Re: perl Tk question

2005-06-01 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: Hi All! In the following snippet: use strict; use Tk; require Tk::LabFrame; my $top = new MainWindow; my $bar=$top-LabFrame(-label = 'buttons bar'); $bar-pack; my $exi=$bar-Button(-command=\exi,-text='exit'); $exi-pack(-side='left'); my

RE: perl Tk question

2005-06-01 Thread Darian Horn
Here you go I took out your sleep and added a timer. Sleep will block tk handling events. The built in timer will not be blocked. So you will be able to do things like refresh the gui and move the window around the screen, etc. The '$top-update' is probably not required I just added it to

Re: perl Tk question

2005-06-01 Thread Zeray Abraha
Hi, You are deleting whatever is in $text0 till the énd'. Comment that out and you will see all the values of $i. ... sub prg{ for (my $i=0;$i20;$i++){ # $text0-delete('0.0','end');# commented out $text0-insert('end',$i\n); # sleep 1; } } Bye, Zeray

parsing event logs in win2000

2005-06-01 Thread Dan Jablonsky
hi all, i need to parse system event logs for win2000 Professional and i can see what i'm looking for when i use the viewer; i can also save the log in text format from the viewer. Is there any way i could programmatically get an *.evt file in a given path AND SAVE IT IN TEXT FORMAT, and then

RE: Net::Telnet

2005-06-01 Thread Peter Eisengrein
Hi, I am using this module (Net::Telnet) downloaded from CPAN, for a small interactive program in which I telnet to a particular host, login and give some commands (based on the options you get). I am not able to do this. I am able to login but whatever I do after that doesn't seem to

Reg Exp - Extracting html files

2005-06-01 Thread steve silvers
I'm searching many big text columns in my database and I need to extract just the html file names. So far I'm working with directories and file names. So it needs to grab the file names from examples like. directory/file2.html dir/dir2/testfile.htm and list file2.html testfile.htm etc..

RE: Net::Telnet

2005-06-01 Thread Thomas, Mark - BLS CTR
When Net::Telnet doesn't do what you expect, 99% of the time it's a prompt issue. Did you set the prompt? The default prompt works with the unix command line, but you'll have to set it to work with your application. I highly recommend using the debugging options; they can help you figure out

Re: parsing event logs in win2000

2005-06-01 Thread $Bill Luebkert
Dan Jablonsky wrote: hi all, i need to parse system event logs for win2000 Professional and i can see what i'm looking for when i use the viewer; i can also save the log in text format from the viewer. Is there any way i could programmatically get an *.evt file in a given path AND SAVE

Re: Reg Exp - Extracting html files

2005-06-01 Thread Craig Cardimon
I'm working with ASCII text files that can be so big they'll make you wince. We're talking 40 MB and up. I'm scanning all files, seeing if they contain info we want, and then extracting any desired info from each. Or trying to, anyway. Yesterday I got a nasty Memory Allocation Error in my

Re: Reg Exp - Extracting html files

2005-06-01 Thread $Bill Luebkert
steve silvers wrote: I'm searching many big text columns in my database and I need to extract just the html file names. So far I'm working with directories and file names. So it needs to grab the file names from examples like. directory/file2.html dir/dir2/testfile.htm and list

RE: :Telnet

2005-06-01 Thread John Serink
What kind of particular host are telnetting into? The Net::Telnet module works connecting to the following telnet servers: WindowsNT 4.0, Cisco Routers, Most of the Unix varients. its does not work on these servers: Windows 2000 Pro, Windows XP pro, Windows 2000 server pro, Windows server 2003.

Re: It seems that Win32::OLE::Variant doesn't work!

2005-06-01 Thread J aperlh
Thanks for you guys help. $Bill Luebkert [EMAIL PROTECTED] found that is a typo of the document: ActivePerl User Guide. Win32::OLE::NEWS - What's new in Win32::OLE The VARIANT-Put(ARRAYREF) form allows assignment to a complete SAFEARRAY This allows automatic conversion from a list of lists to a

Argument passing between perl and C function.

2005-06-01 Thread J aperlh
Argument passing between perl and a C function. There is C function in a OLE server: What kind of variable should I pass to this function? # BOOL Calculate(BSTR* names, double* values, short number_of_names); I tried the

Re:Re: perl Tk question

2005-06-01 Thread assistent
[EMAIL PROTECTED] wrote: Hi All! In the following snippet: use strict; use Tk; require Tk::LabFrame; my $top = new MainWindow; my $bar=$top-LabFrame(-label = 'buttons bar'); $bar-pack; my $exi=$bar-Button(-command=\exi,-text='exit'); $exi-pack(-side='left'); my