[25645] in Perl-Users-Digest
Perl-Users Digest, Issue: 7887 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Mar 16 14:05:47 2005
Date: Wed, 16 Mar 2005 11:05:14 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Wed, 16 Mar 2005 Volume: 10 Number: 7887
Today's topics:
Re: [perl-python] unicode study with unicodedata module <xah@xahlee.org>
Re: Can this be more efficient? <ThomasKratz@REMOVEwebCAPS.de>
Change the net:telnet prompt durring runtime. peter_de_groot_1966@yahoo.com
CVS Activity Graph? (Lee Goddard)
Re: DBI DBM Slow - Is a ramdisk the answer? burlo.stumproot@gmail.com
Re: DBI DBM Slow - Is a ramdisk the answer? burlo.stumproot@gmail.com
Re: DBI DBM Slow - Is a ramdisk the answer? burlo.stumproot@gmail.com
Re: DBI DBM Slow - Is a ramdisk the answer? <jgibson@mail.arc.nasa.gov>
Hashes, flattening, evaluation <nospam@bigpond.com>
Re: Hashes, flattening, evaluation <noreply@gunnar.cc>
Re: Hashes, flattening, evaluation <tadmc@augustmail.com>
Re: Hashes, flattening, evaluation <nospam@bigpond.com>
Re: Hashes, flattening, evaluation <1usa@llenroc.ude.invalid>
Re: How to read buffered output from ping-like process xhoster@gmail.com
Re: How to read buffered output from ping-like process <nobull@mail.com>
Maximum string length in perl <appumail@gmail.com>
Re: Maximum string length in perl <1usa@llenroc.ude.invalid>
Re: perl & corba <tzz@lifelogs.com>
PerlScript (WSH) - Cannot set property <smugs_boy@yahoo.com>
Re: PerlScript (WSH) - Cannot set property <mritty@gmail.com>
Re: PerlScript (WSH) - Cannot set property <tim@vegeta.ath.cx>
PPM not working <doug@taperedsquare.com>
Re: printing to xls with Unicode encoding character jmcnamara@cpan.org
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 16 Mar 2005 02:08:59 -0800
From: "Xah Lee" <xah@xahlee.org>
Subject: Re: [perl-python] unicode study with unicodedata module
Message-Id: <1110967739.333501.163480@l41g2000cwc.googlegroups.com>
Fuck google incorporated for editing my subject name without
permission.
and fuck google incorporated for editing my message content without
permission.
http://xahlee.org/UnixResource_dir/writ/responsible_license.html
Xah
xah@xahlee.org
http://xahlee.org/PageTwo_dir/more.html
------------------------------
Date: Wed, 16 Mar 2005 13:03:23 +0100
From: Thomas Kratz <ThomasKratz@REMOVEwebCAPS.de>
Subject: Re: Can this be more efficient?
Message-Id: <4238208b$0$18080$bb690d87@news.main-rheiner.de>
Tad McClellan wrote:
> You can use forward slashes on Windows even if you are not in
> Perl (provided you are not in the command interpreter).
Even cmd.exe can handle forward slashes, provided you enclose the path or
filename in double quotes.
Thomas
--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k^.-
------------------------------
Date: 16 Mar 2005 07:33:47 -0800
From: peter_de_groot_1966@yahoo.com
Subject: Change the net:telnet prompt durring runtime.
Message-Id: <1110987227.492803.100520@f14g2000cwb.googlegroups.com>
Hi all,
I have a problem with changing the telnet prompt durring runtime.
My program has to connect to for me at the writing unknow unix machines
with command prompts not know to me.
To be able todo this I tought in updating the telnet prompt by reading
a value from a file and then changing the prompt.
My standard setting for the prompt is
my $unix_cmd_prompt = '/[\$%#>:=]\s?$|term/i';
I then add to the prompt with the sub
add_system_prompt();
sub add_system_prompt
{
my $customerprompt;
my $promptfile = "custprompt.txt";
if(-e $promptfile) {
open(FH,"<$promptfile");
while (defined ($customerprompt = <FH>)) {
chomp $customerprompt;
$customerprompt =~ s/^\s+//;
if (length($customerprompt) gt 0) {
$unix_cmd_prompt = $unix_cmd_prompt.'|'.$customerprompt;
}
}
close(FH);
}
}
and then set the prompt
$t->prompt($unix_cmd_prompt);
and offcourse I first devine the $t
my $t = new Net::Telnet (
Timeout => 240,
Cmd_remove_mode => 0,
Errmode => \&whinge,
Output_record_separator => '',
#Dump_log => 'dump.txt',
);
The login works fine until I add something to the prompt via the
add_system_prompt adds something to the prompt.
The documentation for net:telnet states that you have to single quote
the regular expression.
Is this where my problem is and if so what is the way around this
------------------------------
Date: 16 Mar 2005 05:59:41 -0800
From: leegee@gmail.com (Lee Goddard)
Subject: CVS Activity Graph?
Message-Id: <30da21ec.0503160559.1b3e9a2d@posting.google.com>
Does anyone know of a module that will graph CVS activity? As in,
lines modified by users over time?
tia
lee
------------------------------
Date: Wed, 16 Mar 2005 10:25:29 GMT
From: burlo.stumproot@gmail.com
Subject: Re: DBI DBM Slow - Is a ramdisk the answer?
Message-Id: <ur7if6g29.fsf@gmail.com>
Fabian Pilkowski <pilkowsk@informatik.uni-marburg.de> writes:
> * Bob Walton wrote:
> > burlo.stumproot@gmail.com wrote:
> > >
> > > I moved the database to a ramdisk(**) and it took about 1,4 seconds.
> > > (I'm not planning to save the database after each run.)
> > >
> > > So my question is this:
> > >
> > > Can I speed up dbi:DBM without using a ramdisk?
> > > If so how?
> > >
> > > Or should I use somthing other than DBI:DBM for this task?
> >
> > Perhaps DBI with DBD::RAM would be helpful? It should be able to
> > do just what you indicate you want to do.
>
> A few days ago I've read in comp.lang.perl.misc [1] that DBD::RAM isn't
> the most recent module for this (the latest version on CPAN is from May
> 2000, nearly 5 years ago). Look at DBD::AnyData which docs contains a
> section named "Working with in-memory tables".
>
> http://search.cpan.org/~jzucker/DBD-AnyData-0.08/AnyData.pm
I'll have a look at this.
Thank you.
/PM
------------------------------
Date: Wed, 16 Mar 2005 11:02:34 GMT
From: burlo.stumproot@gmail.com
Subject: Re: DBI DBM Slow - Is a ramdisk the answer?
Message-Id: <uk6o76ech.fsf@gmail.com>
"A. Sinan Unur" <1usa@llenroc.ude.invalid> writes:
> burlo.stumproot@gmail.com wrote in news:umzt4inpg.fsf@notvalid.se:
>
> >
> > Using WinXP Activestate 5.8.4
> >
> > I'm using dbi:DBM to analyze some data. I read it from a file,
> > process it some and then put it in a dbi:DBM database. I run a couple
> > of sql's on it and save the result for later use.
> >
> > But I'm finding it rather slow. 18 sec(*) to do 126 inserts and I'm
> > planning to do about 1000 inserts and then 5-10 selects when I'm
> > working on live data.
>
> Without sample code and data, it is very hard to make specific
> suggestions.
>
> ...
>
> > But then I got to thinking, is this the best way? Perhaps it's
> > possible to tell dbi:DBM not to write it's data to file, or at least
> > delay writing until I have *a big* chunk of data or until I
> > $dbh->disconnect;
>
> Then you should turn AutoCommit off if you have it on. See
>
> http://search.cpan.org/~timb/DBI-1.48/DBI.pm#Transactions
Unfortunatly this does not work for me with dbi::DBM
<CODE>
use DBI;
my $dbh = DBI->connect('dbi:DBM:type=DB_File;mldbm=Storable',
undef,
undef,
{ RaiseError => 1, AutoCommit => 0 });
$dbh->disconnect;
exit;
</CODE>
Gives this error:
Can't disable AutoCommit at c:/Perl/site/lib/DBD/File.pm line 246.
> > So my question is this:
> >
> > Can I speed up dbi:DBM without using a ramdisk?
>
> I do not know.
>
> > Or should I use somthing other than DBI:DBM for this task?
>
> I have been using SQLite a lot lately. I have not felt the need to
> benchmark anything because the performance (even in conjunction with
> Class::DBI) has been more than adequate for my needs. It also natively
> supports multiple tables with multiple columns in the database driver
> rather than the simple (key,value) tables of DBM.
I'm using or rather was using MLDBM, it adds multi-column support.
I tried SQLite it's a bit slower (20s)if I use AutoCommit but I get
1.4 seconds if I turn AutoCommit off and only commit when I'm done.
And if I rollback I get an extra .2 seconds :-)
And it's clear that I should have used SQLite from the start.
> > (**)
> > I'm currently using this, since I have an ancient app that
> > demands it's data from A:
>
> I am confused. Is the database you are accessing with DBI DBD-DBM on the
> floppy disk? Then you have just found the bottleneck.
No, it's a totally different application, but this is why I had a ramdisk
installed in the first place. My computer don't have a floppy drive.
/PM
------------------------------
Date: Wed, 16 Mar 2005 11:06:13 GMT
From: burlo.stumproot@gmail.com
Subject: Re: DBI DBM Slow - Is a ramdisk the answer?
Message-Id: <ufyyv6e6d.fsf@gmail.com>
Gregory Toomey <nospam@bigpond.com> writes:
> burlo.stumproot@gmail.com wrote:
>
> >
> > Using WinXP Activestate 5.8.4
> >
> > I'm using dbi:DBM to analyze some data. I read it from a file,
> > process it some and then put it in a dbi:DBM database. I run a couple
> > of sql's on it and save the result for later use.
> >
> > But I'm finding it rather slow. 18 sec(*) to do 126 inserts and I'm
> > planning to do about 1000 inserts and then 5-10 selects when I'm
> > working on live data.
>
> DBI isnt slow, your DBMS is.
I already know what made it slow, the many writes to disk using Storable.
Thats why it got about 10 times faster when I was using a ramdisk.
But I'm going to use SQLite, it allows me to turn off AutoCommit
and this gives me a significant performace boost.
(See reply to Sinan for details)
/PM
------------------------------
Date: Wed, 16 Mar 2005 09:30:03 -0800
From: Jim Gibson <jgibson@mail.arc.nasa.gov>
Subject: Re: DBI DBM Slow - Is a ramdisk the answer?
Message-Id: <160320050930037960%jgibson@mail.arc.nasa.gov>
In article <umzt4inpg.fsf@notvalid.se>, <burlo.stumproot@gmail.com>
wrote:
> Using WinXP Activestate 5.8.4
>
> I'm using dbi:DBM to analyze some data. I read it from a file,
> process it some and then put it in a dbi:DBM database. I run a couple
> of sql's on it and save the result for later use.
>
> But I'm finding it rather slow. 18 sec(*) to do 126 inserts and I'm
> planning to do about 1000 inserts and then 5-10 selects when I'm
> working on live data.
>
> I moved the database to a ramdisk(**) and it took about 1,4 seconds.
> (I'm not planning to save the database after each run.)
>
>
> But then I got to thinking, is this the best way? Perhaps it's
> possible to tell dbi:DBM not to write it's data to file, or at least
> delay writing until I have *a big* chunk of data or until I
> $dbh->disconnect;
>
> Googling and reading the docs made me no wiser, and I have not had
> enough guts to start reading the source yet.
>
>
> So my question is this:
>
> Can I speed up dbi:DBM without using a ramdisk?
> If so how?
>
> Or should I use somthing other than DBI:DBM for this task?
It sounds like you are creating a persistent database on disk (or ram
disk) and using it as a temporary data set, extracting data, writing
out the results, then deleting the database when you are done. If that
is the case, why are you using a database at all. You could easily save
1000 records in memory using arrays or hashes or some combination of
the two. Perform whatever manipulation you need on that data, write out
the results, and quit. That should be a lot faster than the overhead of
an RDBMS. Your problem would be translating the SQL manipulations into
Perl expressions and statements.
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
------------------------------
Date: Wed, 16 Mar 2005 22:36:26 +1000
From: Gregory Toomey <nospam@bigpond.com>
Subject: Hashes, flattening, evaluation
Message-Id: <39qnieF63p8fhU1@individual.net>
I've simplified a problem shown in the fragment below. I'm defining a hash
in terms of a function of one of its components.
I would have hoped to get
param 1 is carrie
as part of the output but dont.
This has left me confused about Perl evaluation. I dont think Perl handles
lazy evaluation, and gives me a result I did not expect.
Any comments on what I should be doing to get the semantics I want?
gtoomey
--------------
Fragment:
sub printhash {
my %h= (@_);
for (keys(%h)) {print "$_ = $h{$_}\n"}
}
sub myfunc {
print "param 1 is $_[0]\n";
return ('a'=>'b','c'=>'d')
}
my %hash;
%hash= (
"cat"=>'tony',
"dog"=>'carrie',
myfunc($hash{dog})
);
printhash(%hash);
----------------
Output:
param 1 is
cat = tony
c = d
a = b
dog = carrie
------------------------------
Date: Wed, 16 Mar 2005 14:17:45 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Hashes, flattening, evaluation
Message-Id: <39qq3uF5riu1sU1@individual.net>
Gregory Toomey wrote:
> I've simplified a problem shown in the fragment below. I'm defining a hash
> in terms of a function of one of its components.
<snip>
> my %hash;
> %hash= (
> "cat"=>'tony',
> "dog"=>'carrie',
> myfunc($hash{dog})
> );
my %hash = ( cat => 'tony', dog => 'carrie' );
%hash = ( %hash, myfunc($hash{dog}) );
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Wed, 16 Mar 2005 08:50:20 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Hashes, flattening, evaluation
Message-Id: <slrnd3ghtc.cfh.tadmc@magna.augustmail.com>
Gregory Toomey <nospam@bigpond.com> wrote:
> I've simplified a problem shown in the fragment below. I'm defining a hash
> in terms of a function of one of its components.
>
> I would have hoped to get
> param 1 is carrie
>
> as part of the output but dont.
> This has left me confused about Perl evaluation. I dont think Perl handles
> lazy evaluation, and gives me a result I did not expect.
The RHS of a list assignment is evaluated completely before the
assigning happens.
This allows swapping without a temp var as in: ($x,$y) = ($y,$x);
> Any comments on what I should be doing to get the semantics I want?
> my %hash;
> %hash= (
> "cat"=>'tony',
> "dog"=>'carrie',
> myfunc($hash{dog})
> );
Does this do it for you?
my %hash = (
"cat"=>'tony',
"dog"=>'carrie',
);
{ my %h = myfunc($hash{dog}); # commence homliness
$hash{$_} = $h{$_} for keys %h;
}
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas part time wanker
------------------------------
Date: Thu, 17 Mar 2005 02:20:23 +1000
From: Gregory Toomey <nospam@bigpond.com>
Subject: Re: Hashes, flattening, evaluation
Message-Id: <39r4mbF5vb5tqU1@individual.net>
Tad McClellan wrote:
> Gregory Toomey <nospam@bigpond.com> wrote:
>> I've simplified a problem shown in the fragment below. I'm defining a
>> hash in terms of a function of one of its components.
>>
>> I would have hoped to get
>> param 1 is carrie
>>
>> as part of the output but dont.
>> This has left me confused about Perl evaluation. I dont think Perl
>> handles lazy evaluation, and gives me a result I did not expect.
>
>
> The RHS of a list assignment is evaluated completely before the
> assigning happens.
>
> This allows swapping without a temp var as in: ($x,$y) = ($y,$x);
>
>
>> Any comments on what I should be doing to get the semantics I want?
>
>
>> my %hash;
>> %hash= (
>> "cat"=>'tony',
>> "dog"=>'carrie',
>> myfunc($hash{dog})
>> );
>
>
> Does this do it for you?
>
> my %hash = (
> "cat"=>'tony',
> "dog"=>'carrie',
> );
>
> { my %h = myfunc($hash{dog}); # commence homliness
> $hash{$_} = $h{$_} for keys %h;
> }
That does and Gunnar has a nice solution too.
The basic problem is data inheritance. I'm looking at defining a hash as a
base case, and defining other hashes as variants of this, as a hierarchy.
Doing this using OO may be overkill. Theres a section in the cookbook on
using closures as objects
http://www.india-seo.com/perl/cookbook/ch11_08.htm
I just want a solution thats simple to set up & maintain for about 50
hashes.
gtoomey
------------------------------
Date: 16 Mar 2005 17:57:41 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: Hashes, flattening, evaluation
Message-Id: <Xns961B83DA0B000asu1cornelledu@132.236.56.8>
Gregory Toomey <nospam@bigpond.com> wrote in
news:39r4mbF5vb5tqU1@individual.net:
> Theres a section in the cookbook on using closures as objects
> http://www.india-seo.com/perl/cookbook/ch11_08.htm
You know that is an illegal copy, right? Have you informed O'Reilley about
the site?
Sinan
------------------------------
Date: 16 Mar 2005 17:41:51 GMT
From: xhoster@gmail.com
Subject: Re: How to read buffered output from ping-like process
Message-Id: <20050316124151.619$ge@newsreader.com>
Chris <chris@devnull.org> wrote:
> I am trying to read some data from another process, let’s call the
> program foo (binary and I don’t have the source). It works like ping in
> that it spits output to the screen every few seconds and has to be
> killed with control-c. I can write a script to read data from ping and
> kill the ping after say 10 seconds. But I don’t get any data from foo
> even though it behaves just like ping at the command prompt. (I even
> tried sending the data to a file but data doesn’t show up until 4096
> bytes are written and that is too long to wait.)
My guess:
ping always uses unbuffered (or line buffered) output.
foo is trying to be clever, and it tries to detect if its output is
being sent to a tty. If it is sent to a tty, it uses unbuffered output.
If not, it uses buffered output.
If you can't fix foo, you have to trick it into thinking the pipe it is
hooked to is a tty. Sadly, I don't know how to do this off the top of my
head.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
------------------------------
Date: Wed, 16 Mar 2005 17:46:37 +0000
From: Brian McCauley <nobull@mail.com>
Subject: Re: How to read buffered output from ping-like process
Message-Id: <d19r38$jjp$1@sun3.bham.ac.uk>
xhoster@gmail.com wrote:
> If you can't fix foo, you have to trick it into thinking the pipe it is
> hooked to is a tty. Sadly, I don't know how to do this off the top of my
> head.
I >>>Expect<<< there's something on CPAN.
------------------------------
Date: Wed, 16 Mar 2005 19:22:14 +0530
From: Murugesh <appumail@gmail.com>
Subject: Maximum string length in perl
Message-Id: <G7XZd.20$W3.185@news.oracle.com>
hi all,
Anyidea on the maximum length a string in perl can contain.I
cannot read the whole content of a file into a string,where it trims off
after a particular limit.Is there any restriction.
Is there any way to read whole file into a single string?
Thanks,
Appu
------------------------------
Date: 16 Mar 2005 14:11:59 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: Maximum string length in perl
Message-Id: <Xns961B5D95D712Basu1cornelledu@132.236.56.8>
Murugesh <appumail@gmail.com> wrote in news:G7XZd.20$W3.185
@news.oracle.com:
> Anyidea on the maximum length a string in perl can contain.
There is no pre-defined limit. On the other hand, perl is subject to the
limits imposed by the OS etc.
> I cannot read the whole content of a file into a string,
How about posting a short, complete example that exhibits the problem? How
about telling us the size of the file you are trying to read?
> where it trims off after a particular limit.
What 'particular limit'?
> Is there any way to read whole file into a single string?
Yes.
Sinan
------------------------------
Date: Wed, 16 Mar 2005 11:33:58 -0500
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: perl & corba
Message-Id: <4nwts7mtxl.fsf@lifelogs.com>
On Tue, 15 Mar 2005, pobugfix@peterlink.ru wrote:
> No, thanks. As i said above, I'm looking for points from people who use perl
> bindings in their projects. IMHO except MICO and ORBit bindings the rest
> are not supported and all and useful just for home work rather than for
> serious proj.
Sounds like your mind is already made up, Andrew.
FWIW, I find the other RPC methods available for Perl, mainly XML-RPC
and SOAP, much better than CORBA for all purposes. I think most Perl
programmers would agree, so you probably won't get too many responses
from people that use Perl with CORBA.
Ted
------------------------------
Date: 16 Mar 2005 08:04:23 -0800
From: "Smugsboy" <smugs_boy@yahoo.com>
Subject: PerlScript (WSH) - Cannot set property
Message-Id: <1110989063.304894.6550@f14g2000cwb.googlegroups.com>
Hi,
I have an application which uses Microsoft's ScriptControl as a script
host for PerlScript.
I add an object to it that contains a property.
When I try to read the propery I succeed using the following syntax:
$MyObj->Prop1
However, whem I try to write to the propery using the following syntax
I get an error:
$MyObj->Prop1 = 6;
Any ideas ?
------------------------------
Date: Wed, 16 Mar 2005 16:15:28 GMT
From: "Paul Lalli" <mritty@gmail.com>
Subject: Re: PerlScript (WSH) - Cannot set property
Message-Id: <AYYZd.5394$aS5.830@trndny05>
"Smugsboy" <smugs_boy@yahoo.com> wrote in message
news:1110989063.304894.6550@f14g2000cwb.googlegroups.com...
> Hi,
> I have an application which uses Microsoft's ScriptControl as a script
> host for PerlScript.
> I add an object to it that contains a property.
>
> When I try to read the propery I succeed using the following syntax:
> $MyObj->Prop1
>
> However, whem I try to write to the propery using the following syntax
> I get an error:
> $MyObj->Prop1 = 6;
>
> Any ideas ?
Several.
What is the object? How was it created? How is Prop1 defined? What is
the error you received?
What you have just done is the equivalent of calling a mechanic, telling
him "my car doesn't go forward. Any ideas?"
Have you read the posting guidelines posted to this group twice a week?
Paul Lalli
------------------------------
Date: Wed, 16 Mar 2005 16:30:26 GMT
From: Tim Hammerquist <tim@vegeta.ath.cx>
Subject: Re: PerlScript (WSH) - Cannot set property
Message-Id: <slrnd3gnq5.skt.tim@vegeta.saiyix>
Smugsboy <smugs_boy@yahoo.com> wrote:
> When I try to read the propery I succeed using the following syntax:
> $MyObj->Prop1
>
> However, whem I try to write to the propery using the following
> syntax I get an error:
> $MyObj->Prop1 = 6;
>
> Any ideas ?
You'll need to provide more information about $MyObj in order to get
a definitive answer. Also, hopefully someone more familiar with
WSH/PerlScript programming than me is lurking around here. I used
ASP/PerlScript about 5 years ago, but I haven't kept up.
PerlScript lacks a lot of the syntactic sugar that makes VBScript look
so simple. E.g., "default objects." You'll probably need to take
a deeper look into the $MyObj object and see what, if anything, is going
on behind the scenes.
HTH,
Tim Hammerquist
------------------------------
Date: Wed, 16 Mar 2005 18:23:30 GMT
From: "Doug Wells" <doug@taperedsquare.com>
Subject: PPM not working
Message-Id: <CQ_Zd.15$fG.916@news.uswest.net>
I'm trying to get XML::Simple and I'm having trouble. I haven't used
PPM in a while, but I can't seem to get it to return a listing when I
search for XML (it just hangs there until I Ctrl-C). I assume it could
be a firewall issue (I have Windows XP firewall), but I turned it off
and it did the same thing. I tried getting the file from CPAN, but have
never loaded a module without PPM.
Can anyone offer suggestions?
Thanks
Doug
------------------------------
Date: 16 Mar 2005 01:01:01 -0800
From: jmcnamara@cpan.org
Subject: Re: printing to xls with Unicode encoding character
Message-Id: <1110963661.574698.231990@o13g2000cwo.googlegroups.com>
The example relates to reading encoded input from a file but that
doesn't mean that it is the only way to write encoded text to an
Spreadsheet::WriteExcel file.
If you have a string of characters in some known encoding then you
should convert it to UTF-16BE and use the write_unicode() method or,
better still, to UTF-8 and use the write() method.
You can use the standard (with perl 5.8) Encode module to convert
between almost any encoding.
If you still have a problem then post a small example program to the
Spreadsheet::WriteExcel Google Group:
http://groups-beta.google.com/group/spreadsheet-writeexcel
John.
--
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 7887
***************************************