[27061] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8964 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Feb 16 21:05:34 2006

Date: Thu, 16 Feb 2006 18:05:04 -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           Thu, 16 Feb 2006     Volume: 10 Number: 8964

Today's topics:
        Combining three arrays of hashes into one? <cmarvel@nethere.com>
    Re: Need help about Build_MatchMany_Function ! <tadmc@augustmail.com>
    Re: XML namespaces in (pure) perl parsers? <jgibson@mail.arc.nasa.gov>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Thu, 16 Feb 2006 17:45:45 -0800
From: Keith Lee <cmarvel@nethere.com>
Subject: Combining three arrays of hashes into one?
Message-Id: <pan.2006.02.17.01.45.45.152421@nethere.com>

All:
	Is there a way of copying three arrays of hashes into one array for
	future sorting?  Thanks!

Keith


------------------------------

Date: Thu, 16 Feb 2006 19:36:33 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Need help about Build_MatchMany_Function !
Message-Id: <slrndvaa51.b7r.tadmc@magna.augustmail.com>

sonet <sonet.all@msa.hinet.net> wrote:


> Sometime ,I got the result "Use of uninitialized value in concatenation (.)
> or string at (eval 1) line 1, <HANDLE> line 101."


Did you look to see what is different about line 101 in your data?


> open( HANDLE, 'notspam.lst' );


You should always, yes *always*, check the return value from open():

   open( HANDLE, 'notspam.lst' ) or die "could not open 'notspam.lst'  $!";

This is good advice that you have been given before.

You should consider accepting good advice rather than ignoring it.


> while (<HANDLE>)
> {
>  $_ =~ s/\r|\n| //g;


   tr/\r\n //d;   # does the same thing


>   $test[ $nsi++ ] = $_;


   push @test, $_;  # no need for $nsi, let perl handle it


>    print $_ . '=>no' . "\n";


   print "$_=>no\n";


-- 
    Tad McClellan                          SGML consulting
    tadmc@augustmail.com                   Perl programming
    Fort Worth, Texas


------------------------------

Date: Thu, 16 Feb 2006 16:06:44 -0800
From: Jim Gibson <jgibson@mail.arc.nasa.gov>
Subject: Re: XML namespaces in (pure) perl parsers?
Message-Id: <160220061606442122%jgibson@mail.arc.nasa.gov>

In article <43f45c07$0$82661$ed2619ec@ptn-nntp-reader03.plus.net>,
bugbear <bugbear@trim_papermule.co.uk_trim> wrote:

> I need to do some fairly simple processing
> of XML files; I would like to be able to do this
> in perl.
> 
> However, the XML I'm handling uses namespaces.
> 
> In practice, the tags do not overlap,
> so I could achieve the functionality I need
> by simply stripping namespace information.
> 
> Question: what XML parsers, callable from perl
> support namespaces (either properly, or by
> carefully ignoring them)?
> 
> And, of these, which (if any) of them do not require
> compilation to install (i.e. which are "pure" perl).
> 
> The reason for the latter restriction is ease
> of installation on some nasty, obscure, old
> hardware (don't ask, you DON'T want to know ;-)

There is XML::SAX::PurePerl, which is slow, and I do not know if it
handles namespaces. According to its documentation, XML::SAX will use
XML::SAX::PurePerl if nothing else if available, and XML::Simple will
use XML::SAX for a parser if XML::Parser is not available. Confusing,
no?

 Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------        
                http://www.usenet.com


------------------------------

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 8964
***************************************


home help back first fref pref prev next nref lref last post