sort question

2004-12-15 Thread Michael Meltzer
The following strings I have in an array: xyz abcd ZABC if I do @sorted = sort(@unsorted) I get ZABC abcd xyz I would like to sort this strings alphabetical ignoring capitalisation but whithout changing the output format. I want to get this: abcd xyz ZABC How can I do this ? Michael

Re: Probably need help with a hash to do this

2004-11-10 Thread michael higgins
steve silvers wrote: I have no idea how to do this. I have tens of thousands of lines in a text file that houses numbers for internal purposes. There are usually 20 on a line, with a range of (01 - 80). Example: my @data = ( '08|10|13|16|19|22|28|32|33|37|41|46|47|50|51|52|53|55|71|76',

Re: Formatting seconds help

2004-11-02 Thread michael higgins
[EMAIL PROTECTED] wrote: Does anyone have a simple routine or a way that I can format my seconds. Say I have: $seconds = '3600'; I want the output to say 1 hour $seconds = '5567'; I want the output to say 1 hour 54 minutes and 64 seconds Something like that that will break down the amount of days,

RE: fork didn't work

2004-10-26 Thread Michael Jung
I understand that each fork under activestate runs as a thread and I understnat that there is a compiled in limit of 64 active threads. Why don’t you use Win32::Process::Create instead or fork? Hope this helps. --mikej Michael Jung -Original Message- From: [EMAIL PROTECTED] [mailto

DB_File and Storable glitch??

2004-10-24 Thread michael higgins
List folks -- I wanted to tie an array to a file and store references. I want the data available to the next session, so I need Storable, or something like it. I do this with hashes all the time, but never with an array. What I found is that it didn't work as I expected it would. I looked a

Re: How much trouble do you go to?

2004-10-21 Thread Michael D Schleif
* Beckett Richard-qswi266 [EMAIL PROTECTED] [2004:10:21:14:10:26+0100] scribed: $id = * unless defined $id and $id =~ /\d{1,3}/; I usually don't do it that way, it's easier to catch it when you init $id in the first place. Good point $Bill. So, what I should do is: my $id =

Module to retrieve Windows open Shared files

2004-09-30 Thread Michael Twaddell
- Open Files I browsed CPAN, but couldn't find anything that would do this. Thanks in advance, Michael Twaddell [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com

Re: Module to retrieve Windows open Shared files

2004-09-30 Thread Michael Twaddell
Yes, exactly like that! Thank you very much! Michael T. Peter Guzis wrote: You mean like this? ## use strict; use warnings; use Win32::OLE 'in'; my $server = 'computername'; my $wmi = Win32::OLE-GetObject (WinNT://$server/LanmanServer) or die Unable to get WMI object\n; foreach my $resource

Request: howto install GD.pm using ppm on 5.8?

2004-09-09 Thread Michael 'topdog' Thompson
-- hi , step 1 is ppm step 2 is install GD step 3 is ??? regards, michael thompson i have slipped the surly bonds of earth, and danced the skies on laughter-silvered wings; --john gillespie magee jr. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED

CGI.pm: Button element ???

2004-09-09 Thread Michael D Schleif
How can CGI.pm do this: http://www.w3.org/TR/REC-html40/interact/forms.html#edef-BUTTON Yes, I know that I can manually enter the [X]HTML; but, I wonder how to do this with only CGI.pm. What do you think? -- Best Regards, mds mds resource 877.596.8237 - Dare to fix things before they

Re: scanf equivalent?

2004-09-07 Thread Michael
Take me off this list please!Submitted by: [EMAIL PROTECTED] One day at a time! Do you Yahoo!? Yahoo! Mail is new and improved - Check it out!___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe:

RE: Perl threads crash perl

2004-07-30 Thread Michael Jung
There is a compiled in limit of 100 threads in Win32 - I ran into this a few weeks back. Please see this thread. http://www.perlmonks.org/index.pl?node_id=373409 --mikej -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Deighan Sent: Friday,

RE: perl Tk font question

2004-07-13 Thread Michael Jung
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 7:29 AM To: [EMAIL PROTECTED] Subject: perl Tk font question It may be simple but I can't figure how to set font in tk widget /my font is Courier New

(no subject)

2004-07-06 Thread Michael Jung
This may not be the best route... But here is how I check for a module... use strict; eval { require Net::Pcap; }; if ($@) { print WinPcap required - http://winpcap.polito.it/install/default.htm ; exit; } --mikej Michael Jung -Original Message- From: [EMAIL PROTECTED] [mailto

Win32:EventLog -Clear

2004-06-30 Thread Michael Jung
either. Regardless of the method I attempt to clear the log no errors are reported, but the log is never cleared. Can someone clue me in? --mikej Michael Jung ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http

Win32:EventLog -Clear

2004-06-30 Thread Michael Jung
to do this)... I also tried passing a valid filename on my local system as shown above which didn't work either. Regardless of the method I attempt to clear the log no errors are reported, but the log is never cleared. Can someone clue me in? --mikej Michael Jung

PARTIALLY RESOLVED: Fwd: Win32:EventLog -Clear

2004-06-30 Thread Michael Jung
The filename must not exist... I need more coffee.. Can someone though explain how to provide a NULL filename? $handle-Clear(FILENAME); The Clear() method clears the EventLog represented by $handle. If you provide a non-null FILENAME, the EventLog will be backed up into FILENAME

request: mozilla proxy settings using perl/proxy/recorder question.

2004-06-23 Thread Michael 'topdog' Thompson
' is there a mini howto web page that shows how to use a perl proxy/recorder, AND shows how to 'point' to a perl proxy/recorder program? regards, michael thompson i have slipped the surly bonds of earth, and danced the skies on laughter-silvered wings; - john gillespie magee jr

Re: Perl Command Line Interpreter problem

2004-06-07 Thread Michael D. Smith
I have no idea if its related but I too have problems (not the same problem mine reboots) if I try run a loop more than somewhere between 16 million and 17 million times. I thought it was my 'puter (it's 2 years old now, probably getting creaky in the joints), or OS (Windoze 2K) but I guess it

Re: weird stuff in incrementing for loop with Perl

2004-05-23 Thread Michael D Schleif
* Brian Gibson [EMAIL PROTECTED] [2004:05:23:15:48:40-0400] scribed: Can anyone explain why in this simple for loop it changes after it gets to 6.1? I am trying to create a pull down menu for a web page that lists processor speeds from 1.0 Ghz all the way up to 20.0 Ghz and things get crazy

Re: Passing command line options with ActivePerl

2004-05-23 Thread Michael D Schleif
* Paul Stepowski [EMAIL PROTECTED] [2004:05:24:09:24:52+1000] scribed: Michael, I was not asking how to associate .pl files with the perl executable but how to pass the parameters when .pl are already associate with perl.exe Thanks, Paul From: Michael D Schleif [EMAIL PROTECTED

Re: Passing command line options with ActivePerl

2004-05-23 Thread Michael D Schleif
* Paul Stepowski [EMAIL PROTECTED] [2004:05:24:09:33:35+1000] scribed: Still no luck. I'm using Windows 2000 Pro, by the way. C:\assoc | grep \.pl File STDIN: .pl=perl C:\ftype | grep perl File STDIN: perl=c:\ActiveState\Perl\Bin\perl.exe %1 %* C:\set | grep PATHEXT File STDIN:

RESOLVED: Unable to re-install Active perl 5.6.x or 5.8.x

2004-05-06 Thread Michael . Guthrie
. Regards, Mike -Original Message- From: Jeff Griffiths [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 06, 2004 3:56 PM To: [EMAIL PROTECTED] Subject: Re: Unable to re-install Active perl 5.6.x or 5.8.x Hi Michael, Here are some tips for troubleshooting MSI installer problems: You

rsynch ???

2004-04-22 Thread Michael D Schleif
I've been using rsync on various *NIX platforms for years. Lately, I have more and more need to backup windows systems to remote disk, and I have not identified a ``good'' solution. Is there somewhere a Perl rsync? Is the performance tolerable? Are there _free_ or OSS solutions that you

Re: best practice question

2004-04-22 Thread Michael Meltzer
Thank you for your help, I will have a look at it. Michael Huub Peters wrote: I missed the Original Posting (it's probably in my job-mail) but if your looking for a good free mail-server for Win32 I highly recomend MailEnable: http://www.mailenable.com The Standard version is a free, robust

best practice question

2004-04-21 Thread Michael Meltzer
How can I start a perlscript via mail on windows ? An incoming mail should start the script and the script than will parse the mail. Also the usage of some tools are possible. Any advice welcome Michael -- +-- Michael Meltzer -+-+ | AED

Re: best practice question

2004-04-21 Thread Michael Meltzer
Bill Curnow wrote: On 21 Apr 2004 at 12:11, Michael Meltzer wrote: How can I start a perlscript via mail on windows? An incoming mail should start the script and the script than will parse the mail. Unfortunately, you haven't provided enough information to make a truly informed

Re: best practice question

2004-04-21 Thread Michael Meltzer
+B-x+A-w+s; ;y;y; ;;print;; Michael -- +-- Michael Meltzer -+-+ | AED-SICAD Aktiengesellschaft | EMail : [EMAIL PROTECTED] | | Lilienthal-Str. 7| Phone : +49-89-45026-108 | | 85579 Neubiberg

archive::zip problem

2004-04-19 Thread Michael Meltzer
to zip\n$!\n, 2) if $status != AZ_OK; -- instead of addFile command in foreach loop I also tried $zip-addTreeMatching( '.', 'dir/*', 'document\.' ); after foreach loop with the same effect. I hope somone can help me. Thanks in advance Michael

Re: searching a file for keywords

2004-04-15 Thread michael higgins
Craig Cardimon wrote: I'm searching a text file for keywords. These keywords are stored in an array. First, I read the file into a scalar variable. Then, I search for each keyword, cycling through the array in an outer foreach loop: foreach $keyword (@keywords) The keywords should be in all caps

request: SOAP::Lite parameter passing question.

2004-04-15 Thread Michael 'topdog' Thompson
. # nothing is returned. regards, michael thompson i have slipped the surly bonds of earth, and danced the skies on laughter-silvered wings; --john gillespie magee jr. ___ Perl-Win32-Users mailing list [EMAIL

Re: help needed

2004-04-06 Thread Michael 'topdog' Thompson
hi mark, "I need to crate an program that looks through a text file", i would suggest looking into something called "regular expressions", or "regex". it's faster than parsing by using sub-strings. there is also an o'reilly book on it; i believe its worth the investment. regards,

Re: small text files give empty socket? -- SOLVED

2004-04-05 Thread michael higgins
Martin Leese wrote: michael higgins [EMAIL PROTECTED] wrote: Hey, all -- [] Small binary files are fine, but no way of reading the file and printing to the socket has worked for the small text (html, etc.) files. -- mike higgins You might want to try: use FileHandle; STDOUT

Re: regular expression question

2004-04-01 Thread Michael 'topdog' Thompson
Stacy Doss wrote: $a = "this is a (test)"; $a =~ s/\W+/_/g; HTH -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 01, 2004 11:28 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: regular _expression_

Re: Cannot change directory in SSH session

2004-03-26 Thread michael higgins
Rishi Kaundinya M wrote: Hi Experts, Oops! Not me! I have written the code exactly as you mentioned below in my winows machine. I am getting following error here. Afer the command ls is being sent to the remote unix machine, the program is getting stucked. snip eb96140: Entering

Re: Cannot change directory in SSH session

2004-03-26 Thread michael higgins
Rishi Kaundinya M wrote: Hi Michael, From your mail, I understod that W32Perl package is not useful at this moment. Well, it's not fully compatible to Net::SSH::Perl, but still useful. It is not providing required functionality. It is hanging even I executed a command $ssh-cmd(ls -al

Re: Cannot change directory in SSH session

2004-03-26 Thread michael higgins
Richard Morse wrote: On 26 Mar 2004, at 11:21 AM, michael higgins wrote: The output, however, must be redirected. I don't see how you can grab it directly with this module. If you're going _from_ windows _to_ unix, it seems to work. At least, I've had the following code working for about

Perl error, or not??? Strange memory access error that doesn't occur

2004-03-19 Thread Michael D. Smith
I'm looking for opinions on, is this a PERL error or is my 'puter getting ready for the old 'puter's home. I have two perl scripts. One dials the phone, one sets the time -- both work individually no problem. Until I got the idea to tack the one that sets the time onto the end of the one that

Re: system

2004-03-09 Thread Michael D. Smith
I too have noticed that 'system' commands that worked on win98, don't on win2000 pro. For instance, I could execute a shortcut (using start.exe), that I can find no way to do on 2k. This: system(cmd /c dir /s); does work on 2k. But this syntax: system('cmd', '/c', 'dir', '/s'); I have

read/write windows midi ports?

2004-02-27 Thread michael higgins
Does anyone know of a way to read and write to/from a midi port under windows? I've looked at all the various *MIDI* modules available via ppm, but looking at the documentation for the API, it seems I'd need a hook to something not yet supported in a win32-perl kind of way. Win32::MIDI will

Activating dialup networking on win2000

2004-02-24 Thread Michael D. Smith
With a little trial and error (mostly error:), I finally got this to work. system (C:\\winnt\\system32\\rasdial.exe, MyDUNConnectionName, [EMAIL PROTECTED], password) == 0 or die MyDie1 syscmd failed: $?; Now, I wonder if the normal dialup networking error codes are

Activating dialup networking on win2000

2004-02-23 Thread Michael D. Smith
Anyone know the proper way to activate dialup networking on win2000? Using PERL of course. I can double click it no problem:) When I try what used to work on 98, it fails, and locks the system up so bad that it takes a long time to shut down for a reboot. Network and dialup connections is

Re: Combine unique values of two arrays into one

2004-02-18 Thread Michael D Schleif
* Desai, Sheetal A [EMAIL PROTECTED] [2004:02:18:09:03:12-0500] scribed: OK I have two arrays and I was wondering what would be the best way to get a third arrays that contains distinct values from both these arrays. There are pretty big arrays and thus converting each value into a hash key

Getting started with DBM-like packages under Win32

2004-02-17 Thread Michael C. Davis
Hi, I'm looking at alternatives for light-weight database/record indexing packages for use with Perl on Win32 and I wonder if someone could get me started in the right direction. Based on initial reading it looks like this is the situation (please correct me if I'm wrong) - SDBM (SDBM_File)

RE: Help with Apache on Win32

2004-02-03 Thread Michael Krygowski
Michael, Go here: www.sysinternals.com Download the Process Explorer tool. It's invaluable and great!! :-) They have lots of other great tools which are worth the download as well. Hope that helps. - Michael Krygowski -Original Message- From: Michael C. Davis [mailto:[EMAIL

RE: Help with Apache on Win32

2004-02-03 Thread Michael C. Davis
You're my new hero. B-bye Task Manager. At 01:48 PM 2/3/04 -0500, Michael Krygowski wrote: Michael, Go here: www.sysinternals.com Download the Process Explorer tool. It's invaluable and great!! :-) They have lots of other great tools which are worth the download as well. Hope that helps

@INC (SOMEHOW???) changed to E: How to change back to C?

2004-01-19 Thread Michael D. Smith
Somehow, I have no idea how, my @INC directory has been changed to E drive. I have an E drive but perl is not on it, never has been. I use E exclusively for my win2000 backup (.BKF) files. I don't think that info has any bearing whatsoever on the problem but... since I have no idea what's

quotes in Command Line (sortof) execution in Win2000

2003-12-30 Thread Michael D. Smith
I'm trying to get my perl script to run from the command line in my battery backup. It's sort of a command line. It's a textbox within the battery backup software where you enter the program to run when the power goes off. It works much like a command line, or at least it did on 98. On my old

Registry Path changes

2003-12-23 Thread Michael D. Smith
I'm trying to make a program self-relocating; Drag and drop and it still works. I have it working within a single drive/partition. Will it work between drives/partitions if I search the registry for each occurrence of the executable and change the drive letter -- or is it not that simple? I'm

Re: reg exp help please

2003-12-08 Thread Michael D. Smith
Where did you find the word student anywhere in the post ?... Nowhere did it say that you have to use spliti either. I agree that nowhere did it say any of that. That was just me reading between the lines -- except that she has said in the past that she's a student (and the .edu on the email

Fwd: Re: reg exp help please

2003-12-07 Thread Michael D. Smith
The thing is lorid is the student. If she's trying to use spliti spliti(regexp patter,str,max split) spliti(:,$my_Propellar_Data,15); That's probably the assignment, and while There Is More Than One Way To Do It, doing it their way is the path to student Nirvana. I've never seen spliti before,

Search engine results

2003-11-03 Thread Michael D. Smith
I want to use perl to get and parse search engine results (several if possible) based on a variable keyword. This can't be the first time anyone has wanted to do that. Question is, does anyone know of any open source code, modules, whatever, just so I don't have to recode the wheel? Mostly

Re: command prompt problems.

2003-10-30 Thread Michael D. Smith
Try the one on my Tripod site. I don't get it. It looks exactly like the one that came with win98 except it's 3 times bigger. Almost exactly anyway, the right click menu is not as extensive but the functions can still be accessed from the buttons at the top. So, why is it better (bigger) than

RE: Registry Updates Not Taking

2003-10-28 Thread Michael Cohen
is at the very beginning of the code. :-( Glad my code did have a positive outcome. LOL. Would anyone else like to try to solve this puzzle? Regards, Michael Cohen

Re: disable STDERR

2003-10-27 Thread michael higgins
[EMAIL PROTECTED] wrote: hi how do i go about disable-ing STDERR from a script completly, eg. warnings, dies, problems etc. open STDERR, /dev/null/; -- mike higgins ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe:

RE: Regex

2003-10-23 Thread Michael D. Smith
I had a problem once where the digit can be one or two, it was computer generated and when the digit was one character, the space was two, so this might be more reliable... $line=~/[\w{3} \w{3}\s{1,2}(\d{1,2})\s{1,2}(\d{4})\s{1,2}(\d\d):(\d\d):(\d\d)\] And if it doesn't do that, it won't hurt

RE: Generating email in different languages (Net::SMTP and Simplified Chinese)?

2003-10-23 Thread Michael Krygowski
. Not sure, so might be worth researching a little. Hopefully that may help get you going (assuming you haven't already come across these). - Michael -Original Message- From: Bullock, Howard A. [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 6:16 AM To: '[EMAIL PROTECTED

Fwd: sending email in HTML format

2003-10-23 Thread Michael D. Smith
I think, from looking at some of my stored emails with notepad, so I can see the html, that what you need is this: x-html in front of the html tag, like so: x-htmlhtml That's a guess but easy enough to test. ms From: Frank Pikelner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: sending

Re: Opps sorry. sending email in HTML format

2003-10-23 Thread Michael D. Smith
Opps sorry. That first mail was incomplete. I ran a test. Sent myself a test email in both plain and html format. This header may also be needed: Content-Type: multipart/alternative; boundary==_1906071==.ALT Then the extra tag already mentioned: x-htmlhmtl And those

Third time charmed -- I hope :) Was sending email

2003-10-23 Thread Michael D. Smith
Well that definitely didn't send in plain format :) So clearly it recognized it and performed some magic on it. Magic that in this case I did NOT want. Here's a try sent in stylized and without the original, which it incorporated the first time making an even bigger mess, and I added several

Re: HTML::Parser

2003-10-16 Thread michael higgins
[EMAIL PROTECTED] wrote: I don't know why this error still comes up? I got all these files properly installed in my perl lib directory. I'm stuck with this. Can some one help me resolve this please? Maybe you need to check for the missing 'loadable objects'. Look for loadable objects under

Fwd: Re: Environment variables

2003-10-15 Thread Michael D. Smith
Maybe I don't understand - or maybe I am just simply wrong - but the system() command won't finish until 'test.exe' has finished - so the loss of the env vars won't matter, will it ? It can be made to work either way. system ('notepad.exe'); Doesn't return until notepad is closed. system

RE: Capturing the output of a sytem() command

2003-10-06 Thread Michael Genovese
Title: Capturing the output of a sytem() command You might just want to try back-ticks : my @Results = `cmd`; -Original Message-From: George Gallen [mailto:[EMAIL PROTECTED]Sent: Monday, October 06, 2003 10:40 AMTo: [EMAIL PROTECTED]Subject: Capturing the output of a

Dialup networking

2003-10-01 Thread Michael D. Smith
Is there a good way to dial a modem with perl? I'm using this now: system ('C:\Windows\Command\start.exe', 'C:\Windows\Desktop\Highstream.net.lnk'): And it starts Windows dialup networking, but I have no other control. Busy, no connect, takes longer than normal, all cause a failure

Re: Tk main window draw problems.

2003-09-30 Thread michael higgins
[EMAIL PROTECTED] wrote: Guys, When I start my script the following happens... The main window appears in a random location, smaller than when fully populated. It resizes to accomodate all it's widgets. It jumps to the centre of the screen. I want it to appear complete in the centre of the

Re: OLE again

2003-09-30 Thread Michael D. Smith
In these examples from recent mailings to the list my $IE = Win32::OLE-GetActiveObject( 'WebBrowser.Application' ); my $Excel = Win32::OLE-GetActiveObject('Excel.Application') Where can find a list of everything I can do with GetActiveObject in place of 'webbrowser.application' and

Re: Array question

2003-09-26 Thread Michael D. Smith
The book says stay away from this, so I never messed with it (until now for this test) but... $[ = 1; will change the first element of the array to one. On my box it actually loads the first value read into both subscript zero and one, but accessing the array starting from one would get the

Re: Array question

2003-09-26 Thread Michael D. Smith
This is perl, arrays start at zero, get used to it. Right :) And to perl you could add C, and it's offspring C++, and Fortran and COBOL and JAVA(Script) and... I didn't even know there was one that didn't. I know nothing of pascal but I believe:) pascal only offers the option of starting

Re: Perl Script Running Silent InstallShield (Yet Again)

2003-09-24 Thread Michael Cohen
Jan, If you wait long enough, does InstallShield continue? No. I have waited upwards of 20 minutes before killing the Perl/Tk program, only to have the InstallShield program pick up immediately afterwards. :-( Regards, Michael Cohen ___ Perl

Re: The Unofficial Perl Win32 Users Flameware/Mega-Thread FAQ

2003-09-23 Thread Michael D. Smith
You will recall the current mega-thread started not with a question but a mention of it in jest. I hesitate to say it for obvious reason but since everyone knows what it means, that may not matter. We may all be doomed to lifetime filled with hundreds of emails about it. With that in mind,

Re: FW: byte-reversing nightmare

2003-09-22 Thread Michael D Schleif
$Bill Luebkert [EMAIL PROTECTED] [2003:09:21:20:33:05-0700] scribed: [EMAIL PROTECTED] wrote: It seems to me that the fastest way to solve this problem would be with a transform, i.e. tr or y, operator. That way all the computatiomal work could be done by perl at compile time. It might

Perl Script Running Silent InstallShield (Yet Again)

2003-09-19 Thread Michael Cohen
/Tk program ends. (???) Any help would be greatly appreciated! Regards, Michael Cohen ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: FW: byte-reversing nightmare

2003-09-19 Thread Michael D Schleif
Ed Chester [EMAIL PROTECTED] [2003:09:19:11:15:38+0100] scribed: snip / Here's the problem: Got a large file (1Mb) containing binary data. Bytes are in the correct order. Each byte is in low-endian order (lsb first). Want write an output file with bytes in the same order, but with

Re: FW: byte-reversing nightmare

2003-09-19 Thread Michael D Schleif
Michael D Schleif [EMAIL PROTECTED] [2003:09:19:22:58:53-0500] scribed: Ed Chester [EMAIL PROTECTED] [2003:09:19:11:15:38+0100] scribed: snip / Here's the problem: Got a large file (1Mb) containing binary data. Bytes are in the correct order. Each byte is in low-endian order

Re: newbie hlelp!

2003-09-16 Thread michael higgins
[EMAIL PROTECTED] wrote: Thank you all for replying, I am using the code below and I am still unable to get the correct date code opendir (DIR, $server\\c\$\\sys\\data\\LOG\\updates); @allfiles = readdir(DIR); #print(, readdir(DIR)); #closedir(DIR); foreach $f (@allfiles) {

Re: To signal or not to signal

2003-09-15 Thread Michael D. Smith
This file: C:/Perl/html/faq/Windows/ActivePerl-Winfaq5.html#Signal_Handling says, Signals are unsupported by the Win32 API. The C Runtime provides crude support for signals, but there are serious caveats, such as inability to die() or exit() from a signal handler. Perl itself does not guarantee

Re: Signals -- IPC -- Sound module steps on other sounds

2003-09-07 Thread Michael D. Smith
Is there any way to use the Windows signals in PERL? As I understand it, in a Window's program, there is a subroutine that's called when there is a signal. But I don't see how that could be worked into a PERL program -- that executes linearly. More basically, I want to send a kill command from

Re: Off topic virus thought

2003-08-25 Thread Michael D. Smith
Sorry about the off topic post but viruses are a problem we all deal with and I can't think of a better bunch of people to ask a computer question. I've been asked several times, I have the latest updated virus software. Is it still possible I have a virus? Any programmer knows the unfortunate

Re: Thoritical limits on perl processes

2003-08-21 Thread Michael D. Smith
Seeing as there are about 10^85 atoms in the universe More realistically the number that can be addressed by 64 bits. It must be 64, you're already over the amount that can be addressed by 32 bits (something just over 2 billion). 64 bits will address some exponent number that you won't have to

RE: empty versus zero

2003-08-14 Thread Michael D. Smith
if (! defined ($value)) { print 1 value not defined\n;} if ($value eq ) { print 2 Found empty string ($value)\n; } if ($value == 0) { print 3 Found a zero too ($value)\n; } $value = ''; if (defined ($value)) { print 4 value now is defined but null ($value)\n;} if ($value eq ) { print 5 Found

system ('time', $time) driving me nuts

2003-08-14 Thread Michael D. Smith
I have this in a perl script that I thought sure was working: $time = '12:01:02'; # make the test easy system ('time', $time) or warn no joy; Only now it's not working and I can find nothing. If it doesn't work, how did I ever come to think it did, and if it did work, why not now? Does this

Re: Round three -- system ('time', $time) driving me nuts

2003-08-14 Thread Michael D. Smith
returning zero, means that it thinks it's working. Must? be a system problem -- so where to go from here? I might manage the two test lines in C, see if that works. It will prove nothing but it might be interesting. ms At 04:23 PM 8/10/03, you wrote: On Sun, 10 Aug 2003, Michael D. Smith wrote

CGI Script permissions to call scripts on another server

2003-08-10 Thread Rafala, Michael
that Everyone group there. Is there a way to have my CGI script log on as a specific user (with permissions) before making the system() call? Or some other solution? Setting an Apache ScriptAlias doesn't seem to help. I'm afraid I'm not much of a network guy, so I hope this makes sense. Michael

Re: pound sign trouble

2003-07-08 Thread Michael Higgins
$Bill Luebkert wrote: [snip ugly code and verbiage] Or just put it all in a RE and substitute: foreach ... $line =~ s/([\d,]+)/{ my $tmp = $1; $tmp =~ s#,##g; $_ = sprintf '$%.02f', $tmp * $rate }/e; print ... } or maybe more readable: $line =~ s#

Re: pound sign trouble

2003-07-07 Thread Michael Higgins
Allegakoen, Justin Devanandan wrote: Peter, I was playing around with this earlier. Heres what I get:- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Perl\Programsperl -e print ord(''); 163 C:\Perl\Programsperl -e print chr(163); C:\Perl\Programsperl

RE: any function to get the last modified user name

2003-07-01 Thread Michael Erskine
control over how the file is modified then you can save some extra data in the file itself or in an associated file. Regards, Michael. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: Unsure How To Automate

2003-06-30 Thread Michael Erskine
a service hence the scheduled task. I'd be happy to post the code. I would also like to get my hands on the source -- its almost certainly just a thin wrapper to the Win32 FindFirstChangeNotification function with a table of files and their states. Regards, Michael

Re: Reverse of Chomp...

2003-06-12 Thread Michael Higgins
George Gallen wrote: Is there a way to reverse chop/chomp I'm reading STDIN into an array, then chomping off the last character of each of the array elements. Now I'd like to write the array back out to STDOUT, but I want to put the \n's back between each of the lines. Aside from

Re: I cannot find Crypt::SSLeay

2003-06-12 Thread Michael Higgins
Medlen, Jiri wrote: Hello, Crypt-SSLeay 0.35 It is listed http://ppm.activestate.com/BuildStatus/5.6.html but I cannot find it for Perl 5.6. Thanks for help. Jiri -- Packages available from http://theoryx5.uwinnipeg.ca/ppmpackages/: Crypt-SSLeay [0.51] OpenSSL glue that provides LWP https

Re: Date from string

2003-06-11 Thread Michael Higgins
From: Bryan Tom Team EITC [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 9:26 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: Date from string I am creating a daily report that pulls all sorts of WMI information from every server in my enterprise. I am simply looking for ideas

Printing png-files as a batch

2003-03-25 Thread Michael Steffens
a solution? Thanks, Michael ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Having problems with Net::Telnet

2003-03-04 Thread michael higgins
Lupi, Guy wrote: I did that, here is the output that was returned. C:\Perlppm install Net::Telnet [snip] Successfully installed Net-Telnet version 3.03 in ActivePerl 5.8.0.804. Then I tried to run my script and I got the same error message. [snip] FYI, I tried the snip on 98se, 5.6 build 633.

Re: creating users in Active Dir

2003-03-04 Thread michael higgins
alex p wrote: Hello all, I am new to perl and am looking to find a module (or script) that would allow me to create users in active directory. Thank you in advance , Part of a recent thread Adding Users to AD with OLE may help?: http://aspn.activestate.com/ASPN/Mail/Message/1541362 -- Mike

Re: Having problems with Net::Telnet

2003-03-03 Thread michael higgins
Lupi, Guy wrote: Please excuse me if this is an extremely basic question, this is my first post and I am a beginner, but I can't seem to get Net::Telnet to work. I am getting the following error when I try to run a script using the Net::Telnet module. Can't locate object method new via package

Re: Win32 Screenshot/Screencapture with perl

2003-02-16 Thread michael higgins
Roland Moriz wrote: Hi, I need to do screenshots with perl on win32. The only possible way i found is to simmulate they printscrn key and then read the clipboard. On the London.pm I don't know about that, but I remembered cribbing this from the list, which does what you ask: #!perl -w --

Re: Deciphering DBI trace fro DBD-XBase

2003-02-13 Thread michael higgins
Adam Frielink wrote: I posted this yesterday on the Win32-database list and got no response. Can anyone help with this problem? I am trying to debug this script of mine, but I cannot seen to understand why I get the following error... Tk::Error: Can't locate object method new via package

Re: Deciphering DBI trace fro DBD-XBase

2003-02-13 Thread michael higgins
Adam Frielink wrote: I posted this yesterday on the Win32-database list and got no response. Can anyone help with this problem? [snip] And to followup, thankfully, I have a separate install on my box at the office. Replacing 'Xbase.pm' ver 1.07 with 'XBase.pm ver $VERSION = '0.210';

Re: Deciphering DBI trace fro DBD-XBase

2003-02-13 Thread michael higgins
michael higgins wrote: Adam Frielink wrote: I posted this yesterday on the Win32-database list and got no response. Can anyone help with this problem? [snip] And to followup, thankfully, I have a separate install on my box at the office. Replacing 'Xbase.pm' ver 1.07 with 'XBase.pm

Re: help reading file url loop

2003-02-13 Thread michael higgins
- Original Message - From: $Bill Luebkert [EMAIL PROTECTED] To: Malcolm Debono [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 1:31 AM Subject: Re: help reading file url loop Malcolm Debono wrote: Hello, Can someone please help. I am trying to get my

Issues with Net::DNS .3x

2003-02-06 Thread Michael Bell
Several customers I work with have been having problems with Net::DNS .3x hanging. This was recently (a month or two ago?) added to PPM, which previously had .12 I've received confirmation from the Net::DNS developers that Net::DNS is KNOWN not to work on Win32. Can ActiveState please backrev

<    1   2   3   4   >