Re: SFTP

2014-10-27 Thread Justin Allegakoen
Off on another tangent, but it seems not much has changed over the years: http://code.activestate.com/lists/perl-win32-users/31633/ Math::Pari fails to install with strawberry with 5.20 on x64 - never had the time to find out why. I'm sure if you ask sisyphus nicely he'll try and put it up on

Re: learning references/dereferencing (understand $, @, %, but trouble understanding )

2012-12-20 Thread Justin Allegakoen
On 21 December 2012 06:30, Greg Aiken gai...@visioninfosoft.com wrote: #if one desires to pass a scalar reference into a sub-routine, #the easiest way to assign a local scalar to the contents of the scalar reference is... subroutine(\$scalar); sub subroutine { my $subroutine_scalar =

Re: Need help with Data Structure: array of hash

2012-11-22 Thread Justin Allegakoen
On 23 November 2012 08:23, Daniel Burgaud burg...@gmail.com wrote: Hi All, I am having problem with array and Hash data structure. Example is show below: #CODE 1 my @list; my %this; $this{x} = 1; $this{y} = 2; $this{z} = 3; $this{Z} = 4; push @list, %this; My intention above is to

Re: win32 and modifying a file

2012-06-07 Thread Justin Allegakoen
-8--- PS. Not sure that this is of any help to you as I ended up having two files. But at least it may illustrate some more power in Perl. -8--- Windows doesn't allow in place editing, so on DOS you're left with an extra move

Re: Calling a Perl exe with VB - VB/Windows changing current path

2012-04-12 Thread Justin Allegakoen
On 13 April 2012 08:37, Ashley Hoff ah...@dataaction.com.au wrote: ** Howdy Fellow Win32 Perl users. At the moment we are in the process of modding a few file munging app’s to make them Cross platform – this means taking the existing Perl from our Unix based servers, making them compatible

Re: Making directories

2011-10-24 Thread Justin Allegakoen
On 25 October 2011 13:08, Kanhaiya Prasad kpra...@aptaracorp.com wrote: Hi Here is the very good approach to create directories as well recursive directories. use File::Copy; mkdir c:/abc/def/xyz; (It will create all 3 directories and subdirectories as well) ---Kanhaiya You

Re: GuiTest and Locked Screen

2011-09-20 Thread Justin Allegakoen
On 19 September 2011 10:20, Edwards, Mark (CXO) mark.r.edwa...@hp.comwrote: I have a simple Win32::GuiTest example where I find a Notepad window, print its handle and title and then send some keys to it. When I open Notepad and the run the script I see... 4915356: Untitled - Notepad

Re: Perl Module Win32::FileOp 'ShellExecute'

2011-01-03 Thread Justin Allegakoen
On 4 January 2011 13:58, Kanhaiya Prasad kpra...@aptaracorp.com wrote: Hi Could anyone tell me that how to resolve below mentioned error showing during execution of my script which uses Module Win32::FileOp 'ShellExecute'. Use of uninitialized value in subroutine entry at

Re: TaskScheduler and Win32::OLE

2010-04-03 Thread Justin Allegakoen
On 3 April 2010 22:21, Brzezinski, Paul J paul.brzezin...@hp.com wrote: I should have stated that I did first try to download this module – it’s missing from the Activestate repository.  So I downloaded the source and attempted to compile and it’s _broken_.  It hasn’t been updated in several

Re: Printing on Win32

2009-12-16 Thread Justin Allegakoen
2009/12/16 Jon Bjornstad j...@logicalpoetry.com Esteemed Perl-Win32 people, How do I send a plain ASCII text file to the default printer from a Perl program? Win32::Printer has been discontinued (or so says CPAN) and as far as I know it is not available from activestate.com for Perl 5.10.

Re: Need help with RE:

2009-11-16 Thread Justin Allegakoen
2009/11/16 Daniel Burgaud burg...@gmail.com Hi, my $line = Unconfirmed; I need an RE that will give me a TRUE value if the string is 2~8 chars long. otherwise, it gives FALSE; I tried if ($line =~ /\S{2,8}/) { return 1; } else { return 0; } However this does not work. I

Re: Re: Microsoft PowerPoint 9.0 Object Library

2009-09-30 Thread Justin Allegakoen
Hi, I want to write use Win32::OLE::Const 'Microsoft PowerPoint'; instead of use Win32::OLE::Const Microsoft PowerPoint 9.0 Object Library'; ... on one machine the first Notation works correctly on the other machine not, I get an error Message when Loading the TypeLib. Can

Re: Microsoft PowerPoint 9.0 Object Library

2009-09-29 Thread Justin Allegakoen
2009/9/29 armin.no...@aktion-mensch.de: Hi, I want to write use Win32::OLE::Const 'Microsoft PowerPoint'; instead of use Win32::OLE::Const Microsoft PowerPoint 9.0 Object Library'; ... on one machine the first Notation works correctly on the other machine not, I get an error Message

Re: TK question

2009-09-20 Thread Justin Allegakoen
2009/9/19 Spencer Chase spen...@spencerserolls.com Greetings Perl-Win32-Users, I have been trying everything I can think of and nothing works. I have a TK application that uses getopenfile. The problem is that you can select a file in the browser window by either clicking the file and then

RE: :Socket question (client receive - when # of bytes to be received is NOT known in advance)

2009-04-21 Thread Justin Allegakoen
Very quickly - the Perl Cookbook has a number of working examples in Chapter 17 Just in From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: Wednesday, 22 April 2009 7:36 AM To:

Re: trouble understanding unicode

2009-03-27 Thread Justin Allegakoen
Not at all. In fact I concede. This largely depends on the user's locale. Just in 2009/3/27 Chris Wagner wagn...@plebeian.com Sorry for being contrarian here, but this is wrong. Unconditionally blowing away control characters is not the right way to do anything. Using Perl's own encoding

RE: trouble understanding unicode

2009-03-26 Thread Justin Allegakoen
-8- forgive my naivety here but ive never had to use Unicode before. I learned many years ago how to open a simple ascii file using perls open. open (IN, ‘infile.txt’); then read records out of the ascii file. while ($rec = IN) {        

OT: THANKS! (was Win32::FileSecurity problem)

2008-08-20 Thread Justin Allegakoen
Jan, Thanks. The Win32 modules are invaluable, FileSecurity and Lanman even more so (here's anticipating good feedback to Howard's other e-mail). Cheers Just in 2008/8/21 Jan Dubois [EMAIL PROTECTED] I've fixed this problem for Win32-FileSecurity-1.08:

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. pedant_mode That variable activates autoflush, which isn't quite the same as unbuffered output, on the currently selected filehandle, which may

Re: eval { $variable_regex_command }; seems not to work for me...

2008-06-08 Thread Justin Allegakoen
, it would help me to understand perl better if you could explain exactly why the code would not run as I originally coded it. why does including strict pragma and predeclaring the variables help in this case? -- *From:* Justin Allegakoen [mailto:[EMAIL PROTECTED

Re: hi, merge excel files into one

2008-04-06 Thread Justin Allegakoen
Carlos Diaz wrote: Help me please ! Hello, I have some Excel files, I want to pass them to only one file, using win32::ole and perl . ( not cell by cell , loss the format). Thanks a lot I'm sure you want this to work on multiple files and sheets but the following will get you going:-

Re: My first 2 Scripting Games commentaries are online now

2008-02-20 Thread Justin Allegakoen
--8--- Foo JH wrote: One thing I like about Perl is that you don't have to use the forward-slash '\' just because you're writing for the Windows platform. --8--- \ is a backslash / is a forward slash With reference to the above are you

RE: SFTP PPM package

2007-10-30 Thread Justin Allegakoen
-8--- Hello!  When I try to download the Net::SFTP it downloads a package called Net::SFTP-Foreign(see Below).  How do I go about getting the Net::SFTP using ppm?  -8--- Its been a while since I tried so things may have changed -

RE: WMI Problem

2007-10-30 Thread Justin Allegakoen
---8- You know, I seem to remember that it wasn't strict safe (from a long time ago). Since you think it is, please accept my apologies (Because you are the expert when it comes to Win32-OLE, and I just use it). ---8- You probably meant that Win32::OLE is not _thread_

RE: Dynamically referencing a package variable

2007-08-23 Thread Justin Allegakoen
---8 I'd like to figure out how to access package variables at runtime. In other words, I may have a variable $class that contains the classname, and I want to set a value to the package reference by this variable. It'll be something like: $class::Message = It works;

RE: Dynamically referencing a package variable

2007-08-23 Thread Justin Allegakoen
Justin Allegakoen wrote: ---8 I'd like to figure out how to access package variables at runtime. In other words, I may have a variable $class that contains the classname, and I want to set a value to the package reference by this variable. It'll be something like: $class

RE: Truncating decimal number

2007-06-19 Thread Justin Allegakoen
8-- I'm trying to truncate a number, 10.25233006477356, to 6 decimal points. E.g. 10.252330. I don't need to round the number, I just want it to drop everything after the 6th decimal point. This should be easy, but I'm drawing a blank. 8--