Re: why does perl critic not like @_

2014-08-19 Thread Robert W Weaver
les (like heavy use of $_) is too clever. Better would be my @row_ary = $h_wk->selectrow_array("SELECT COUNT(*) FROM v_internals"); or even @temp_ary = to be more clear. When people (and modules like Perl::Critic) see @_, they think subroutine variables. --woody --

Re: Perl-Win32-Users Digest, Vol 70, Issue 2

2012-06-05 Thread Robert W Weaver
perl-win32-users-boun...@listserv.activestate.com wrote on 06/05/2012 03:00:02 PM: > A non-text attachment was scrubbed... > Name: pullFromEventLog.pl It was a text attachment, you silly little program... Well, I don't know how to get my mailer to send text only, so I can't blame it much. Its

RE: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-05 Thread Robert W Weaver
twork logins from sources that I don't know about" -- the debian laptop that someone is using a remote login from, for example, that you hadn't expected. Designing that SQL query is left as an exercise.. :-) --woody -- Dr. Robert "Woody" Weaver GBS Cybersecurity &

Re: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-04 Thread Robert W Weaver
"\t", $host, $user, $domain ), "\n"; } warn "$users users found.\n"; } ## end foreach my $server (@Hosts) sub pullRefs { my $str = shift; my $tmp; my $rv; ( $tmp, $rv, $tmp ) = split( /\"/, $str ); return $rv; } -- Dr. Robert "Woody" Weave

RE: Isn't there a way to set variables in a loop?

2012-01-30 Thread Robert W Weaver
r baz); foreach my $var (@vars) { my $x = "\$$var = 'why, ' . \$$var . \"\\n\";"; eval $x; } print $foo, $bar, $baz; This prepends 'why, ' and postpends a crlf to each of the variables foo, bar, and baz. eval allows you to break the fourth wall. --wo

RE: Window 7 x64, @inc search question

2012-01-09 Thread Styma, Robert E (Robert)
for the help. Bob From: Jan Dubois [mailto:j...@activestate.com] Sent: Friday, January 06, 2012 10:39 AM To: Styma, Robert E (Robert); perl-win32-users@listserv.ActiveState.com Subject: RE: Window 7 x64, @inc search question Your description on how things are

Window 7 x64, @inc search question

2012-01-06 Thread Styma, Robert E (Robert)
Robert E. Styma I have just joined this mailing list. I am responsible for an assortment of perl programs which I have inherited and am testing and adjusting to get them running under a Windows 7 X64 environment. At the time the code was written we were using Perl 5.6.1. When I discovered

RE: Non-blocking keyboard?

2011-10-07 Thread JONES, ROBERT E CTR USAF AETC TTMS/TTMS
You might want to look into the Term::Readkey module. Robert Jones, BSP, BSCS Keesler AFB -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Barry Brevik Sent: Friday, October 07, 2011

perl won't alarm?

2011-02-23 Thread Robert W Weaver
derstand (its a PsExec of opmnctl @cluster status -app on a windows oracle server). Unfortunately, the block above never exits. Is there a way I can protect my routine from hanging system calls? -- Dr. Robert "Woody" Se

ANNOUNCE: Win32::VisualStyles V0.02

2009-07-14 Thread Robert May
All, Back in May there was a discussion on this list about Visual Styles (aka XP Styles). Up to now we have been coping with applying style by copying a manifest file into the perl bin directory. This is unsatisfactory for a number of reasons. (1) It is difficult to make this work when packing

Re: Perl-Win32-Users Digest, Vol 28, Issue 8

2008-11-20 Thread Robert W Weaver
Foo JH <[EMAIL PROTECTED]>, on 20 Nov 2008 10:40:13 +0800 wrote: > Fish, David wrote: > > Hello! The problem I am having is I am pulling data from a table in a > > certain order and loading it into the hash array but when I read the > > hash array it comes out in a different order than it is writ

Re: Producing a notification window over icon region

2008-11-09 Thread Robert May
2008/10/15 Andrew Black <[EMAIL PROTECTED]>: > I would like to produce a noticification window - in the same way as > programs like Outlook do when new mail comes in. Is this possible with > Perl or should I be looking for another tool. > > My first attempt is > perl -MWin32 -e "sleep(10); Win32::

Re: printing html with hardcoded page breaks ???

2008-05-21 Thread Robert W Weaver
amples and discussion. -- Dr. Robert "Woody" Weaver Security, Privacy, Wireless, and Information Assurance IT Security A

RE: How to change dir using SFTP or SSH

2008-05-19 Thread Sturdevant, Robert W Mr CTR USA AMC
client issue. Anyway, thanks for the help...much appreciated. Sturdy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Raven Sent: Monday, May 19, 2008 5:21 AM To: perl-win32-users Subject: RE: How to change dir using SFTP or SSH Sturdevant, Robert W Mr

FW: How to change dir using SFTP or SSH

2008-05-16 Thread Sturdevant, Robert W Mr CTR USA AMC
to:[EMAIL PROTECTED] On Behalf Of Sturdevant, Robert W Mr CTR USA AMC Sent: 16 May 2008 15:55 To: perl-win32-users Subject: How to change dir using SFTP or SSH > Hi list, > > I have a perl (5.6) SFTP client (Net::SFTP) that gets and puts files using either a full or relative path with &g

How to change dir using SFTP or SSH

2008-05-16 Thread Sturdevant, Robert W Mr CTR USA AMC
Hi list, I have a perl (5.6) SFTP client (Net::SFTP) that gets and puts files using either a full or relative path with the filename something like this $sftp->get( $remotename, $localname ); # where $remotename = '/Home/OUT/myfile.txt' But I have a remote system (a unix box) that rejects the pa

Re: rsync for Win32

2008-03-10 Thread Robert May
On 10/03/2008, Sisyphus <[EMAIL PROTECTED]> wrote: > But, afaict from 'perldoc perlhack', if I want to stay in touch with the > current perl developments I need to be able to download the latest source by > running: > > rsync -avz rsync://public.activestate.com/perl-current/ > > Only problem i

Re: Perl-Win32-Users Digest, Vol 19, Issue 15

2008-02-25 Thread Robert W Weaver
of students half way through a semester. And they would do very well indeed to learn style from PBP. --woody -- Dr. Robert "Woody" WeaverSecurity, Privacy, Wireless, and IT

Re: discussing good style

2008-02-22 Thread Robert W Weaver
Dave Golden wrote: > Jan Dubois wrote: > > So any feedback on the style /content would be welcome. > I really liked that you discussed good style and some defensive > coding, even though that wasn't required by the competition. > "open or die" -- I personally think it's good style to die with at

Re: Registerhotkey() Using Win32 API and GUI

2007-11-10 Thread Robert May
On 24/09/2007, Veli-Pekka Tätilä <[EMAIL PROTECTED]> wrote: > Robert May wrote: >>> Has anyone gotten the system wide RegisterHotkey and UnrEgister hotkey >>> Win32 functions working with Win32::GUI and Win32::API? >> See here: >> http://www.mail-arch

Re: Registerhotkey() Using Win32 API and GUI

2007-09-23 Thread Robert May
On 23/09/2007, Veli-Pekka Tätilä <[EMAIL PROTECTED]> wrote: > Hi, > Has anyone gotten the system wide RegisterHotkey and UnrEgister hotkey > Win32 functions working with Win32::GUI and Win32::API? See here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg05248.html Regards, Rob. > I just tr

Re: Perl Help - Addlabel

2007-08-26 Thread Robert May
On 24/08/07, TR Thomas Rundo (8373) <[EMAIL PROTECTED]> wrote: > The problem I am having is that as I am adding (AddLabel) labels onto the > window unless I have a messagebox popup to stop the app and wait for user > input, you won't see the Add Labels. I have a messagebox at the very end > that wi

RE: Need OLE COM/Variant help

2007-04-12 Thread robert . w . sturdevant
Hi Kevin, Thanks for the quick response. And of course it works. I thought I had tried this too but just went back and discovered I had transposed @$ to $@ (when converting the array) and of course another error due to a careless mistake. That's what happens when you look at something too long. An

Need OLE COM/Variant help

2007-04-12 Thread robert . w . sturdevant
Hi List, I am using Win32::OLE to access a custom COM interface (Secure FTP Server by GlobalSCAPE). Mostly I have been successful after much reading, experimentation and gnashing of teeth but how to retrieve a VARIANT array totally escapes me. The only interface description I have is this IDL: Re

Re: [perl-win32] Re: Win32::Printer - Multiple Line Output

2006-06-08 Thread Robert May
$Bill Luebkert wrote: Timothy Johnson wrote: Maybe try /r/f instead of /r/n? I'd just use \n which should be output as \r\n if you haven't use binmode. I doubt it. The Win32::Printer::Write() method calls the Win32 API directly (TextOut() OR DrawText()). There's no PerlIO layers anywher

Re: [perl-win32] RE: Win32::Printer - Multiple Line Output

2006-06-08 Thread Robert May
Try using 'Draw Mode' (DM) rather than 'String Mode' (SM) - that means using the $height = $dc->Write($text, $x, $y, $width, $height, [$format, [$tab_stop]]); form of the Write() call. Rob. Jack D. wrote: -Original Message- From: Timothy Johnson [mailto:[EMAIL PROTECTED] Sent: June

RE: Active Perl and custom (simple) modules - differences from linux?

2006-06-08 Thread Hicks, Robert
gt;in use at ... >[error] [client 127.0.0.1] Undefined subroutine &main::db called at ... > > >Can anyone see what is wrong? I believe that it cannot see your db.pm, so you need to add it to your lib path. Something like: use lib qw( ./ ); HTH :Robert ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [perl-win32] Re: The Command Prompt encoding

2006-05-26 Thread Robert May
DE status code page function completed You can get this info programatically in perl using Win32::Console, which you should do, as you have no guarantee that any particular console is actually using cp850. C:\WINDOWS>perl -MWin32::Console -e "print Win32::Console::OutputCP()" 850

RE: Resolved - Question about Win32::OLE

2006-05-26 Thread robert . w . sturdevant
Title: RE: Resolved - Question about Win32::OLE After screwing up the last two days, I now have this well embedded in my mind. Wel, at least until I have another memory dump. This list is a great resource. Best to all, Sturdy > -Original Message- > From: Timothy Johnson [mail

RE: Resolved - Question about Win32::OLE

2006-05-25 Thread robert . w . sturdevant
Title: RE: Resolved - Question about Win32::OLE Hi Nick, > Take a look at the API doc for whatever SFTP program you are accessing; > it may be returning values you are not expecting.  After you instantiate > via the new method in OLE you are passed back whatever the external > program passe

Resolved - Question about Win32::OLE

2006-05-25 Thread robert . w . sturdevant
Title: Resolved - Question about Win32::OLE First, thanks to all who offered their assistance. I spent many hours trying to make my simple test script work...and it does (did)! Darn thing had been working all the time (very embarassing). The problem seems to be die or warn in this line: $SFTP

RE: Question about Win32-OLE

2006-05-25 Thread robert . w . sturdevant
Title: Question about Win32-OLE Hi Jan,   Thanks for the assist. I apologize for the HTML. I'm using Outlook and it is set for "Plain Text" so I don't yet know where the HTML is coming from. This is a company computer so much of the configuration is locked in. I'll try to find the problem

RE: Question about Win32-OLE

2006-05-25 Thread robert . w . sturdevant
Title: RE: Question about Win32-OLE Hi Nick, Thanks for your thoughts (it was a looong day). I did both. I trapped LastError after instantiating the object and new() does not throw an error. However, I can't tell if it is occurring correctly. Sturdy > -Original Message- > From: B

RE: Question about Win32-OLE

2006-05-25 Thread robert . w . sturdevant
Title: Question about Win32-OLE Hi Timothy, Thanks for the response. Here is the error trapping added (changed die to warn) which produces the output as I originally stated.   $SFTPServer->connect( $Server, $Port, $UserName, $Password ) or warn "Could not connect as $UserName to $Server:

Question about Win32-OLE

2006-05-24 Thread robert . w . sturdevant
Title: Question about Win32-OLE Hi all, I am having a problem accessing a commercial SFTP server app (non-MS). My code is below. I can instantiate the object but the connect method refuses to establish the connection. use Win32::OLE; my $Server = "localhost"; my $Port =  "1000"; my $User

RE: Re[2]: Does NET::SFTP work on Win32?

2006-05-17 Thread robert . w . sturdevant
Title: RE: Re[2]: Does NET::SFTP work on Win32? Thanks Christopher and others for the response. I installed from Soulcage.net (thanks Scott) without a problem so all looks good. Chris, I successfully (and shamelessly) tested with your example with a few local changes. There is a lot of negativ

Does NET::SFTP work on Win32?

2006-05-16 Thread robert . w . sturdevant
Hi all,   I have a perl ftp client that connects to IIS and I need to update the client to use a secure means of transfer to a SSH/SSL server. All I need to do is open, login, send, get, and size for files on a remote box. I have net::sftp and net::ssh::win32 and other associated modules

Re: [perl-win32] Re: Tk beep on Win2K?

2006-05-01 Thread Robert May
Lyle Kopnicky wrote: $Bill Luebkert wrote: [snipped stuff about using an ICA session and not getting beeps] Apparently what you need to do is get the PC or whatever you are logging in from to generate the beep rather than the MB speaker. I can do that, by typing ^G in the console and hit

Re: [aswin32] Re: Possible DynaLoader or MinGW bug?

2006-03-24 Thread Robert May
Sisyphus wrote: - Original Message - From: "Robert May" . . A series of tests: Drop - ok DropF - fails AropF - fails DropFi- fails DropFile - fails DropFiles - fails DropX - fails DropFx- fails DropFilesx- fails

Re: [aswin32] Re: Possible DynaLoader or MinGW bug?

2006-03-24 Thread Robert May
Robert May wrote: [possible bug with either mingw or DynaLoader under win98, narrowed down to a mingw bug] Now I just need to find out what the difference is between the 2 dll's. MS's Dependency walker (Depends.exe, comes with the platform SDK) loads both fine, and doesn't

Re: [aswin32] Re: Possible DynaLoader or MinGW bug?

2006-03-24 Thread Robert May
Sisyphus wrote: - Original Message - From: "Robert May" . . Steps to invoke problem: (1) run: h2xs -A -n SomeModule (2) cd into the created SomeModule directory (3) run the incantation: perl -MConfig_m Makefile.PL nmake nmake test Generally this works

Possible DynaLoader or MinGW bug?

2006-03-23 Thread Robert May
pts, 0.00% okay. 1/1 subtests failed, 0.00% okay. It's an odd error message! The problem disappears if I compile with VC6, making me think in more likely to be a MinGW issue, but I'd like to be able to build with MinGW without choosing a different module name. Any suggestions on where

System resources used by Perl script

2006-03-14 Thread Robert Killheffer
I’m testing several different algorithms for performing the same task, and I’m wondering if there is some way I can tell – from within each version of my script – how much memory and CPU time the script uses each time it runs.   I would like to be able to output this information to a log,

RE: ActivePerl 5.8.7.815 released

2006-03-07 Thread Hicks, Robert
I would have thought the next one would have been based on Perl 5.8.8? Or is it too soon for that one? Robert ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: I need your opinion: perl vs php

2006-02-27 Thread Hicks, Robert
easier to use and admin (IMO). Perl + MySQL (or Pg) and Template-Toolkit is a very sweet combination. TT lets you separate design and code. If you are looking at a CGI setup I would recommend CGI::Application + Template-Toolkit. I have had very good results using TT alone and with CGI::Application.

RE: When ActivePerl 5.8.8 out?

2006-02-23 Thread Hicks, Robert
> On Wed, 22 Feb 2006, [EMAIL PROTECTED] wrote: > > I'm waiting for the latest version, When ActivePerl 5.8.8 will be out? > > Soon :) > I started to write "when it is ready". :) Robert ___ Perl-Win32-Users mai

Re: [aswin32] RE: Perl Bug (again)

2006-02-18 Thread Robert May
ael and Dave Mitchell proposed some alternatives, but the current form of the warning is likely to go into 5.9.1, even if it's made lighter afterwards. I has been discussed on p5p more recently (in the last few months) but I can't quickly turn p a reference. Regards, Rob. -- Ro

Re: [aswin32] RE: Perl Bug (again)

2006-02-17 Thread Robert May
John Deighan wrote: At 01:06 PM 2/17/2006, Joe Discenza wrote: Fascinating! You have one misconception right off: The "my" line is never executed (not even to make the new variables) if $L is false. OK, then, consider this program. Notice that there's a global $i which has the value 5. Now,

Re: [aswin32] Ok with perl 5.8.3 on win2000, nok with perl 5.8.7 on winXP

2006-02-14 Thread Robert May
ect being destroyed until your script exits. [As an aside, this also works around another problem where calling Win32::GUI::MakeMenu repeatedly (as you do) leaks memory] I may be wildly off the mark, as you've not really posted enough code for me to see what else might be going on, but

RE: Can sleep() be conditional?

2006-02-09 Thread Jones Robert TTMS Contractor
I ran your script from a cut-and-paste from your code below. The program worked exactly as it was expected. The script printed out "0 1 2 3 4 5", paused for 5 seconds, "6 7 8 9 10" continued. > -Original Message- > From: [EMAIL PROTECTED] > On Behalf Of Todd Morrison > Subject:

RE: Problem identifying Win32 Type

2006-02-08 Thread Sturdevant, Robert W. C-E LCMC SEC-Lee SSC
Hi Howard, thanks for the response. This ought to be pretty simple, BUT... I looked at Win32::GetOSVersion() several months ago but it doesn't seem to differentiate between Win 2000 Svr and Pro. Here is a quick example that provides the same output for both Svr and Pro. It doesn't appear to pull S

Re: [aswin32] Win32::GUI: How do I use a splitter (window "frames")

2006-02-07 Thread Robert May
I posted this example to the list not that long ago. I've since corrected it so that it doesn't leave ugly lines all over the place. Regards, Rob. #!perl -w use strict; use warnings; use Win32::GUI; my $mw = Win32::GUI::Window->new( -title => "Splitter Test", -pos => [100,1

Problem identifying Win32 Type

2006-02-07 Thread Sturdevant, Robert W. C-E LCMC SEC-Lee SSC
Hi list,   I need some help identifying Win 2000 Pro installations in my Perl script. Win 2000 Svr is not a problem. Here is what I am doing.   MS has GetType.exe as part of the W2k Resource Kit. But when run on 2000 Pro from Perl script (at least mine) I get an invalid response. I have

RE: PPM error

2006-02-01 Thread Hicks, Robert
>From the ActiveState docs: Under Windows XP 1. Open the Control Panel and click the System icon. The System Properties dialog is displayed. 2. On the Advanced tab, click on Environment Variables. The Environment Variables dialog is displayed. 3. Click

RE: Hello! Help me please!

2006-01-05 Thread Hicks, Robert
quot;;   content of this $url is:   $content   EOF     } == I believe that if you inline a heredoc like that the contents of the heredoc have to be left aligned all the way to the left margin. If you find that too ugly you can factor out t

Re: [aswin32] using MS Excel grid

2006-01-01 Thread Robert May
should be able to host any ActiveX capable application. Get it from: http://rocherl.club.fr/Win32GUI.html#AxWindow Regards, Rob. -- Robert May Win32::GUI, a perl extension for native Win32 applications http://perl-win32-gui.sourceforge.net/ ___ Perl

RE: how to delete a directory and its subdirectory using Perl under Windows?

2005-12-19 Thread May, Robert
gao perlone wrote: > how to delete a directory and its > subdirectory using Perl under Windows? See the rmtree() function in the File::Path module. Rob. = This email message and any attachments thereto are intended only for use by the addr

Re: How to disable a control without changing appearance

2005-12-19 Thread May, Robert
Chris Rogers wrote: [snip] > The whole idea is to be able to use the mouse to grab > any control on a given Win32::GUI window and drag it > to a new location. Sort of a gui designer. Apologies for my first response, I completely mis-understood What you were trying to do. Is this better? Look

Re: [aswin32] Re: How to disable a control without changing appearance

2005-12-18 Thread Robert May
Lynn. Rickards wrote: Chris Rogers wrote: I'm looking for a way to disable a control (widget) without changing it's appearance. I would like to be able to do this for any type of control. Any help would be greatly appreciated. Thanks, Chris Tk? Win32? Either way, what comes to mind inst

Re: [aswin32] MDI Windows and Icons

2005-12-16 Thread Robert May
-firstchild => 100, ) or die "client creation failed: [EMAIL PROTECTED]"; my $cw = $mc->AddMDIChild( -name => 'window1', -text => 'Window1', -pos => [100, 100], -size => [810, 610], -class => $child

RE: True Story

2005-12-05 Thread Hicks, Robert
uot; > > He didn't get it. :) > Where I live, they would have shot you first and asked the question later! : ) Robert ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: [aswin32] console echo

2005-12-04 Thread Robert May
mode - doesn't need cr/lf to flush input my $char=''; until($char eq "\r" ) { # to exit $char = ReadKey(0); print $char; } ReadMode(0); # Reset tty mode before exiting exit(0) __END__ Regards, Rob. -- Robert May Win32::GUI, a perl extension for native Win32 a

J2EE interfacing

2005-11-21 Thread Jones Robert TTMS Contractor
Pardon the berevity here, but I'm looking for some information on interfacing with a J2EE application. We run an application over here which is changing to a web-based implementation. Our current process of inputting data from outside systems into the database was via DBI. We are now instructed

Re: [aswin32] I am using **split** incorrectly?

2005-11-06 Thread Robert May
Alejandro Santillan Iturres wrote: [snip] $textcomplete="Mary has a little lamb\nMary has a little lamb which is black!"; $i=0; @textinlines=split(/\n/,$textcomplete); foreach(@textinlines){ print "$i:$textinlines[$i]\n"; @textinchars=split(//,$textinlines[$i]); foreach(@textinchars){print "

Re: Regex

2005-09-27 Thread robert johnson
David Budd wrote: I thought this was working, but my logs just showed a case where it seems not to do what I want. Why does: $OK_body=($body=~/library\s*?card\D*?(\d{7})\D/i) ; Not become true when $body contains: Library Card: 0240742 i'd bet that it passes when you have some whitespace af

Re: [aswin32] Creating a grid control

2005-08-03 Thread Robert May
Octavian Rasnita wrote: Does anyone know if it is possible to create a grid control which is accessible using the keyboard only (no mouse)? I have tried a few examples from the Win32::GUI::Grid package, but I could select a cell only by using the mouse, but I would like to have a grid in which I

Re: [aswin32] Re: Need help with Perl GUI

2005-08-03 Thread Robert May
Jaime Teng wrote: Too bad win32::GUI does not have much documentations as well. Does anyone have a good win32::gui website or book even? What exists as formal documentation for Win32:GUI is available (as of yesterday) at http://perl-win32-gui.sourceforge.net/ We're actively working on compl

Re: [aswin32] RE: creating a combo box

2005-08-01 Thread Robert May
Peter Eisengrein wrote: Hi, Sorry for my previous message. I have discovered that I was using an older version of Win32::GUI that was installed using ppm, but now after installing it from cpan.org, it works fine. Nevertheless, the problem is that the Dialog was missing the -name parameter.

RE: HTML::GoogleMaps or Other Way to show multiple addresses on a map

2005-07-30 Thread robert
> -Original Message- > From: Suresh Govindachar > > I could not even get started with HTML::GoogleMaps and > geocoder.us since the "Online Example" ... pop-up an error > dialog box about internet explorer not being able to open > the internet site. I got it to open up and work just g

Re: [aswin32] XS problem

2005-07-29 Thread Robert May
Brian Casey wrote: >nmake Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. Skip blib\lib\MSC\LAPI.pm (unchanged) Running Mkbootstrap for MSC::LAPI () C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 LAPI.b

Re: creating a combo box

2005-07-27 Thread Robert May
Hi, There are 3 different types of combobox - see MSDN for details: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/comboboxes/comboboxes.asp Two of the types include the selected item in an edit control, whose default behaviour is to use home/end to m

Re: Perl system calls wont work on Win98? help!

2005-07-26 Thread robert johnson
worse is that i also have the C program writing to a file... the write occurs when i run the C-executable alone, or when i call it via any Perl method on a WinXP machine... but the file write ("fwritef") doesnt even occur when i call the executable from any Perl method on a Win98 mach

Perl system calls wont work on Win98? help!

2005-07-26 Thread robert
proper textfile will be written. needless to say, this is driving me ABSOLUTELY NUTS! :-P my perl program and the compiled executables are the same programs. i dont have different programs being called here. they are the exact same files, pulle

RE: text-to-speech

2005-07-26 Thread robert
> -Original Message- > From: Chris <[EMAIL PROTECTED]> > Sent: Monday, July 25, 2005 2:39 PM > > > > I would like to use Viavoice, because it is more clear than MS > text-to-speech, and I am blind, so I would like to use it in > some applications. > > > Teddy > > > Um Not to be

RE: Split function in Perl

2005-07-26 Thread robert
> -Original Message- > From: $Bill Luebkert > Sent: Monday, July 25, 2005 11:42 PM > > robert wrote: > > >>s/"([^"]+) ([^"]+)"/$1\000$2/g; > > > > holy cow. can you explain that substitution? my brain just about >

RE: Split function in Perl

2005-07-25 Thread robert
> -Original Message- > From: $Bill Luebkert > Sent: Monday, July 25, 2005 9:30 PM > > s/"([^"]+) ([^"]+)"/$1\000$2/g; holy cow. can you explain that substitution? my brain just about popped. > > my @a = split / +/; > > foreach (@a) { > s/\000/ /g; # restore e

RE:

2005-07-25 Thread robert
> -Original Message- > From: Rajesh Vattem > Sent: Monday, July 25, 2005 9:19 PM > > > Hi Robert, > If you open a hyper terminal and see the baud rate supported > you can see that 921600 is a supported value. If I use a USB > to serial converter to suppo

RE:

2005-07-25 Thread robert
speed of 128K I've never seen Win32::SerialPort run at anything faster than 115200. and I've had some problems with serial modems over 56K these modules were stablized about six years ago, and I dont think theyve been updated since. Serial-Port communication is kind of "trail

RE: comparing floating point numbers

2005-07-25 Thread robert
-Original Message- From: James Sluka Sent: Monday, July 25, 2005 9:11 AM > Robert's solution (rounding with sprintf) is pretty good, except it > requires that you know something about the numbers. you are correct about the limitations of floating point accuracy, but in this case you ar

Re: comparing floating point numbers

2005-07-25 Thread robert
use "sprintf" to set the floating point field to 2 decimal places. (or more, if you want them...) $float1=-135.176# final values before rounding $float2=-135.184 $float1=sprintf("%.2f",$float1);# force $float1 to be rounded at 2 decimal places $float2=sprint

RE: comparing floating point numbers

2005-07-25 Thread robert
use "sprintf" to set the floating point field to 2 decimal places. (or more, if you want them...) $float1=-135.176# final values before rounding $float2=-135.184 $float1=sprintf("%.2f",$float1);# force $float1 to be rounded at 2 decimal places $float2=sprintf

RE: comparing floating point numbers

2005-07-25 Thread robert
On Sunday, July 24, 2005 at 6:11 PM, Ken Barker wrote: > > What kind of post is this? > > I do not see that anything was added at all. Give us all a > break - don't > bother - whatever your intentions. > well, don't you feel stupid now? > > At 06:35 PM 7/24/2005, $Bill Luebkert wrote:

OT: setting password for awstats.pl

2005-07-23 Thread robert
Title: Message when i saw this subject pop up in my inbox, i thought it said "setting password for asshats"   but then again, i was drunk.     -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted YuSent: Saturday, July 23, 2005 11:35 AMTo

RE: help with defined and !not defined

2005-07-23 Thread robert
> -Original Message- > From: lorid > Im want to set the $photo_year and $photo_month to another > value if it > is not already set. > > my $ARGV[0] will sometimes be passed a string like > this:nvIGRA with no > date at end and sometimes with date nvIGRA200511 > if it does not have

RE: send output to a parallel port?

2005-07-22 Thread robert johnson
um... sorry Ken, you are absolutely right. my WinXP does not allow writes to the IO port. It does on 98, and i mistakenly thought it was working on XP as well. technically, I only need this to work on the manufacturing's Win98 machines, and now methinks the working C-code might be just fine af

RE: send output to a parallel port?

2005-07-20 Thread robert
> -Original Message- > From: Ken Cornetet > > Writing to an IO port from a user program isn't allowed under > NT/2k/XP. > > To do this you need some sort of driver. > > Check out http://www.winfordeng.com/products/portio32/#samples well somehow the single line of C code ou

RE: send output to a parallel port?

2005-07-20 Thread robert
> -Original Message- > From: Sisyphus > Afaik a function declared as void would not return. it won't return a value, but it still has to go back to the caller. > Anyway, if it's that simple to do in C then it's also very > simple to achieve in perl, using Inline::C. thats interes

send output to a parallel port?

2005-07-19 Thread robert
Hey all we have some devices at work that are controlled by sending signals via the computer's parallel port. (because all the serial ports are being used elsewhere) the parallel port (LPT) has the address 0x378. to do this in C, its quite simple: void parallel_device (int state) { ou

Re: [aswin32] Re: RE: How to find the perl install directory?

2005-07-13 Thread Robert May
Anything wrong with: #!perl -w use strict; use warnings; use Config; print $Config{prefix} . "\n"; print $Config{prefixexp} . "\n"; # fully expanded version of above (probably # the same in Win32) exit(0); __END__ Regards, Rob. [EMAIL PROTECTED] wrote: He

ANNOUNCE: Win32::GUI v1.02

2005-07-11 Thread Robert May
I am please to announce that v1.02 of Win32::GUI is available for download from SourceForge. Win32::GUI is a Perl extension allowing creation of native Win32 GUI applications. Project summary and download: http://sourceforge.net/projects/perl-win32-gui/ Release notes: http://sourceforge.net/pr

RE: Using canned subroutines with includes

2005-07-06 Thread Jones Robert TTMS Contractor
Where's your drive letter? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chad I. Uretsky > Sent: Wednesday, July 06, 2005 9:39 AM > To: '[EMAIL PROTECTED]'; > 'Perl-Win32-Users@listserv.ActiveState.com' > Subject: RE: Using canned subro

RE: can't redirect STDERR

2005-06-18 Thread robert johnson
Glenn Linderman wrote: > > On approximately 6/17/2005 10:29 PM, came the following > characters from > the keyboard of robert johnson: > > perl 5.8.6 on Win32 > > > > i need to redirect STDERR, in order to parse runtime information from > > a flash progra

can't redirect STDERR

2005-06-17 Thread robert johnson
ult behavior), and so my program doesnt work worth a hoot. anyone know a way around this? any help will be much appreciated, as this is going to be a big PIMA real quick when manufacturing (and their crappy win98 machines) get held up. thanks, robert ___

Win32::SerialPort collecting data stream

2005-05-13 Thread robert johnson
i just can't get this figured out. i have a device, that reports ascii data via a typical (DB-9) serial port. i set up Win32::SerialPort in the following method: $comm = Win32::SerialPort->new($port) or die "Close any application using $port\n"; $comm->baudrate($baud); $comm->databits($dbits); $

Perl.Net, PerlApp fail building executable in activestate PDK on windows

2005-05-07 Thread robert johnson
sorry for the crossposting, but all these lists could be appropriate. please correct me in your reply as needed. i just installed activestate PDK (with Perl.Net, PerlApp, etc) here at home. i cant get any perl executables to build. (I have been successfully using it at work though.) In both ca

Re: SerialPort problems -- cygwin / win32 / *nix

2005-05-06 Thread robert johnson
--- Sisyphus wrote: > > Robert Johnson wrote: > > > > Installing /usr/lib/perl5/site_perl/5.8/cygwin/auto/Win32/API/API.dll > > Installing /usr/lib/perl5/site_perl/5.8/cygwin/auto/Win32/API/libAPI.dll.a > > Files found in blib/arch: installing files in blib/lib i

Re: SerialPort problems -- cygwin / win32 / *nix

2005-05-05 Thread robert johnson
--- Sisyphus wrote: > > - Original Message - > From: "robert johnson" > > > > > youre right. during the make there were several warnings. > > > > API.c: In function `XS_Win32__API_LoadLibrary': > > API.c:90: warning: cas

Re: SerialPort problems -- cygwin / win32 / *nix

2005-05-04 Thread robert johnson
--- Sisyphus wrote: > > - Original Message - > From: "robert johnson" > > > > > Rob, Bill, > > > > Ive installed Risacher's patched Win32::API as Rob suggested, and tried > > again to install Win32::SerialPort in my cygwin

Re: SerialPort problems -- cygwin / win32 / *nix

2005-05-04 Thread robert johnson
--- Sisyphus wrote: > > - Original Message - > From: "robert johnson" > > > > So, now my question becomes trivial. How do I get Win32::SerialPort > towork > > under cygwin? i tried installing this module but it dies miserably during >

Re: Perl Net executable build fails - cant find @INC

2005-05-04 Thread robert johnson
--- robert johnson wrote: > Hi, i really need some help. dangit. right after i cross-posted this, i solved my own problem. for some reason, with the ActiveState PDK requires that all "use" statements be placed at the very top of the program. I had put them later in the prog

  1   2   >