From jms at ok.cz Fri Jan 30 06:18:35 2004 From: jms at ok.cz (M. Remis) Date: Wed Aug 4 00:05:57 2004 Subject: APM: dotaz :: XML Message-ID: <000501c3e72b$36329340$0100000a@w98> ... zdrav?m vespolek, m?l bych men?? prosbu, zda by mi n?kdo mohl b?ti n?pomocen radou v n?sleduj?c? z?le?itosti: v prost?ed? Win pou??v?m modul XML::Simple pro ?ten? jednoduch?ch XML soubor?, kter? jsou ulo?eny v k?dov?n? CP1250, tzn. ka?d? soubor za??n? deklarac? data, tj. ?et?zce, kter? modul 'vrac?' jsou v?ak (pravd?podobn?) v jin?m k?dov?n? (asi?e UTF-8); pot?eboval bych 'cestou nejmen??ho odporu' zajistit, abych data/?et?zce 'dostal' v tom/stejn?m k?dov?n?, v jak?m byla zaps?na (tzn. ani? bych je musel explicitn? p?ev?d?t) ??? ?e?en?m by mo?n? bylo upravit tabulku WINDOWS-1250.ENC (tj. tak, aby ani znaky z horn? poloviny tabulky nebyly p?ek?dov?v?ny) - nev?te n?kdo o 'elegantn?j??m' ?e?en? ... p?edem d?ky za odpov?? M. Remi? P.S.: i kdy? na prvn? pohled vypad? tento po?adavek pon?kud nezvykle, m? sv? opodstatn?n? - c?lem je de facto 'p?eukl?dat' data z XML do textov?ch soubor? a !!!nemuset se starat!!! o k?dov?n? - tj. 'nechat to tak, jak to bylo' --------------------------------------------------------------------- To unsubscribe send a mail to majordomo@hfb.pm.org with command "unsubscribe prague-pm" in the message body. From Jenda at Krynicky.cz Fri Jan 30 07:40:09 2004 From: Jenda at Krynicky.cz (Jenda Krynicky) Date: Wed Aug 4 00:05:57 2004 Subject: APM: dotaz :: XML In-Reply-To: <000501c3e72b$36329340$0100000a@w98> Message-ID: <401A6CC9.10691.2CE28117@localhost> From: "M. Remis" > v prost ed? Win pou ?v?m modul XML::Simple pro ten? jednoduch ch XML > soubor , kter? jsou ulo eny v k?dov?n? CP1250, tzn. ka d soubor za > ?n? deklarac? > > > > data, tj. et zce, kter? modul 'vrac?' jsou v ak (pravd podobn ) v > jin?m k?dov?n? (asi e UTF-8); pot eboval bych 'cestou nejmen ?ho > odporu' zajistit, abych data/ et zce 'dostal' v tom/stejn?m k?dov?n?, > v jak?m byla zaps?na (tzn. ani bych je musel explicitn p ev?d t) ??? > e en?m by mo n? bylo upravit tabulku WINDOWS-1250.ENC (tj. tak, aby > ani znaky z horn? poloviny tabulky nebyly p ek?dov?v?ny) - nev?te n > kdo o 'elegantn j ?m' e en? ... Jo to by se mi taky libilo. Ale nejde to. Pani puristi jsou toho nazoru ze vsechno musi byt cunikode. Takze neexistuje jina moznost, nez si to vsechno zase pekne prekonvertovat zpatky. Rekl bych ze asi nejjednodussi bude splodit funkci ktera si projde tu strukturu vracenou XML::Simplem a prekonverti veskery obsah. Neco jako: use Encode; sub deUTFstruct { if (!ref $_[0]) { $_[0] = encode("cp1250", $_[0]); } elsif (ref $_[0] eq 'ARRAY') { foreach (@{$_[0]}) { deUTFstruct( $_) } } elsif (ref $_[0] eq 'HASH') { foreach (values %{$_[0]}) { deUTFstruct( $_) } } } Jenda ===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery --------------------------------------------------------------------- To unsubscribe send a mail to majordomo@hfb.pm.org with command "unsubscribe prague-pm" in the message body. From rj at petamem.com Tue Mar 30 04:18:58 2004 From: rj at petamem.com (Richard Jelinek) Date: Wed Aug 4 00:05:58 2004 Subject: APM: Issues with Perl and Win32 Message-ID: <20040330121858.A9195@petamem.com> *cough* *cough* (waiting until the dust from this ML has laid down). Hi! Developing perl applications mostly under and for UNIX OSes, we now face the problem of users requiring a version for the evil Win32 OS. We sent an user a very simple perlapp of ours: A command line client for accessing a NLP/NLU server. The user has installed perl from activestate plus several required modules. However: The user is not able to even find two required modules: Term::ReadPassword and Term::Readline::Gnu (it seems for Win, modules are distributed as some ppm packages?). I have read perldoc perlport but this covers the modules issue only marginally. So we can detect the ability of Readline and scrap the history feature for Win32, so he could use the basic Term::Readline, but to solve this issue more generally, we'd need to know: * whether there is somewhere a list of what modules are available under Win32. * alternatively how do I provide a ppm-version of a module if I have it from CPAN (tar.gz) * does/would cygwin help? Please help a win32 analphabet. -- best regards, Dipl.-Inf. Richard Jelinek - The PetaMem Group - Prague/Nuremberg - www.petamem.com - -= 3394928 Mind Units =- --------------------------------------------------------------------- To unsubscribe send a mail to majordomo@hfb.pm.org with command "unsubscribe prague-pm" in the message body. From rv at petamem.com Tue Mar 30 05:05:21 2004 From: rv at petamem.com (Roman =?iso-8859-2?B?VmG57ehlaw==?=) Date: Wed Aug 4 00:05:58 2004 Subject: APM: Issues with Perl and Win32 In-Reply-To: <20040330121858.A9195@petamem.com> References: <20040330121858.A9195@petamem.com> Message-ID: <20040330130521.A8013@arkab.local> Try to search for your modules @ activestate website. > * whether there is somewhere a list of what modules are available > under Win32. There is list of modules @ http://aspn.activestate.com/ASPN/Modules/Perl?module_name=&order=name where one can determine which of these are available as PPM and target platform. You can also look @ http://ppm.activestate.com/BuildStatus/5.8.html For downloading zip-ed packages look @ http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/ -- best regards Ing. Roman Vasicek software developer +----------------------------------------------------------------------------+ PetaMem s.r.o., Ocelarska 1, 190 00 Praha 9 - Liben, Czech republic http://www.petamem.com/ --------------------------------------------------------------------- To unsubscribe send a mail to majordomo@hfb.pm.org with command "unsubscribe prague-pm" in the message body. From jms at ok.cz Tue Mar 30 14:28:33 2004 From: jms at ok.cz (M. Remis) Date: Wed Aug 4 00:05:58 2004 Subject: =?windows-1250?Q?V=ECc:___Re:_APM:_Issues_with_Perl_and_Win32_?= Message-ID: <001101c41695$a2ce8c40$0100000a@w98> http://ppm.activestate.com/BuildStatus/5.6.html Term-ReadLine-Perl 1.0203 PASS PASS PASS PASS PASS PASS Term-ReadPassword 0.01 FAIL FAIL FAIL FAIL FAIL FAIL http://ppm.activestate.com/BuildStatus/5.8.html Term-ReadLine-Gnu 1.14 FAIL FAIL FAIL FAIL FAIL FAIL FAIL Term-ReadLine-Perl 1.0203 PASS PASS PASS PASS PASS PASS PASS Term-ReadPassword 0.01 FAIL FAIL FAIL FAIL FAIL FAIL FAIL M. Remis Věc: Re: APM: Issues with Perl and Win32 Odesílatel: Roman Vašíček Adresát: prague-pm@pm.org Datum: Tue, 30 Mar 2004 13:05:21 +0200 Try to search for your modules @ activestate website. > * whether there is somewhere a list of what modules are available > under Win32. There is list of modules @ http://aspn.activestate.com/ASPN/Modules/Perl?module_name=&order=name where one can determine which of these are available as PPM and target platform. You can also look @ http://ppm.activestate.com/BuildStatus/5.8.html For downloading zip-ed packages look @ http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/ -- best regards Ing. Roman Vasicek software developer +----------------------------------------------------------------------------+ PetaMem s.r.o., Ocelarska 1, 190 00 Praha 9 - Liben, Czech republic http://www.petamem.com/ --------------------------------------------------------------------- To unsubscribe send a mail to majordomo@hfb.pm.org with command "unsubscribe prague-pm" in the message body. --------------------------------------------------------------------- To unsubscribe send a mail to majordomo@hfb.pm.org with command "unsubscribe prague-pm" in the message body.