Re: testing if XML is well-formed

2004-01-22 Thread Alan Dickey
Brian Gibson wrote: This might sound like a dumb question but does anyone know of a module or script that simply checks an XML file to see if it is well-formed or not (the validity of the XML is not an issue, but if there is an easy way to check that too then I am all for it!) My search

Re: Exe2perl - the C version

2003-10-22 Thread Alan Dickey
Sisyphus wrote: Allegakoen, Justin Devanandan wrote: List, I know there's exe2perl, but a while back I remember there being a thread with a link to a C program that can extract Perl from an executable. Anyone know where it is? Thanks It was written by Chetan Ganatra

Re: Hash of arrays

2003-04-03 Thread Alan Dickey
Daniel Gross wrote: Seems to work. It doesn't generate a syntax error. So, value elements within a hash are always references? no, but they are always scalars :) BTW, in your opinion would this also work when $dirHash{$prefix} is undefined (i.e. when no key was defined yet?) perl has a

Re: Importing Win32 Symbolic Constants

2003-02-15 Thread Alan Dickey
Steve wrote: In the Win32 docs at http://search.cpan.org/author/JHI/perl-5.8.0/lib/Win32.pod in the item for Win32::SetChildShowWindow it says: [EXT] The following symbolic constants for SHOWWINDOW are available (but not exported) from the Win32 module: SW_HIDE, SW_SHOWNORMAL,

Re: socket application

2003-01-28 Thread Alan Dickey
Jeff Slutzky wrote: I am attempting to make a socket server running on a Win98 platform and have a socket client connecting from a SCO Unix platform. What happens is that I start the server and it sits waiting, I then connect from the SCO server with the client socket app and I detect a

Re: [PMX:#] Perl MVC pattern proyect

2003-01-24 Thread Alan Dickey
Fernando Freire Baez (Medicare) wrote: Hello, I am coding some sites in my job and I will guide my proyect in an MVC (Model, View, Controller) envairoment. I will like to know if someone know if exist already a tutorial for MVC in perl. I know the implementation of MVC in other language

Re: bless question

2003-01-11 Thread Alan Dickey
Burak Gürsoy wrote: Can anyone explain this? is this a bug or feature? what were you expecting #!/usr/bin/perl -w use strict; package Test::One; sub new { my $class = shift; my $self = {}; bless $self, $class; return $self; } package Test::Two; sub new { my

Re: bless question

2003-01-11 Thread Alan Dickey
Burak Gürsoy wrote: But I dont use bless on the first object, create a clone of it an use bless on the second one and return this second one. It looks like a bug to me. ok, let me try again. #!/usr/bin/perl -w use strict; package Test::One; sub new { my $class = shift; my

Re: bless question

2003-01-11 Thread Alan Dickey
Alan Dickey wrote: Burak Gürsoy wrote: But I dont use bless on the first object, create a clone of it an use bless on the second one and return this second one. It looks like a bug to me. maybe I can be more helpful. To clone the first hash in the second constructor, try

Re: Execution Problem

2002-11-08 Thread Alan Dickey
Krishna, Hari wrote: Hi friends, I am executing the following program from my C:\ drive and I get the following error. The database(Sql server) is on a different machine but in the same domain as I am. I execute the program on the SQL Server, the program just executes perfectly. But

Re: While

2002-10-30 Thread Alan Dickey
I have a question regarding to an aplication I am working on with an ulimited while cicle While (1) { #code } This cicle keeps asking until one of the exit functions appears to finish the cicle. My problem is that the cicle consumues 100% of the CPU's resources, making

Re: Object Question

2002-10-18 Thread Alan Dickey
Kevin, try this: $temp = member; $stmt = print \$config-get_$temp;; eval($stmt); -- Alan F. Dickey - Interaction and Realization http://www.intac.com/~afdickey mailto:afdickey;intac.com VOX: 908-273-3232 Cell: 908-334-0932 Kevin wrote: Hello, I have an object with a number of

Re: Determining if a Windows Server?

2002-10-10 Thread Alan Dickey
Hawley, Eric wrote: I need to be able to determine whether or not the computer that a script is running on is a Windows NT or 2000 server or if it is not. Does anyone know how to do this? I tried looking at Win32::GetOSVersion() but this won't work. I have tried searching on CPAN but

Re: Determining if a Windows Server?

2002-10-10 Thread Alan Dickey
Tony White wrote: Whew! I thought this was an easy one, but I just spent nearly an hour finding out *any* way to find this out. And here it is: Look at the contents of the following registry value: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/ProductOptions/ProductTy pe It