Re: how to best convert an array containing hexadecimal values to asciivalue?

2010-11-27 Thread Andrew Black
I wonder whether using Win32::TieRegistry to get data out of the registry might be safer than parsing a .reg file But I don't know exactly what you are trying to do. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscrib

Re: Upgrading to ActiveSate 5.10.1

2010-04-09 Thread Andrew Black
Thanks Sisyphus > > Yep - the packages in the 5.10 repository work fine with 5.10.1. There could > be some rare exceptions ... such as those modules that do "offbeat" things - > eg PAR::Packer. > > Just install 5.10.1 "over the top" of the existing 5.10.0 installation, and > you'll find that those

Upgrading to ActiveSate 5.10.1

2010-04-07 Thread Andrew Black
I am thinking of upgrading my personal machine to use 5.10.1 - are there any gotachas I should be aware off. In particular, do module packages in 5.10 repostiory work with 5.10.1 ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com

Term::Complete on windows

2008-10-15 Thread Andrew Black
Hi Is it possible to goet Term::Complete to work under windows ( v5.10.0 ActiveState). TAB is supposed to give word complets but it isnt working for me. Or is there another module to do a similar thing ___ Perl-Win32-Users mailing list Perl-Win32-Use

Producing a notification window over icon region

2008-10-15 Thread Andrew Black
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::MsgBox('take a break')" but this produces a msgbox hid

Difference between package repositories

2008-08-25 Thread Andrew Black
Can someone explain how PPM repostitories work. If you go to http://cpan.uwinnipeg.ca you get repostitories at ActiveState www.bribes.org tcool.org trouchelle.com uwinnipeg Under which circumstances should you use which repository. I guess Activestate provide a stable version and other reposit

Re: Battery info on a laptop

2006-03-05 Thread andrew Black
$Bill Luebkert wrote: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/computer_system_hardware_classes.asp ... Power Classes The Power subcategory groups classes that represent power supplies, batteries, and events related to these devices. Class

Battery info on a laptop

2006-03-04 Thread andrew Black
Hi Does anyone know if it is possible to get hold of the battery information on an XP laptop via perl (or any other prog language) Looking for whether on AC power / level of the battery etc Andrew ___ Perl-Win32-Users mailing list Perl-Win32-Users@lis

Re: Creating outlook calendar items

2005-08-23 Thread andrew Black
Ken Cornetet wrote: It really doesn't need a module - using the outlook object model is pretty simple. Thanks - that should be enough to get me going. I guess it is style question as to whether this better as a module. My inclination would be to write it once then hide it so you don't worry

Creating outlook calendar items

2005-08-20 Thread andrew Black
Hi Does anyone know of a module to create Outlook calendar items. I guess I could roll my own using Win32::OLE, but why reinvent the wheel. What I think I want is something like make_appt ( "subject", date-time , category. location ) Andrew ___ Perl-

Re: CPAN on win32 - 'test' is not recognized

2005-07-10 Thread andrew Black
Sisyphus wrote: If it's just a matter of getting File-HomeDir-0.06 installed you can do it the old fashioned way, by downloading and extracting the source tarball from cpan, then running 'perl makefile.pl', 'nmake test', and 'nmake install' - which worked fine for me. (Or you could install it w

CPAN on win32 - 'test' is not recognized

2005-07-09 Thread andrew Black
Hi I am trying to run CPAN.pm on Win32 with the following errors CPAN.pm: Going to build S/SB/SBURKE/File-HomeDir-0.06.tar.gz Checking if your kit is complete... Looks good Writing Makefile for File::HomeDir -- OK Running make test 'test' is not recognized as an internal or external comma

Finding user home dir

2005-06-12 Thread andrew Black
Hi Is there a platform independent way of getting the users home directory. The following work on various platforms : $ENV{ USERPROFILE } $ENV{ HOME } $ENV{ SYS$LOGIN} ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsub

Re: Passing back results to calling command or CD

2005-04-19 Thread andrew Black
$Bill Luebkert wrote: Did a little searching and came up with this to replace the above 2 lines : for /F "usebackq" %%i in (`perl find_dir.pl %1`) do cd %%i Cheers - that does the trick. I was trying to look for a way of putting the result of a command into a variable. A slight refinemen

Passing back results to calling command or CD

2005-04-19 Thread andrew Black
Hi I am trying to write a program that will allow me to CD to various places (more details later). I want to call this from the windows command line (cmd). Ways I have tried are - use Perl "chdir" - but this only affects the perl process. The caller doesn't see that change. - write a bat fil

Re: Globbing

2005-04-14 Thread andrew Black
Roger Keane wrote: IMO: prefer File::Find with a regex instead of globbing if you just want to get the files from a directory tree. I think you are right here. But there are 2 (at least) different circumstances - want to write a filter that takes one or more file (maybe STDIN) and produce an out

Re: Globbing

2005-04-12 Thread andrew Black
Rahul Chauhan wrote: andrew, this should work. #glob.pl my @Files = glob "*.c"; print @Files; Thanks for the various replies. I have now got a further problem. I am having trouble globbing files with spaces in them. When I run the following, I would like all files of type *.txt my $wildfile = "

Globbing

2005-04-11 Thread andrew Black
In Unix, if you provide a list of wildcards on the command line, by the time you program sees the list of files. I have program that I call on Unix $ myprog.pl *.html and the program is basically while ( <> ) { do something } Is there a way of achieving the same on Win32, hop