Re: Document flow

2006-02-28 Thread Johan Lindstrom
At 19:31 2006-02-28, Alejandro Santillan Iturres wrote: Anyone know about a perl module for document flow management? Not sure what you mean by _document_ flow, but perhaps this? http://search.cpan.org/~cwinters/Workflow-0.17/ /J -- --- -- -- -- - - --

Re: Change in "goto" behavior

2005-07-13 Thread Johan Lindstrom
At 15:55 2005-07-13, John Deighan wrote: but that's another matter. (We initially used a "goto FINISH", but I hated that, too. You can use a "break" if you're in a loop.) We use a method that I really don't have time to describe now, but doesn't use a "goto". I hate goto's, but for the example

RE: Importing Identifiers from Main::

2005-06-30 Thread Johan Lindstrom
At 07:34 2005-06-30, L. Neil Johnson wrote: As mentioned previously, I got tired of editing the absolute indices (e.g., $trade[$i]->[6]) every time the order or meaning of an element of the anonymous arrays changed; so in main I defined typeglobs: This is what I meant when I said a hash is a

Re: Importing Identifiers from Main::

2005-06-29 Thread Johan Lindstrom
At 08:57 2005-06-29, L. Neil Johnson wrote: Problem Statement: The main program creates an array of pointers to (Besides the point: there are no pointers in Perl. There are references though.) anonymous arrays, each of which has about 10 elements. Since I am in the development phase, I k

Re: Application Profiling

2005-06-08 Thread Johan Lindstrom
At 02:02 2005-06-08, [EMAIL PROTECTED] wrote: I suspect IIS and the SQL Server as being the slow down but can't think of anyway to determine if they are or are not. http://use.perl.org/~jplindstrom/journal/19919 Try to enable DBI profiling: http://search.cpan.org/~timb/DBI-1.48/lib/DBI/Profile

RE: Win32::GUI

2005-04-19 Thread Johan Lindstrom
At 23:35 2005-04-18, Peter Eisengrein wrote: > $W->{dialogui} = 1; > > Is this correct? > Actually it is $W->{-dialogui} = 1; Ehrm... Sorry about that :) /J -- --- -- -- -- - - -- - Johan LindströmSourcerer @ Boss Casinos johanl AT DarSerMan.com La

Re: WIN32::GUI

2005-04-18 Thread Johan Lindstrom
At 09:49 2005-04-17, Octavian Rasnita wrote: Does anyone know what Windows graphics library is used by Win32::GUI? The native Windows libraries. I have seen that all the programs which are using the standard Win32 graphics library are very accessible for the blind (for screen readers), but the pro

Re: Module: Win32::Word::Document::Writer

2005-03-28 Thread Johan Lindstrom
At 04:00 2005-03-29, Sisyphus wrote: I think (like you) that 'Win32::Word::Document::Writer contains too many instances of '::' - but I'm not too sure what to do about it. Do you need to include 'Word' ? I'm not all that familiar with this area of MS Windows, but I thought that 'Document' implies '

RFC: Module: Win32::Word::Document::Writer

2005-03-28 Thread Johan Lindstrom
Hi all! I have written a module for creating MS Word documents using the Win32::OLE module. It's a wrapper for getting things done a little more easily than using the DOM directly, and it has quite a few workarounds to bugs and problems with Word. Anyway, what I'm most interested in now is name

Re: TVGuide

2005-03-28 Thread Johan Lindstrom
At 16:24 2005-03-28, Jerry Kassebaum wrote: use LWP; $browser=LWP::UserAgent->new; $url="http://tvguide.com/";; $response=$browser->post($url, ['name'=>'email', 'id'=>'email', 'value'=>'[EMAIL PROTECTED]',]); print"$response"; What you get back is a HTTP::Response object. Reading the docs for that

Re: copying structures

2005-03-17 Thread Johan Lindstrom
At 15:22 2005-03-17, [EMAIL PROTECTED] wrote: Is there a module that 'really' copies the values instead of the references or do I have to do that on my own? Roll your own? This is Perl, remember? It's already done :) perldoc Storable use Storable qw(dclone); # Deep (recursive) cloning $cloneref = d

RE: GUI

2005-01-20 Thread Johan Lindstrom
At 20:13 2005-01-20, Adam R. Frielink wrote: He might be looking for something like 'The GUI Loft'. Possibly SpecPerl or guido as well. I think Guido and the Loft are found at SourceForge. The GUI Loft is at: http://www.bahnhof.se/~johanl/perl/Loft/ /J -- --- -- -- -- - -

Re: Scriptomatic 2 (Win32::OLE)

2005-01-20 Thread Johan Lindstrom
At 15:59 2005-01-20, Chris wrote: For those who haven't seen this yet, it was in today's edition of Microsoft's TechNet newsletter. I didn't find it all that useful, but maybe someone on this list will. I just tried it, and the .hta file worked once this was installed:

Re: Win32-API GetAsyncKeyState

2004-12-03 Thread Johan Lindstrom
At 04:09 2004-12-03, [EMAIL PROTECTED] wrote: "how do i use GetAsyncKeyState in perl?" Something like this? my $rsGetAsyncKeyState = new Win32::API("user32", "GetAsyncKeyState", "N", "I"); my $ret = $rsGetAsyncKeyState->Call($keyCode);

Re: Fwd: mkdir questions on unix platform

2004-11-15 Thread Johan Lindstrom
At 16:15 2004-11-15, Ella Cai wrote: Let me make question clear, in fact my question is how can i create directories recursively. mkpath http://search.cpan.org/~nwclark/perl-5.8.5/lib/File/Path.pm /J -- --- -- -- -- - - -- - Johan LindströmSourcerer

RE: GUI front End

2004-10-18 Thread Johan Lindstrom
At 12:55 2004-10-18, Leroy G. Blimegger Jr. wrote: This is what I was hoping for. Can you point me to a good resource for Win32::GUI and/or Tk? Win32::GUI http://www.bahnhof.se/~johanl/perl/Loft/ Look at the "Win32::GUI starter kit" section /J -- --- -- -- -- - - -

Re: scanf equivalent?

2004-09-07 Thread Johan Lindstrom
At 21:47 2004-09-07, David D Miller wrote: My problem is to read a hex value from a file and process it in binary. For instance, I read a file containing data of the form 0x0b4f. Then I need to mask/shift etc that data before displaying it. You probably want hex(). perl -e "print hex('0x0b4f')" pe

Re: assembly codes inside perl?

2004-06-23 Thread Johan Lindstrom
At 15:25 2004-06-23, Jaime Teng wrote: Has anyone done some Assembly Language Programming inserted into Perl scripts? If so, can you show a sample? I am in need of speeding up a very recursive function; in perl, it took almost an hour; in C++, it took a few seconds. I wanted more speed. You want In

Re: Perl GUI ??

2004-02-12 Thread Johan Lindstrom
At 19:02 2004-02-12, [EMAIL PROTECTED] wrote: There is one additional question for a windoze environment. Which of these GUI's can be compiled into exe's? Does the ActiveState tool kit and Perl2exe work equally well for Win32::GUI, tk, and wxPerl? I've used Win32::GUI with both PerlApp and PAR. I

BitBlt (was: Help Mee...)

2004-01-13 Thread Johan Lindstrom
At 19:45 2004-01-13, Asim Siddiqui wrote: BitBlt(Picture1.hdc,Picture1.current_X,Picture1.current_Y,Picture1.Width,Picture1.Height,Picture2.hdc,Picture2.current_X,Picture2.current_Y,&HC002) Do you use Win32::API to call this routine? What does Perl code that defines this routine look like? Now I

Re: Delphi problem (It _is_ related).

2004-01-13 Thread Johan Lindstrom
At 13:47 2004-01-13, Beckett Richard-qswi266 wrote: I've just been handed a GUI based program that's been written in Delphi 7 (whatever that is). I think that Delphi is a GUI builder that's based on Pascal. Does anyone know if there's a Perl vesrion, or can I convert what's already been done into p

Re: Copying directories.

2004-01-13 Thread Johan Lindstrom
At 11:08 2004-01-13, Beckett Richard-qswi266 wrote: I thought this woule be a lot easier than it seems... All I want to do is to copy a directory, and everything it contains (whatever this may be) to a new directory. -snip- What's the nice and easy way to do this? The CPAN way of course ;) http://

Re: compiled perl scripts?

2003-11-03 Thread Johan Lindstrom
At 17:40 2003-11-03, Mikzu kinos wrote: I want to compile perl scripts on win32 into executables. How do I do it? Is there a binary to use? PerlApp is good. I think perl2exe is good. PAR is good and free. /J -- --- -- -- -- -

Re: Bitmap on a Button, Bitmap not displaying

2003-04-04 Thread Johan Lindstrom
At 06:31 2003-04-04 -0500, Stuart Arnold wrote: It prints out that the $img and $bname are all ok,eg they exist and that $img has a value. I'm using ActiveState PERL 560. The window displays and shows a blank button. The bitmap is 20x20 and I've put the width/height to be 100,100 to see if thats

Re: Net::SCP as Net::SSH::Perl

2003-03-27 Thread Johan Lindstrom
Ricky wrote: Hi! Is there an equivalent of Net::SCP written entirely in Perl (as Net::SSH::Perl)? I need to do some scp'ing from a machine which doesn't have scp available... The far, far, faaar easiest way you can do that is to either use pscp on Windows (which enables you to pass in a passwo

RE: Win32-GUI - Manage Window Objects...?

2003-01-28 Thread Johan Lindstrom
At 14:22 2003-01-28 -0700, Mark Sutfin wrote: >>>The easiest way to avoid pixel math is The GUI Loft... >>>http://www.bahnhof.se/~johanl/perl/Loft/ Downloaded this as well... No properties showing as per docs (running tgl.exe 11/2002). FAQ indicates that my screen resolution must be low...? So

Re: Win32-GUI - Manage Window Objects...?

2003-01-28 Thread Johan Lindstrom
At 08:40 2003-01-28 -0700, Mark Sutfin wrote: I'm just working thru the *guitutx* tutorials that come with the Win32::GUI distribution (0.0.502 on W2K with 5.6.1 633) That's a way old release of Win32::GUI. The 0.0.558, or 0.0.665 release are better. http://dada.perl.it/#gui I think it contain

Re: storing an executable in a script

2002-11-15 Thread Johan Lindstrom
At 19:15 2002-11-14 -0500, Mike Brentlinger wrote: ive played with Convert::UU to uuencode a binary file as some strings that could be stored as just a variable in the script and i have examples that uu encodes and uu decodes a exe just fine... the problem is that the encoded strings have thing

Re: Implementing a queue, memory

2002-10-31 Thread Johan Lindstrom
At 14:39 2002-10-31 +0100, Thomas Drugeon wrote: Will Perl reallocate former used memory (relased from the shift) to next elements (from the push)? IIRC perl is optimized for that scenario (I can't remember where I read it though). It shouldn't be a problem. /J -- --- -- --

Re: Gui rip off.

2002-10-23 Thread Johan Lindstrom
At 09:32 2002-10-23 +0100, Beckett Richard-qswi266 wrote: Does anyone have, or can point me to a script that has a GUI front end that I can pull apart and play with? If you want to use Win32::GUI as the GUI toolkit, this is a useful repost from the win32-gui-users list: - In the source di

Re: Memory consumption

2002-10-16 Thread Johan Lindstrom
At 17:39 2002-10-15 -0700, Mike Gossland wrote: >I used Win32::SystemInfo to show free memory available. I was surprised to >see how much memory was consumed on each pass. By cutting out sections of >code, I was able to see exactly what was consuming the memory. I found >that LWP ate up a bunch

Re: Help about module Win32::Gui

2002-10-16 Thread Johan Lindstrom
At 11:27 2002-10-16 +0200, Bruno FABLET wrote: >is there a "good" help about this module (Win32::GUI) Nope. But there are incomplete docs, sample files to look at, and a pretty responsive mailing list. /J -- --- -- -- -- -- - - - Johan LindströmSo

Re: Win32 show nothing

2002-10-10 Thread Johan Lindstrom
At 09:02 2002-10-10 +0200, Aben wrote: >whats wrong? Note sure, but try to specify -top and -left coordinates as well. /J -- --- -- -- -- -- - - - Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED] Latest bookmark: "Laziness - brian_d_fo

Re: Adding a Timer in Win32::GUI

2002-10-08 Thread Johan Lindstrom
At 14:53 2002-10-08 -0400, Hawley, Eric wrote: >Okay I have been attempting to add a timer to a message box and have been >unsuccessful in being able to do so. I want to have it so that after the >message box displays the user has 10 seconds to either click YES or NO with >default as YES. If aft

Re: Connecting/Parsing Files On A Unix Machine - NEWBIE

2002-10-07 Thread Johan Lindstrom
At 12:34 2002-10-07 +0100, Barlow, Neil wrote: >I have a script which will be launched from a Win32 Machine - the problem is >that I have to connect to a Unix box which contains a directory of different >files which I have to process. > >I am unable to work out how to connect to the Unix box and p

Re: New to Win32::GUI

2002-10-04 Thread Johan Lindstrom
At 11:30 2002-10-04 -0400, Conrad, Bill (ThomasTech) wrote: > For years I have been developing PERL Tk scripts which I have been >using on both UNIX and PC applications. My users want me to make these >scripts more PC friendly Good call! Tk is nice and all, but it's not very pretty. And p

Search the mailing list

2002-09-02 Thread Johan Lindstrom
I don't know for how long it has been fixed, but now you can search the list archives: Search "This Mailing List" in the left collumn. Finally. /J -- --- -- -- -- -- - - - Johan Lindström

Re: screen saver -- how to trip, trigger or kill

2002-08-26 Thread Johan Lindstrom
At 15:22 2002-08-26 -0400, Gan Uesli Starling wrote: >REASON: Have a MySQL DB & a Perl script which querries >it ever 2 minutes for new entry. When it sees a new >entry, Perl calls up MSIE on Win95 to display said >new entry. But alas, all is wasted if the screen saver >is hiding it. Outside of t

Re: Perl 5.6.1 & Win32::GUI & TheGUILoft

2002-08-14 Thread Johan Lindstrom
At 12:57 2002-08-14 -0600, Syl wrote: >Perl 5.6.1 build 633, Win32::GUI and TheGUILoft generate Prototype Mismatch >errors. For example > >Prototype mismatch: sub main::MB_ICONHAND vs () at C:/Perl/lib/Exporter.pm >line 57. This was discussed on the TGL support mailing list: http://groups.yahoo.c

Re: compiling perl scripts into EXE and then using the exe through apache

2002-06-06 Thread Johan Lindstrom
At 16:47 2002-06-06 -0400, Carl Jolley wrote: > > It won't make things much faster. It will make for some bloated .exe > > files. Learning to use mod_perl might get your the performance you > > desire. Have you read this article: > > > > http://www.perl.com/pub/a/2001/06/27/ctoperl.html > > > >I

Re: test if file more than 5 seconds old?

2002-05-30 Thread Johan Lindstrom
At 08:50 2002-05-30 -0400, Trevor Joerges wrote: >You could do the math on the decimal time returned by the "-M" file test. >This should be portable too. I remember having trouble with really small times, like 5 secs ( 5 * (1 / (24 * 60 * 60)) ) using file tests on w2k. Try the stat() function a

Re: GUI and Documentation Q's

2002-05-16 Thread Johan Lindstrom
At 16:22 2002-05-16 -0400, George Gallen wrote: >q1. How do you do GUI, if the perlcode runs in a Dos Window? >q2. Recommend some sites on implements GUI with Win32 modules and > documentation on it's functions? A deja vurl for you: "(GUI) Windows Programming FAQ" http://www.perlmonks.org/i

Re: Using qw(....) on data from database.

2002-05-16 Thread Johan Lindstrom
At 18:28 2002-05-16 +0200, Johan Lindstrom wrote: >If you only want numbers: >push(@nums, split(/\D+/, $nums); Add a ) for syntactic completeness :) /J -- --- -- -- -- -- - - - Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED]

Re: Using qw(....) on data from database.

2002-05-16 Thread Johan Lindstrom
At 12:14 2002-05-16 -0400, [EMAIL PROTECTED] wrote: >This will give me "01 02 03 04" > >I want to push this into an array. > >push @nums, $nums; If you only want numbers: push(@nums, split(/\D+/, $nums); i.e. split on one or more chars that are not numbers (\d is "any number", \D is the opposite

Re: Any ideas how to timeup perlscript ?

2002-05-14 Thread Johan Lindstrom
At 09:05 2002-05-14 +0200, Trash-killer wrote: >As we all know that Alarm() does not work in Win32 I am wondering how to >round this proplem, >Is there any other way to do a timed interrupt ? PerlMonks to the rescue: http://www.perlmonks.org/index.pl?node_id=162674 Haven't used Win32::Event mys

Re: Reverse Engineering

2002-05-13 Thread Johan Lindstrom
At 12:06 2002-05-13 +0100, Batchelor, Gareth wrote: >I recently used PerlApp to create a Win32 executable from a perl script that >I wrote. Unfortunately I have just lost the source code, and I would like to >find out if there is any way for me to obtain the code from the executable. >Does anyone

Re: Stress Test Theory?

2002-05-02 Thread Johan Lindstrom
At 17:21 2002-05-02 +0200, Lee Goddard wrote: >My scenario is an Apache on Windows (not a good idea, but not my app), >a C I script calling a Java middleware app. Interesting note with regards to load: Apache 1.3 on Windows processes requests in a serial manner. Apache 2.0 does not if IIRC, so i

Re: Paypal Integration

2002-02-20 Thread Johan Lindstrom
At 00:12 2002-02-20 +0530, karthikeyan wrote: > I would like to know how should I integrate my site with paypal. What > are all the information I need to pass and what are the information I can > capture back and display to the client. > > If anyone could give me some sample script which is

Re: Sending text to other windows with Win32::GUI

2002-01-24 Thread Johan Lindstrom
Scott Campbell wrote (on the Perl-Win32 list): >Now this is running as a process. Does anyone know of a way for me to >send text to this window, from another perl process? Heh! I tried this out and it actually works! :) Cool! Consider these files: #!/usr/local/bin/perl -w #File: test14.pl us

Re: Win32::ActAcc - where from to download

2002-01-16 Thread Johan Lindstrom
At 18:41 2002-01-16 +0530, Abhra Debroy wrote: >Can anybody tell me where from I can down load 'Win32::ActAcc'. I tried it >from CPAN but failed. http://search.cpan.org/search?dist=Win32-ActAcc http://www.cpan.org/authors/id/P/PB/PBWOLF/Win32-ActAcc-1.0.zip /J -- --- -- -- -

Re: Win32::GUI, msvcrt.dll & Win98

2002-01-14 Thread Johan Lindstrom
Miguel wrote: > Well I download via PPM Win32::GUI from activestates and started with > the "hello world" tutorial . when it came to run the script, I > immediately received... > >PERL caused an invalid page fault in >module MSVCRT.DLL Check if all of your windows and controls have a -name pr

Re: Win32-GUI documentation

2002-01-12 Thread Johan Lindstrom
At 00:46 2002-01-13 +0100, Vilius Gaidelis wrote: >I can not find any documentation or tutorial about this >module. Somebody knows where can I find it? Haha, didn't see that coming :) http://www.jeb.ca/faq/Win32-GUI-FAQ.html Also, make sure you download the source distribution as well, there ar

Re: Choose a DIRECTORY through win32 GUI

2002-01-12 Thread Johan Lindstrom
At 19:04 2002-01-12 +0100, [EMAIL PROTECTED] wrote: >I would like to have a way to choose a directory (not a file, a >directory !) through a nice win32 gui. Until here, I've been proposed : What you want is "BrowseForFolder". Look it up in the help files or post again, possible to the Win32::GUI

RE: Identifying Solaris machines using a Win32 Perl script?

2002-01-10 Thread Johan Lindstrom
Alastair wrote: >Are your Solaris boxes running SNMP? If so you could try Net::SNMP? Or maybe they run SSH? Check if you can connect to port 22. /J -- --- -- -- -- -- - - - Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED] Latest bookma

Re: How to omit lines from execution in a perl program

2001-11-12 Thread Johan Lindstrom
Nick wrote: >I can currently set a debug variable that prevents output, but >I would rather the debug statements were never executed for >optimum speed. use constant DEBUG => 1; #or 0 print "Blah" if(DEBUG); The if-statement should be resolved at compile time, not run-time AFAIK. /J -- -

RE: Good IDE's, either freeware or commercial, for debugging?

2001-11-10 Thread Johan Lindstrom
At 15:53 2001-11-09 -0800, Peter Guzis wrote: >Well, you get what you pay for. If you want free, by all means try notepad >or one of its freeware variants. UltraEdit is only $30 and worth every >penny. I'm blowing my own horn here, but if you like UltraEdit, try Perl Oasis: It can be used stan

Re: Embedding Perl

2001-10-12 Thread Johan Lindstrom
MATA Tech wrote: >About two years ago I had heard that there were methods for >embedding VB in Perl. At that time, though, I was unable to find >any information on how to do it. Since that time, I have a desire to >embed Perl in VB, using VB just for GUI creation. Can it be done? You can creat

Re: Win32::Gui

2001-09-29 Thread Johan Lindstrom
T.Phan wrote: > I just installed the Win32::Gui package and I > like to know where can I find the documentation? Whoa! Blue text! Why, oh, why? Nevermind... The (very) FAQ regarding the Win32::GUI documentation: Look in the source distribution at SourceForge (download and look at the sam