Problem with recursive routine

2011-12-05 Thread Barry Brevik
About a week ago, I posted a question about a recursive directory enumeration function that I was having trouble with, and Tobias Hoellrich wrote back and pointed out my ridiculous oversight. I thought that I would post the resulting code as a point of interest. It is kinda bloated with a bunch of

RE: Problem with recursive routine

2011-11-28 Thread Barry Brevik
Thanks. That is a cool observation. -Original Message- From: Tobias Hoellrich [mailto:thoel...@adobe.com] Sent: Monday, November 28, 2011 3:47 PM To: Barry Brevik; perl Win32-users Subject: RE: Problem with recursive routine You are not changing the directory while traversing. Whenever

RE: Problem with recursive routine

2011-11-28 Thread Tobias Hoellrich
y Brevik Sent: Monday, November 28, 2011 4:39 PM To: perl Win32-users Subject: Problem with recursive routine I'm having a problem with a recursive routine that enumerates a directory tree and all of its files. It works well, except when it goes down 1 level from the top directory, I get

Problem with recursive routine

2011-11-28 Thread Barry Brevik
I'm having a problem with a recursive routine that enumerates a directory tree and all of its files. It works well, except when it goes down 1 level from the top directory, I get this message: Use of uninitialized value in addition (+) at test61.pl line 61. I've been fighting this t

Re: Problem with regex

2011-11-10 Thread Gabor Szabo
Hi Barry, On Thu, Nov 10, 2011 at 2:34 AM, Barry Brevik wrote: > Below is some test code that will be used in a larger program. > > In the code below I have a regular expression who's intent is to look > for  " <1 or more characters> , <1 or more characters> " and replace the > comma with |. (the

RE: Problem with regex

2011-11-09 Thread Tobias Hoellrich
estate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Barry Brevik Sent: Wednesday, November 09, 2011 5:35 PM To: perl Win32-users Subject: Problem with regex Below is some test code that will be used in a larger program. What I am trying to do is process lines from a

Problem with regex

2011-11-09 Thread Barry Brevik
Below is some test code that will be used in a larger program. What I am trying to do is process lines from a CSV file where some of the 'cells' have commas embedded in the (see sample code below). I might have used text::CSV but as far as I can tell that module also can not deal with embedded com

Problem with SendKeys, Clipboard and Tk

2009-11-22 Thread Daniel Burgaud
32::Clipboard::GetBitmap(); open DFILE, ">x.bmp"; binmode DFILE; print DFILE $screen; close DFILE; } CaptureScreen(); ## Above is a simple Screen Capture using SendKeys and Clipboard. It saves the captured screen to a file calle

Re: problem with Tk Frame not filling the whole frame.

2009-08-03 Thread Daniel Burgaud
e( -bg=>'red',-borderwidth => 1, -width => > 50, )->pack( -side => 'left', -expand => 0, -fill => 'y'); > my $frameRight = $mainFrame->Frame( -bg=>'yellow', -borderwidth => 1, > )->pack( -side => 'left', -expan

RE: problem with Tk Frame not filling the whole frame.

2009-07-31 Thread Jack
in32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Daniel Burgaud Sent: July-31-09 4:52 AM To: Perl-Win32-Users Subject: problem with Tk Frame not filling the whole frame. Hi, I have a Frame and within this Frame, I have 2 more Frame

problem with Tk Frame not filling the whole frame.

2009-07-31 Thread Daniel Burgaud
Hi, I have a Frame and within this Frame, I have 2 more Frames: $mainFrame = $mw->Frame()->pack(-expand=>1, fill = 'both'); $frameLeft = $mainFrame->Frame( -borderwidth => 1, width => 50, )->pack( -side => 'left', -expand => 1, -fill => 'y'); $frameRight = $mainFrame->Frame( -borderwidth => 1,

Re: ActivePerl -x64, and another problem with mixing compilers.

2009-05-27 Thread Foo JH
Jan Dubois wrote: > It is normal if you are running Vista or 2008 Server, in which case > this tree contains every single file of the OS (including the > components that have not been "installed"). All other "installed" files > are really just NTFS hardlinks into this tree. omg. Thanks for the r

Re: ActivePerl -x64, and another problem with mixing compilers.

2009-05-27 Thread Sisyphus
- Original Message - From: "Jan Dubois" >> That's one helluva directory on my machine: 13 GB 14,121 folders >> 51,537 files >> >> Is that normal ? > > It is normal if you are running Vista or 2008 Server Yep - I've got Windows Vista. Makes you wonder how we ever got by when hard drive

RE: ActivePerl -x64, and another problem with mixing compilers.

2009-05-26 Thread Jan Dubois
On Tue, 26 May 2009, Sisyphus wrote: "Jan Dubois" wrote: > > You can actually install different versions of MSVCR80.dll on the > > same machine; they go into different directories under > > C:\Windows\WinSxS (the side-by-side installation directory). > > That's one helluva directory on my machine:

Re: ActivePerl -x64, and another problem with mixing compilers.

2009-05-26 Thread Sisyphus
- Original Message - From: "Jan Dubois" > You can actually install different versions of MSVCR80.dll on the same > machine; they go into different directories under > C:\Windows\WinSxS (the side-by-side installation directory). That's one helluva directory on my machine: 13 GB 14,12

RE: ActivePerl -x64, and another problem with mixing compilers.

2009-05-26 Thread Jan Dubois
On Tue, 26 May 2009, Foo JH wrote: > > Running the *appropriate* vcredist_x64.exe fixes the problem. (The > > appropriate one being the one for VC++ 2008, not the one for VC++ > > 2005.) > Does this mean that if there is an existing app which ref the VC2005 > dll, there will be a collision problem?

Re: ActivePerl -x64, and another problem with mixing compilers.

2009-05-26 Thread Foo JH
> Running the *appropriate* vcredist_x64.exe fixes the problem. (The > appropriate one being the one for VC++ 2008, not the one for VC++ 2005.) Does this mean that if there is an existing app which ref the VC2005 dll, there will be a collision problem?

Re: ActivePerl -x64, and another problem with mixing compilers.

2009-05-20 Thread Sisyphus
- Original Message - From: "Rob May" >> Anyone have any ideas on what's needed to fix this incompatibility ? > > It almost certainly because your friends's Event.dll will have an > embedded manifest requiring the VC80 CRT which you won't have > installed (although you didn't say which

Re: ActivePerl -x64, and another problem with mixing compilers.

2009-05-20 Thread Rob May
2009/5/20 Sisyphus : > Hi, > A friend of mine has the same x64 build of ActivePerl as I do (namely, build > 1004). > > He built Tk-804.028 for his perl using the 2008 compiler. > I built Tk-804.028 for my perl using the Platform SDK for Windows Server > 2003 R2 compiler. > > Both of our builds of T

ActivePerl -x64, and another problem with mixing compilers.

2009-05-20 Thread Sisyphus
Hi, A friend of mine has the same x64 build of ActivePerl as I do (namely, build 1004). He built Tk-804.028 for his perl using the 2008 compiler. I built Tk-804.028 for my perl using the Platform SDK for Windows Server 2003 R2 compiler. Both of our builds of Tk work fine on the machines on whic

RE: Win32-TaskScheduler problem with remote systems

2009-05-15 Thread Brian Raven
David Evans <> wrote: > Hey guys > > I hope you can help. Trying to create scheduled tasks on remote > machines with Win32-TaskScheduler, the code appears to create the > task successfully but it creates the task locally, not the specified > remote machine. > > ***CODE*** > use Win32:

Win32-TaskScheduler problem with remote systems

2009-05-15 Thread David Evans
Hey guys I hope you can help. Trying to create scheduled tasks on remote machines with Win32-TaskScheduler, the code appears to create the task successfully but it creates the task locally, not the specified remote machine. ***CODE*** use Win32::TaskScheduler; $scheduler = Win32

problem with TK

2008-12-05 Thread Daniel Burgaud
Hi I have a problem with TK. for (my $i = 0; exists $transactions{$account}[$i]; $i++) { next if $transactions{$account}[$i]{'type'} < 0;#do not display this . . . $frames{'data-r'}->insert('end', $line, [&quo

ActivePerl 5.8.8.824 has problem with Win32-API?

2008-10-21 Thread Sean Lin
Win32-API in ActivePerl 5.8.8.824 no return reference value Is there a solution? ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: problem with FIRSTKEY in tied hash implementation

2008-10-01 Thread Chris Wagner
Hi. I've had similar problems in other areas with the kind of problem ur describing. The problem is ur using "in-band signaling", as we say in the telecom world. Remember when kids could whistle into a phone and make free long distance calls? That was because of in-band signaling, the control i

problem with FIRSTKEY in tied hash implementation

2008-09-30 Thread John Deighan
scalar context is how we're supposed to indicate that there are no keys. Also, I should mention that I found 2 other Perl libraries that are supposed to do the same thing, i.e. have case insensitive retrieval of values from a hash while retaining the original case of the keys. These are Tie

RE: problem with Komodo

2008-09-15 Thread Jan Dubois
On Fri, 12 Sep 2008, Spencer Chase wrote: > I have been having computer problems with updates and had to do system > restore etc after which my Komodo does not run any scripts that use > the file browsing method of the following. If I "compile" the script > into an exe with PerlApp they all work fi

RE: problem with Komodo

2008-09-15 Thread Brian Raven
HeadHuntYourNextJob.com:Three Search Engines. Lots of Jobs! *HeadHuntYourNextJob.com *lets you find opportunities that fit your experience--no matter what that experience is--anywhere in the world. We provide you with several search engines to provide the deep

problem with Komodo

2008-09-12 Thread Spencer Chase
Greetings Perl-win32-users, not sure which address is registered with Activestate so I am trying a few. please forgive multiple submissions not sure what the best list might be but this is a problem on win 32 so... I have been having computer problems with updates and had to do system restore

Re: problem with print

2008-08-11 Thread Justin Allegakoen
2008/8/11 Brian Raven <[EMAIL PROTECTED]> > Tobias Hoellrich <> wrote: > > Try: > > $|++; > > to unbuffer STDOUT. > > > > Hope this helps - Tobias > > Not quite. That variable activates autoflush, which isn't > quite the same as unbuffered output, on the currently selected > filehandle, which

RE: problem with print

2008-08-11 Thread Brian Raven
Tobias Hoellrich <> wrote: > Try: > $|++; > to unbuffer STDOUT. > > Hope this helps - Tobias Not quite. That variable activates autoflush, which isn't quite the same as unbuffered output, on the currently selected filehandle, which may not actually be STDOUT (see 'perldoc perlvar'). Also,

Re: problem with print

2008-08-10 Thread Tobias Hoellrich
Try: $|++; to unbuffer STDOUT. Hope this helps - Tobias On Aug 10, 2008, at 4:16 PM, "Daniel Burgaud" <[EMAIL PROTECTED]> wrote: > Hi > > I have a simple script that uses print in a loop to update the > screen something like this: > > for ( ) { > . > . > . > print "."; > }

problem with print

2008-08-10 Thread Daniel Burgaud
Hi I have a simple script that uses print in a loop to update the screen something like this: for ( ) { . . . print "."; } print "\n"; The problem, while within the loop, the screen does not update. Only once print "\n" is encountered will the screen display the whole printout.

Re: Problem with lanman

2008-08-06 Thread Sisyphus
- Original Message - From: "Barry Brevik" <[EMAIL PROTECTED]> To: Sent: Thursday, August 07, 2008 7:36 AM Subject: Problem with lanman > I'm runing Perl v5.8.8 build 819 on Windows XP. I'm all excited about a > couple of books I bought: Win32 Perl Progr

Problem with lanman

2008-08-06 Thread Barry Brevik
I'm runing Perl v5.8.8 build 819 on Windows XP. I'm all excited about a couple of books I bought: Win32 Perl Programming the Standard Extensions, and Win32 Perl Scripting the Administrator's Handbook. Some of the sample code from the book have: use Win32::NetAdmin; ...at the beginning of th

Re: Problem with Win32::ToolHelp module

2008-06-19 Thread Michael Ellery
Michael Ellery wrote: > apologies if this is not the right place for module specific > questions...but here goes... > > I'm running 5.8.8 and have had Win32::ToolHelp installed for some time. > Just recently, I started getting a failure when trying to use the > package - specifically: > > "C

RE: Problem with Win32::ToolHelp module

2008-06-19 Thread Brian Raven
Michael Ellery <> wrote: > Stuart Arnold wrote: >> Did you copy/paste or type the error in? There seems to be a typo: >> "TollHelp.dll" ToolHelp/TollHelp.dll >> > > typo -- sorry. That is ToolHelp.dll. This is why cut&paste is preferred for error messages and code. Typing mistakes are likely to

Re: Problem with Win32::ToolHelp module

2008-06-19 Thread Michael Ellery
Stuart Arnold wrote: > Did you copy/paste or type the error in? There seems to be a typo: > "TollHelp.dll" > ToolHelp/TollHelp.dll > typo -- sorry. That is ToolHelp.dll. Thanks, Mike ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.Activ

RE: Problem with Win32::ToolHelp module

2008-06-19 Thread Stuart Arnold
y, June 19, 2008 9:00 AM To: 'perl-win32-users' Subject: Problem with Win32::ToolHelp module apologies if this is not the right place for module specific questions...but here goes... I'm running 5.8.8 and have had Win32::ToolHelp installed for some time. Just recently, I started gett

Problem with Win32::ToolHelp module

2008-06-19 Thread Michael Ellery
apologies if this is not the right place for module specific questions...but here goes... I'm running 5.8.8 and have had Win32::ToolHelp installed for some time. Just recently, I started getting a failure when trying to use the package - specifically: "Can't load 'C"/Perl/site/lib/auto/Win32

Re: [C/XS] Strange problem with LoadLibrary and VC 7.0

2008-06-02 Thread Sisyphus
- Original Message - From: "Sisyphus" <[EMAIL PROTECTED]> To: "perl-win32-users" Sent: Sunday, June 01, 2008 10:29 PM Subject: [C/XS] Strange problem with LoadLibrary and VC 7.0 I realise I'm probably only talking to myself here ... it's a sign of

[C/XS] Strange problem with LoadLibrary and VC 7.0

2008-06-01 Thread Sisyphus
'd_one_arg'. That function takes a single 'int' arg, and returns the value of that int divided by 7. (The return value is a double.) In a nutshell, there's no problem with MinGW, but with VC 7.0 the following Inline::C script always segfaults around the time that

Problem with Win32::GuiTest

2008-01-27 Thread Daniel Burgaud
Hi My intention was to use IsKeyPressed($c) to check if the user pressed any of the keys as enumerated in a program. Then sometime in the process, the program has to output the result to another application using MouseMoveAbsPix and SendRawKey. Up to this point, the application works OK. However,

RE: PerlTk: problem with notebook and canvas

2007-09-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Burgaud Sent: Thursday, September 20, 2007 14:49 To: perl-win32-users@listserv.activestate.com Subject: PerlTk: problem with notebook and canvas

RE: PerlTk: problem with notebook and canvas

2007-09-20 Thread Wagner, David --- Senior Programmer Analyst --- WGO
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Burgaud Sent: Thursday, September 20, 2007 14:49 To: perl-win32-users@listserv.activestate.com Subject: PerlTk: problem with notebook and canvas

PerlTk: problem with notebook and canvas

2007-09-20 Thread Daniel Burgaud
Hi, Is it possible to create "Notebooks" of Canvas? use Tk; require Tk::BrowseEntry; require Tk::ROText; require Tk::NoteBook; my $mw = MainWindow->new( -bg => "#00" ); $frames{main}= $mw->NoteBook(-relief=>'flat',-border=>1,-tabpadx=>1,-tabpady=>1,-font=>[-family=>"Tahoma",-size=>8],-bg

Problem with GuiTest FindWindowLike, SetWindowPos

2007-09-08 Thread Daniel Burgaud
Hi, I am writing a code that will get all IE Windows and sort them from left to right. After so many days, I still could not get this function to properly get the window ID of all Internet Explorer windows: @windows = FindWindowLike(0, "Windows Internet Explorer",0,0,5); @windows = FindWindowLik

Re: tk stay on top problem with perlapp for win32

2007-09-06 Thread Bill Luebkert
Spencer Chase wrote: > Greetings perl-win32-users, > > Providing a script the demonstrates the problem as per $Bill's > suggestion. The script runs fine but fails with the above listed error > message when I try to make an exe with parlapp. Here is the script. > The error messages and portion of s

tk stay on top problem with perlapp for win32

2007-09-05 Thread Spencer Chase
Greetings perl-win32-users, Providing a script the demonstrates the problem as per $Bill's suggestion. The script runs fine but fails with the above listed error message when I try to make an exe with parlapp. Here is the script. The error messages and portion of stayOnTop that the errors refer to

Re: Problem with Win32::GetOSVersion()

2007-05-23 Thread Sisyphus
- Original Message - From: "Bill Luebkert" <[EMAIL PROTECTED]> To: "'perl-win32-users'" Sent: Thursday, May 24, 2007 4:22 AM Subject: Re: Problem with Win32::GetOSVersion() > Jan Dubois wrote: >> >> You are printing the PRODUCTTYPE va

Re: Problem with Win32::GetOSVersion()

2007-05-23 Thread Bill Luebkert
Jan Dubois wrote: > > You are printing the PRODUCTTYPE value instead of the ID. Use $s[4] instead > of $s[-1]. Also note, if you're running in XP compatibility mode, you'll get 5 instead of 6 for major. ___ Perl-Win32-Users mailing list Perl-Win32-User

RE: Problem with Win32::GetOSVersion()

2007-05-23 Thread Jan Dubois
On Wed, 23 May 2007, Sisyphus wrote: > The Win32 documentation (wrt Win32::GetOSVersion) states: > > - > Win32::GetOSVersion() > [CORE] Returns the list (STRING, MAJOR, MINOR, BUILD, ID), ... > . > . > Currently known values for ID MAJOR and MINOR are as f

RE: Problem with Win32::GetOSVersion()

2007-05-23 Thread Steven Manross
May 23, 2007 9:39 AM To: perl-win32-users Subject: Problem with Win32::GetOSVersion() Hi, The Win32 documentation (wrt Win32::GetOSVersion) states: - Win32::GetOSVersion() [CORE] Returns the list (STRING, MAJOR, MINOR, BUILD, ID), ... . . Currently known

Problem with Win32::GetOSVersion()

2007-05-23 Thread Sisyphus
Hi, The Win32 documentation (wrt Win32::GetOSVersion) states: - Win32::GetOSVersion() [CORE] Returns the list (STRING, MAJOR, MINOR, BUILD, ID), ... . . Currently known values for ID MAJOR and MINOR are as follows: OSIDMAJOR

Re: problem with printing messages to the screen

2007-05-21 Thread Deane . Rothenmaier
>'print " Done\n";' Jagdish, You don't need all those spaces, either. Without them, the 'Done' will print right next to the 'please wait.'. It's probable you're running into line-wrap on your screen--and that's what's causing the 'Done' te

Re: problem with printing messages to the screen

2007-05-20 Thread Foo JH
You can turn off buffering: $|=1; jagdish eashwar wrote: > Hi, > > I have written a script which accesses each file in a directory and > processes them in turn. While it is doing so, I want it to put out > status message like: > > "Processing $filename, please wait.." > > And then when the s

problem with printing messages to the screen

2007-05-20 Thread jagdish eashwar
Hi, I have written a script which accesses each file in a directory and processes them in turn. While it is doing so, I want it to put out status message like: "Processing $filename, please wait.." And then when the script has finished processing a file, I want it to say "Done" at the end

RE: strange problem with newSVpvn

2007-04-26 Thread Jan Dubois
t; Frank > > At 06:36 AM 4/26/2007, Caminati Carlo wrote: > > Hello > > > > I have a really strange problem with perlembed > > > > the following fragment of C uses a persistent interpreter and lives > > in a DLL > > > > the function TrapFwPFisToBeSen

strange problem with newSVpvn

2007-04-26 Thread Caminati Carlo
Hello I have a really strange problem with perlembed the following fragment of C uses a persistent interpreter and lives in a DLL the function TrapFwPFisToBeSent is called by a main program a lot of times. I have the following cases: - in a test environment (same DLL called my a small main

Re: Problem with error "Can't call method "Select" on an undefined value" in Win32::OLE Excel script

2007-02-01 Thread Jan Dubois
On Thu, 1 Feb 2007 10:22:55 -0800, "Glen Plantz" <[EMAIL PROTECTED]> wrote: ># *** > >I get the error " "Can't call method "Select" on an undefined value" on >the line: > > >$excel_Retrieve_Workbook->ActiveSheet->Range("A4")->Select(); > >#

Problem with error "Can't call method "Select" on an undefined value" in Win32::OLE Excel script

2007-02-01 Thread Glen Plantz
Hi Folks, I'm having trouble with code that I've done hundreds of times before, but which in this case is causing the error "Can't call method "Select" on an undefined value". Here is a snippet of code: my $excel_app = Win32::OLE->new('Excel.Application') or die "could not creat

Re: problem with write fucntion in Spreadsheet::WriteExcel

2007-01-25 Thread Bill Luebkert
raj esh wrote: > Dear Gurus, > > I want to write some data into the Excel sheet. I have written code > can you people guide me where i am going wrong! > > All code is working fine but data is not getting written in the result.xls > > Here is the code.. > > =

problem with write fucntion in Spreadsheet::WriteExcel

2007-01-25 Thread raj esh
Dear Gurus, I want to write some data into the Excel sheet. I have written code can you people guide me where i am going wrong! All code is working fine but data is not getting written in the result.xls Here is the code..

Re: Problem with SSL and Windows 2003 Server

2006-12-20 Thread Sisyphus
- Original Message - From: "Briggs, Larry" <[EMAIL PROTECTED]> . . > > Event Type: Error > Event Source: Application Error > Event Category: (100) > Event ID: 1000 > Date: 12/11/2006 > Time: 10:41:56 AM > User: N/A > Computer: EIPW2003-7 > Description: > Faulting application perl.exe, ver

Problem with SSL and Windows 2003 Server

2006-12-20 Thread Briggs, Larry
Hi I am in the process of moving our current production Web site from windows 2000 to windows 2003. The web app is written in Perl. I have been able to get everything to work except one program that did work on the W2k server this one program uses SSL to do a SOAP call. In the event log I get

Re: Problem with Win32::Perfmon API

2006-12-14 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > > Hi, > > I had tried doing it but the ppm is giving up !! > > It gives an error of "Cannot connect to the host www.bribes.org < Bad > host name>" It worked ok for me. http://www.bribes.org/perl/ppm/ ___ Perl-Win32-Use

Re: Problem with Win32::Perfmon API

2006-12-14 Thread ankit . mehrotra
Hi, I had tried doing it but the ppm is giving up !! It gives an error of "Cannot connect to the host www.bribes.org < Bad host name>" Ankit Arun Mehrotra Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com =-=-= Notice: The information cont

Re: Problem with Win32::Perfmon API

2006-12-13 Thread $Bill Luebkert
[EMAIL PROTECTED] wrote: > > Hi, > I had been trying to install win32::Perfmon API . hile installation it > is giving warning of some libraries from lib/CORE missing (eg > PDH.lib,msr.lib .) . but makes the Makefile on proceeding > for making the binaries from it, it gives an error th

Problem with Win32::Perfmon API

2006-12-13 Thread ankit . mehrotra
Hi, I had been trying to install win32::Perfmon API . hile installation it is giving warning of some libraries from lib/CORE missing (eg PDH.lib,msr.lib ..) . but makes the Makefile on proceeding for making the binaries from it, it gives an error that 'cl is not found as an internal

Re: problem with tar.gz read

2006-11-16 Thread Sisyphus
- Original Message - From: "Dan Jablonsky" <[EMAIL PROTECTED]> To: Sent: Friday, November 17, 2006 8:55 AM Subject: problem with tar.gz read > Hi everybody, > I guess I still have a problem with my reading of > tar.gz files. Everything work jst great with

problem with tar.gz read

2006-11-16 Thread Dan Jablonsky
Hi everybody, I guess I still have a problem with my reading of tar.gz files. Everything work jst great with the code below until I happened to hit a corrupted file and I can't see a way to jump over it. My point is that in a list with hundreds of tar.gz files all of them are valid, les

Problem with checkbox solved !!

2006-09-11 Thread Mark Funk
I used the following code that works...     $mech->form_number('5');  $mech->tick('samenet', 'on', 0);  $mech->submit_form(form_number => 5);   just trying several different things and $mech->tick with a value of "on" and a set value off "0" unchecks that rascal...   Thanks,   Da

AW: Problem with regex

2006-05-14 Thread Holger Wöhle
> use strict; > use warnings; > > my $Data = 'Hello, i am a litte String.$ Please format me.$$$ > I am the end of the String.$$ And i am the last!'; > > $Data =~ s/([^\$]*)\${3,3}([^\$]+)/$1\\$2/gm; > $Data =~ s/([^\$]*)\${2,2}([^\$]+)/$1\$2/gm; > $Data =~ s/([^\$]*)\${1,1}([^\$]+)/$1\$2/gm; > p

tk problem with 5.8.8 upgrade

2006-05-12 Thread Spencer_Lists
Greetings perl-win32-users, Windows actually allowed a run away script to overwrite my perl5.6 so I had to install again and decided to upgrade to 5.8.8 Now, most of my tk scripts do not work. It seems that the old perl was a little less strict about certain syntax errors so I have to correct the

RE: Problem with regex

2006-05-12 Thread John Deighan
At 09:47 AM 5/12/2006, Yekhande, Seema \(MLITS\) wrote: Holger, Actually $ is a special character in string in perl. So, if the $ is there in the input, you will have to always write it with the leading escape character. So, make your input will be like this, my $data = "Hello, i am a litte S

Re: Problem with regex

2006-05-12 Thread Andy Speagle
tring.\$ Please format me.\$\$\$ I am the endof the String.\$\$ And i am the last!"; $Data =~ s/[\$]{3}//;$Data =~ s/[\$]{2}//;$Data =~ s/\$//; print $Data ."\n"; Hope that helps...   Andy Speagle   -  On 5/12/06, Holger Wöhle <[EMAIL PROTECTED]> wrote: Hello,under Windows

Re: Problem with regex

2006-05-12 Thread John Deighan
5/12/2006, Holger Wöhle wrote: Hello, under Windows with ActiveState Perl i have a strange problem with a regex: Assuming the following String: my $Data = "Hello, i am a litte String.$ Please format me.$$$ I am the end of the String.$$ And i am the last!" The regex should replace $ with

RE: Problem with regex

2006-05-12 Thread Yekhande, Seema \(MLITS\)
tring.$$ And i am the last!"; It will solve your problem. Thanks, Seema GPCT|TDDS|AIS|SPCM3 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Holger Wöhle Sent: Friday, May 12, 2006 6:09 PM To: perl-win32-users@listserv.ActiveState.com Subject: Problem

Re: Problem with regex

2006-05-12 Thread Karl-Heinz Kuth
Hello, my $Data = "Hello, i am a litte String.$ Please format me.$$$ I am the end of the String.$$ And i am the last!" The regex should replace $ with the string , $$ with and $$$ with (please don't think about the why) If tried to use the following: $data =~ s/\$\$\$//gm; #should catch eve

Problem with regex

2006-05-12 Thread Holger Wöhle
Hello, under Windows with ActiveState Perl i have a strange problem with a regex: Assuming the following String: my $Data = "Hello, i am a litte String.$ Please format me.$$$ I am the end of the String.$$ And i am the last!" The regex should replace $ with the string , $$ with an

Re: Problem with print function

2006-05-09 Thread Karl-Heinz Kuth
Suresh, Why not use brackets?: print (($char x $number_of_chars . "\n" ) x $number_of_lines, "\n"); that's one way to do it. I did not set the outer brackets. :-* Thanks Karl-Heinz ___ Perl-Win32-Users mailing list Perl-Win32-Users@listser

Re: Problem with print function

2006-05-09 Thread Karl-Heinz Kuth
Timothy, How about this: print $char x $number_of_chars . "\n" for 1..$number_of_lines; that's another way to do it. Thanks for the hint. This looks a little more smarter than the other solution, but that's only my opinion. I find it more readable. Thanks Karl-Heinz

RE: Problem with print function

2006-05-08 Thread Suresh Govindachar
Karl-Heinz Kuth wrote: > I've got the following problem: > > use strict; > use warnings; > > my $char = "-"; > my $number_of_lines = 3; > my $number_of_chars = 20; > > print "This is the output I want: \n"; > my $line = $char x $number_of_chars . "\n"; > print $lin

RE: Problem with print function

2006-05-08 Thread Timothy Johnson
How about this: print $char x $number_of_chars . "\n" for 1..$number_of_lines; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl-Heinz Kuth Sent: Monday, May 08, 2006 4:30 PM To: perl-win32-users@listserv.ActiveState.com Subject: Problem

Problem with print function

2006-05-08 Thread Karl-Heinz Kuth
Hi, I've got the following problem: use strict; use warnings; my $char = "-"; my $number_of_lines = 3; my $number_of_chars = 20; print "This is the output I want: \n"; my $line = $char x $number_of_chars . "\n"; print $line x $number_of_lines, "\n"; # I do not want to use the var $line. So ho

RE: Language problem with Perl

2006-04-06 Thread Jan Dubois
On Wed, 05 Apr 2006, Bullock, Howard A. wrote: > > I bet this is the problem. The á character seems to be in unicode > > rather than ascii. U can try directly inputting it with Alt+0225 or > > doing >chr(225) (or whatever it is in Hungarian encoding). > > Thanks, I believe you may be correct in tha

RE: Language problem with Perl

2006-04-05 Thread Chris Wagner
ll I ran into the same problem with Lanman, it's not unicode aware at all. U could probably test it by building up the "Rendszergazdák" string directly with chr()'s so there's no doubt about what's being passed. -- REMEMBER THE WORLD TRADE CENTER ---=<

RE: Language problem with Perl

2006-04-05 Thread Bullock, Howard A.
> I bet this is the problem. The á character seems to be in unicode rather >than ascii. U can try directly inputting it with Alt+0225 or doing >chr(225) >(or whatever it is in Hungarian encoding). Thanks, I believe you may be correct in that some characters are not being handled properly. But c

Re: Language problem with Perl

2006-04-05 Thread Chris Wagner
At 06:21 PM 4/5/2006 -0400, Bullock, Howard A. wrote: >#THIS SCRIPT WORKS CORRECTLY FOR OTHER OS LANGUAGES: ># ENGLISH - WORKS (Administrators) ># SPANISH - WORKS (Administratadores) ># GERMAN - WORKS (Administratoren) ># HUNGARIAN - FAILS (Rendszergazdák) WITH 2220 (group name could not be

Language problem with Perl

2006-04-05 Thread Bullock, Howard A.
<> The test script attempts to use both Win32::NetAdmin::LocalGroupAddUsers and Win32::Lanman::NetLocalGroupAddMembers to add members to a specified group. But the name of the group passed to the methods does not appear to be correct when applied to the Hungarian. Please review the script and

Re: Problem with Win32::Service in sub

2005-12-06 Thread Reinhard Pagitsch
Denis Peuziat wrote: Hi, I'm a newbie with perl and I don't know much about programming either. I wrote a script to manipulate services on Windows, and it works fine : sub Stop_Service { print LOGFILE "Stopping $_[0] on $_[1] ...\n"; Win32::Service::StopService($_[1], '$_[0]'); That sha

Problem with Win32::Service in sub

2005-12-06 Thread Denis Peuziat
Hi, I'm a newbie with perl and I don't know much about programming either. I wrote a script to manipulate services on Windows, and it works fine : use Win32::Service; $server_main="ncedpeuziat"; $server_backup="nceoatestdp"; $current_date = localtime(time); open(LOGFILE, ">>CServer_Sync

RE: OLE problem with Outlook

2005-12-01 Thread LeFevre, Ken
handle the messages brought back. The service now works exactly as I had hoped it would. Ken -Original Message- From: Jan Dubois [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 2:15 PM To: 'Steven Manross'; LeFevre, Ken; [EMAIL PROTECTED] Subject: RE: OLE problem wi

RE: OLE problem with Outlook

2005-11-29 Thread LeFevre, Ken
PROTECTED] Subject: RE: OLE problem with Outlook Shouldn't your Win32::OLE->Initialize(Win32::OLE::COINIT_OLEINITIALIZE); Be after the use Win32::OLE qw (.); As well, threading probably doesn't work all that well considering the single-threaded apartment model required for Outl

RE: OLE problem with Outlook

2005-11-29 Thread Jan Dubois
Win32::OLE doesn't really mix with using multiple threads inside Perl. I think you *might* get it to work if you only ever use it inside a single thread, and then also make sure you don't "use" Win32::OLE at all, but just "require" it in the thread that uses it. The Initialize() call would have to

RE: OLE problem with Outlook

2005-11-28 Thread Steven Manross
correct me if I've led you astray on this detail. Steven From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of LeFevre, Ken Sent: Thursday, November 24, 2005 7:32 AM To: [EMAIL PROTECTED] Subject: OLE problem with Outlook I'm writing a p

problem with placeholders in SQL Server

2005-11-28 Thread John Deighan
The following script dies, with the error message "DBD::ODBC::st execute failed: [Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification (SQL-22018)(DBD: st_execute/SQLExecute err=-1)". Can anyone tell me why? The database handle is a good database handle. The fields Ex

OLE problem with Outlook

2005-11-24 Thread LeFevre, Ken
I'm writing a program that monitors an Outlook mailbox and processes incoming e-mail in a given folder with a specified mailbox.  When I run the module that does that actual access in the debugger, it works great.  When I run the same module as a thread, I get the following error:   retrying

RE: Problem With Win32::OLE and InternetExplorer.Application

2005-08-31 Thread Steven Manross
ll Luebkert Subject: Re: Problem With Win32::OLE and InternetExplorer.Application It must be with InternetExplorer.Application. I have tryed with Microsoft.XMLHTTP and it works but, this object dont use Internet Explorer and for my project i must use it. Thanks Bill El Jueves 14 Julio 2005 03:30,

RE: Problem with NetResource::CancelConnection

2005-07-27 Thread Gianvittorio Negri
regards -Original Message- From: [EMAIL PROTECTED] on behalf of Chris Wagner Sent: Wed 7/27/2005 5:54 AM To: perl-win32-admin@listserv.ActiveState.com; perl-win32-users@listserv.ActiveState.com Cc: Subject: Re: Problem with NetResource::Cancel

  1   2   3   >