Re: Storable format?

2002-05-30 Thread Chuck . Hirstius
>> structures? I have a network based RMI server that I wrote in perl using >> Storable to send and recieve hashes for requests and results, but I need to > Ron Wrote: >If its just simple text in the hash, you could flatten it into a CSV >string: Sadly, it's not, it can be complex data struct

Re: Changing startup for a service.

2002-04-16 Thread Chuck . Hirstius
>Does anyone know of a perl module/tool which can be used to >change a Windows service from "manual" startup to "Automatic"? > >Config: >Windows 2000 (SP2) >ActivePerl 631 >PDK 4.01 > >ego >Edward G. Orton, GWN Consultants Inc. >Phone: 613-764-3186, Fax: 613-764-1721 >email: [EMAIL PROTECTED] D

Re: Walking subdirectories and files

2002-03-04 Thread Chuck . Hirstius
Rob, Take a look at File::Find. >I am trying to write a Perl script that will touch every subdirectory and file.  The problem is the directory structure is HUGE so I cannot use arrays to do it.  I would >end up running out of memory.  I have to modify Ownership and permissions on every single

Re: Determine what a subroutine wants to return

2002-02-08 Thread Chuck . Hirstius
>On Thu, 7 Feb 2002 [EMAIL PROTECTED] wrote: > >> >> I think I have phrased my question wrong, mostly because I was confused >> about what was causing it. eval is not the issue, so taking eval out of >> the picture here is what I'd like to know... >> >> $self->{_result} = $some_obj->some_method

Re: Determine what a subroutine wants to return

2002-02-07 Thread Chuck . Hirstius
I think I have phrased my question wrong, mostly because I was confused about what was causing it. eval is not the issue, so taking eval out of the picture here is what I'd like to know... $self->{_result} = $some_obj->some_method assuming some_method returns a scalar I *want* _result to be a

Determine what a subroutine wants to return

2002-02-06 Thread Chuck . Hirstius
I'm not even sure how to describe this one. I would like to know if there is a way to discover what kind of return value a subroutine will return. I know you can use wantarray() within a sub to determine it's context, and return the expected type (list, scalar), but I need to call a subroutine w

Re: Substr (time differences)

2002-02-01 Thread Chuck . Hirstius
Marty, The answer to your question may not lie in the timing of anything. A while back I created a Win32::GUI based Winamp controller - something like geekamp but in perl. Along the bottom of the perl window I added a status bar and had it scrolling titles and other information. I noticed the

Re: Another Question - hashes please ..

2002-01-21 Thread Chuck . Hirstius
Andrew, try: $the_data[1]->{y} = 'C'; Chuck >Good Afternoon - I have a hash that I define as: > >$the_data[1] = >{ >    x => "A", >y => "B", >}; >print $the_data[1] -> {x}; > >works and prints A >if I want to update the value of 'y' to C like: >$the_data[1] >{ >y => "C" >}; >prin

RE: Quick PING question

2002-01-21 Thread Chuck . Hirstius
>Ok, here's another one for you... Can I, from command line >run a "hit" to a web site, and report the results back to a file, >and NOT to the browser? Yes. >It seems that the PING thing saved so much typing that they want >me to try to do the same for some Web Sites. they're never satisfied

RE: encrypt a module?

2001-12-18 Thread Chuck . Hirstius
That is perfect! I only wish I could see the looks on their faces! Now if I could only get it to install off of cpan... keeps saying it can't find it! >Here's a hilarious answer: ACME::Bleach > >They will wonder where the code went! > >Good luck, > >Christopher > >-Original Message- >

encrypt a module?

2001-12-18 Thread Chuck . Hirstius
I am coding a module that will be shared across several other groups applications but there are calls in it that only certain groups should use. Rather than making separate modules for each group having only the functions they need, I'd like to just distribute one copy and only tell them what they

Access IE History data

2001-12-07 Thread Chuck . Hirstius
Does anyone know of a way to get the History data for a specific user under NT4.0? You can view it in explorer, but if you go to the same directory in a DOS window you just see a file called index.dat - which I assume is some kind of binary data file. Has anyone tried to pull info out of it befo

RE: directory

2001-05-29 Thread Chuck . Hirstius
>it still doesn't work...it says there is no such file or directory...why >does it use back slashes, but when i specify the path i'm supposed to use >forward slashes? >tanya See Response below... >>Hi, >>I am trying to open a directory, but I don't know how to specify it >>exactly. >>I just ne

Re: directory

2001-05-29 Thread Chuck . Hirstius
>Hi, >I am trying to open a directory, but I don't know how to specify it exactly. >I just need to open something in the C drive, under a folder named PerlExp. >I know this is a dumb question, but does anyone want to help me? >thanks >tanya graham Tanya, You can open directories in a mannor ver

Re: A Simple question?

2001-04-23 Thread Chuck . Hirstius
>Greetings everyone > >I have a script running, no small victory there, but every time it is >invoked by the scheduler I get a "expecting binary" error. > >I think my problem is that perl's dual interpreter/Compiler nature does not >create a .exe file, that the scheduler can find? You don't

Re: [OLE] Preventing the IE splash screen

2001-04-20 Thread Chuck . Hirstius
>Is there any way to prevent the Internet Explorer splash screen from >appearing when you create a non visible instance of an IE OLE object? > > >wantor Found it. This is for IE 5.0+ (I believe) and it is a registry hack (found this in some of the IEAK docs we had around here) open regedit and

Re: [OLE] Preventing the IE splash screen

2001-04-20 Thread Chuck . Hirstius
>Is there any way to prevent the Internet Explorer splash screen from >appearing when you create a non visible instance of an IE OLE object? > > >wantor I swear this a user selectable option in IE somewhere, or perhaps an "undocumented" registry key, but the name/value escapes me right now. We

Re: Closing Win32 dialogs

2001-04-20 Thread Chuck . Hirstius
>We have a process that is hung and is displaying a modal windows error >dialog. We can't kill the process directly -- its in a wierd state -- >its server sockets are still responding to messages but it doesn't show up >on the process list. What we really need is to close that dialog -- >either

Good example of Event driven programming

2001-04-18 Thread Chuck . Hirstius
Hello all, Can anyone out there point me to a decent Perl based event driven programming tutorial? Something maybe using Event.pm, EventServer, POE, or some other such thing in a real world context? Or even better, a "roll your own" event handling example using none of the above, I'd like to kn

RE: building a "time range" structure

2001-03-15 Thread Chuck . Hirstius
>Hi Chuck, > >Here's a quick hack that seems to work. I'm sure there are better ways of >doing it though. > >Anyway, hope this helps. > >-Jesse > > > >my %timeranges = ( >1 => { #network number >4 => { '_1159' => 4, '1200_2400' => 6 },#day 4 = >Thursday >

building a "time range" structure

2001-03-15 Thread Chuck . Hirstius
Hello all, I've run into sort of an odd problem. I'm designing a file retrieval system and one of the requirements it that it is kind to the network. To assure it follows the rules I need to build a data structure from a database that hold the network throttle rates (how many max connections he

RE: Assigning Hash From an Array

2001-03-13 Thread Chuck . Hirstius
>> -Original Message- >> From: Dirk Bremer [mailto:[EMAIL PROTECTED]] >> Sent: Tuesday, March 13, 2001 2:30 PM >> To: [EMAIL PROTECTED] >> Subject: Re: Assigning Hash From an Array >> >> >> I received two suggestions: >> >> %hash = map {split(/=/)} @list; >> %hash = ( map( split

File sizes under NT

2001-03-12 Thread Chuck . Hirstius
Does anyone know fo a way in perl to get the compressed AND actual file sizes from a compressed NTFS partition? We are having trouble calculating space requirements on remote machines, and we think this might be the crux of the matter. We'd like to write a script to do the calculations, any id

Re: operator help

2001-03-06 Thread Chuck . Hirstius
>I'm trying to allow the user to select an operator from an @array to >determine if something should be done and I can't seem to figure out how to >do it. Consider: > > >@operators = ("\<","\<\=","\=","\!\=","\>\=","\>"); >### lets say user chose $operators[0] (<) and it is now stored in $fOp1

Autoplay - sorta

2001-03-02 Thread Chuck . Hirstius
Does anyone know how to hook into the "A CD has been inserted" message? I'm trying to find a way to emulate Autoplay, but NOT use auto play. We don't users bringing in discs from home and having them install stuff, but it would be nice if OUR apps on CD did launch automatically. Any thoughts? C

Re: dereferencing an array

2001-02-08 Thread Chuck . Hirstius
>I have a value $data->$item .. This may be just a single value, or it may >return an array. > >In order to accomdate the two outcomes, I want to just treat it like an >array and iterate through it. If it has one element, fine, print out that >one element, but if it has more than one, iterate

Re: Processing entire file at once

2001-01-16 Thread Chuck . Hirstius
>I am trying to write a script which will read a file into one variable. > >I have tried to: > >$file="c:\\sndata.bin"; >$rec = `cat $file`; > >and I get a message "cat: c:/sndata.bin: Filename too long" > >If I pass an open filehandle to cat: > >$file = "c:\\sndata.bin"; >open (INPUT, $file)

Switching Desktop Resolution in Perl

2001-01-04 Thread Chuck . Hirstius
Does anyone know of a way to switch desktop resolutions in Perl, in a manner that is driver/video card agnostic? I know DirectX does this for games, and I've seen other apps such as Authorware do this (perhaps hooking into DirectX?) but can Perl do this? I need to set a resolution of 800x600, ru

Re: regex - conditionals?

2001-01-04 Thread Chuck . Hirstius
>I have a regex question. I need to convert a tab delimited file of date and time >values to a different format. > >I need to get to: > >-MM-DD HH:MM:SS > >what i'm starting with is: > >4/23/1998 4:55:37 PM >^^ these need to be 2 digits > >The difficulty I'm having is not

Re: regex - conditionals?

2001-01-04 Thread Chuck . Hirstius
>I have a regex question. I need to convert a tab delimited file of date and time >values to a different format. > >I need to get to: > >-MM-DD HH:MM:SS > >what i'm starting with is: > >4/23/1998 4:55:37 PM >^^ these need to be 2 digits > >The difficulty I'm having is not

Re: Opening Directory without knowing name

2001-01-02 Thread Chuck . Hirstius
>I have a script that creates directories on the fly if they don't exist. >What I now need to do is open the directory and delete the files inside if >they are older than 30 days. >Here is the directory where they are created: > >/I/Know/this/much/ > >Once I open the much directory, there are

RE: masks earlier declaration in same scope

2001-01-02 Thread Chuck . Hirstius
Jonathon, You should not need to close a file before calling a module. I'm not entirely sure what you mean by that though. If you mean doing a "use" as in: use CGI; use strict; etc. then you should just place all of those at the top of your program, and it should be fine.

Re: masks earlier declaration in same scope

2001-01-02 Thread Chuck . Hirstius
>Hello, >I have a parameter >my $name0 = "c:/test"; >$name0 is used for opening a file throughout my program. >I have used it more than once and therefore it says that $name0 masks earlier declaration in same scope. >I have tried to undef $name0 but it still get this error. >The program will r

Re: what is the deal

2000-12-20 Thread Chuck . Hirstius
John, >when people say: > > my $foo = "this"; > >what is the difference between that and: > >$foo = "this"; > >Thanks, > >John using "my" on a variable gives it a scope. Using "my" inside of brackets makes the variable "local" to those brackets. For example: # set a variable outside brac

Re: Module to talk to a PC's BIOS

2000-11-21 Thread Chuck . Hirstius
Update: I went to Amine's site: http://www.generation.net/~aminer/Perl/ which lists the module but the link to it is dead. Does anyone have the module in a form they could send to me? >A few weeks ago I seem to recall a reference to a module I/O Port or >something that would allow you to tal

Module to talk to a PC's BIOS

2000-11-21 Thread Chuck . Hirstius
A few weeks ago I seem to recall a reference to a module I/O Port or something that would allow you to talk to the CMOS/BIOS of a PC. Can someone point me to where I can find it? Thanks, Chuck ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http:

Re: XML::Parser

2000-11-15 Thread Chuck . Hirstius
>Has anyone uppgraded to the newer 2.30 version? I am having one heck of a >time trying to install it. Maybe I could be so bold as to ask ActiveState >to upgrade their ppm on the site? > >/Jill Jill, In trying to install the new XML::Parser module on at least 3 linux based machines recent