[25415] in Perl-Users-Digest
Perl-Users Digest, Issue: 7660 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jan 17 09:05:40 2005
Date: Mon, 17 Jan 2005 06:05:15 -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 Mon, 17 Jan 2005 Volume: 10 Number: 7660
Today's topics:
Re: [newbie] chomp acting weird (or me not understandin <bik.mido@tiscalinet.it>
Re: [newbie] chomp acting weird (or me not understandin <do-not-use@invalid.net>
Re: [newbie] chomp acting weird (or me not understandin <bik.mido@tiscalinet.it>
Re: [newbie] chomp acting weird (or me not understandin <do-not-use@invalid.net>
Re: [perl-python] 20050117, filter, map <steve@holdenweb.com>
Re: [perl-python] 20050117, filter, map <news@chaos-net.de>
differences between NET:LDAP and NET:LDAPapi <r.mcglue@qub.ac.uk>
installing without man pages <dog@dog.dog>
Multi-dim hash slices <kreator@esa.fer.hr>
Re: Multi-dim hash slices <noreply@gunnar.cc>
Re: Print question <edgrsprj@ix.netcom.com>
Re: Print question <edgrsprj@ix.netcom.com>
Re: Print question <edgrsprj@ix.netcom.com>
Re: Print question <edgrsprj@ix.netcom.com>
Re: Print question <edgrsprj@ix.netcom.com>
Re: Print question <edgrsprj@ix.netcom.com>
Re: redirect & target="_top" <noreply@gunnar.cc>
Re: system command on Win98 <bik.mido@tiscalinet.it>
validate XML file content (Sara)
Re: validate XML file content <peroli@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 17 Jan 2005 09:19:11 +0100
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: [newbie] chomp acting weird (or me not understanding how it works??)
Message-Id: <lujlu0lq5kh1k2f2p5at6dfv7o3n0n6pj0@4ax.com>
On Sun, 16 Jan 2005 20:29:43 +0100, Hendrik Maryns
<hendrik_maryns@despammed.com> wrote:
>A. Sinan Unur schreef:
>
>> Hendrik Maryns <hendrik_maryns@despammed.com> wrote in
>> news:T7ednZHf0q5HFnfcRVnyug@scarlet.biz:
>>
>Ok, I'll give it a last try.
Huh?!?
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: 17 Jan 2005 10:47:03 +0100
From: Arndt Jonasson <do-not-use@invalid.net>
Subject: Re: [newbie] chomp acting weird (or me not understanding how it works??)
Message-Id: <yzdis5wjsko.fsf@invalid.net>
"A. Sinan Unur" <1usa@llenroc.ude.invalid> writes:
> Hendrik Maryns <hendrik_maryns@despammed.com> wrote in
> news:6I-dnQEW_6WaKXfcRVnyiQ@scarlet.biz:
>
> > Ok, I humbly beg for forgiveness on my bare knees for not testing
> > before I posted. And promise solemnly to never do it again.
>
> That attitude will not get you anywhere.
It tells me that he is acknowledging the advice about testing before
posting. I think that's fine. A "solemn promise" on Usenet is worth
the paper it's written on, but so what.
------------------------------
Date: Mon, 17 Jan 2005 14:26:07 +0100
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: [newbie] chomp acting weird (or me not understanding how it works??)
Message-Id: <etdnu01f0u7s0j3ab7pu29nsjqjiet83ap@4ax.com>
On Sun, 16 Jan 2005 23:10:10 +0100, Hendrik Maryns
<hendrik_maryns@despammed.com> wrote:
>>>#add this when testing
>>>open(INFILE, "test.txt");
[snip]
>> open my $in, '<', 'test.txt' or die $!
>>
>> takes only a few more keystrokes.
>
>Uh, ok, but as I don't even understand what this does, you can't expect
>me to type it... I'll study the docs.
It doesn't do anything much different from what your statement did.
Only it uses a lexical filehandle, that you can use later just like
any other filehandle e.g. like
while (<$in>) { #...
and it separately specifies the open() mode, i.e. 'for reading', even
if this wouldn't be strictly necessary (but IMHO is a good practice).
Oh, and last but not least it prints a minimal but descriptive error
message if anything goes wrong.
>> Please note that this doesn't _strictly_ match the description above
>> (not that it matters, IMHO). Also, it _seems_ that '.' in the first
>> field ends a sentence just as much 'LET()' in the second one does.
>It does, but sometimes, it is not '.' but '?' or '...', whereas there
>will always be 'LET()' in the second column.
Hmm, this is one of those cases in which I would like to have Perl6's
junctions ready. (Yes: I know there are already suitable modules,
etc.)
Alternatively you can use a regex, e.g.
/^(?:\.|\Q...\E|\?)$/
but I agree that it's better to whatch the second field. So a possible
solution can be
#!/usr/bin/perl -ln
use strict;
use warnings;
our @w;
my ($w,$c)=split;
print("@w$w"), @w=(), next
if $c eq 'LET()';
push @w, $w;
__END__
Please note that just as much as the similar code pasted in my
previous post, this is meant to be a minimal working example. Unless
you need only a quick hack in a realistic app you'd probably
explicitly write the loop and add bells and whistles...
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: 17 Jan 2005 14:46:06 +0100
From: Arndt Jonasson <do-not-use@invalid.net>
Subject: Re: [newbie] chomp acting weird (or me not understanding how it works??)
Message-Id: <yzd651wjhi9.fsf@invalid.net>
Hendrik Maryns <hendrik_maryns@despammed.com> writes:
> # test.pl (not on Unix, so no /user/bin/perl?)
> use warnings;
> use strict;
> open(INFILE, "test.txt")||die("open didn't succeed");
> my @zinwoorden;
> do{
> chomp(my $lijn=<INFILE>);
> while ($lijn!~/LET/){
> push(@zinwoorden,$lijn);
> $lijn=<INFILE>;
> } #enduntil
> for (@zinwoorden){
> s/(\w+).*/$1/;
> }
> my $zin=join (" ", @zinwoorden);
> print "$zin \n";
> } until eof(INFILE);
As someone already told you in the first response to your original
question, you need to chomp all lines you read:
while ($lijn!~/LET/){
push(@zinwoorden,$lijn);
chomp($lijn=<INFILE>);
} #enduntil
------------------------------
Date: Mon, 17 Jan 2005 06:32:10 -0500
From: Steve Holden <steve@holdenweb.com>
Subject: Re: [perl-python] 20050117, filter, map
Message-Id: <41EBA23A.2010005@holdenweb.com>
Erik Max Francis wrote:
> Steven Bethard wrote:
>
>> Is there any chance you could post these all as part of the same
>> thread? That would be really nice for those of us who aren't
>> interested -- then we could just ignore the thread...
>
You are looking for evidence of cluefulness where it seems unlikely to
ever appear.
>
> Or, better yet, not posting it at all. He's got his mailing list, what
> does he need to post it here for?
>
As I may have mentioned before, egotism can be the only possible reason.
regards
Steve
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/
Holden Web LLC +1 703 861 4237 +1 800 494 3119
------------------------------
Date: 17 Jan 2005 13:38:08 GMT
From: Martin Kissner <news@chaos-net.de>
Subject: Re: [perl-python] 20050117, filter, map
Message-Id: <slrncunfu0.gbh.news@maki.homeunix.net>
Steven Bethard wrote :
> Xah Lee wrote:
>> © Note: this post is from the Perl-Python
>> © a-day mailing list at
>> © http://groups.yahoo.com/group/perl-python/
>
> Is there any chance you could post these all as part of the same thread?
> That would be really nice for those of us who aren't interested --
> then we could just ignore the thread...
I would appreciate that, too.
But I fear this person doesn't even read the comments on his unwanted
load.
I guess I'll scorefile the "Subject" of these postings, too, to get rid of
this.
--
Epur Si Muove (Gallileo Gallilei)
------------------------------
Date: Mon, 17 Jan 2005 12:18:21 +0000
From: RMG <r.mcglue@qub.ac.uk>
Subject: differences between NET:LDAP and NET:LDAPapi
Message-Id: <pan.2005.01.17.12.16.56.774681@qub.ac.uk>
can someone point me to a documet(s) where the differences betwween thsse
two modules are hightlighted
specifically in the writing of an entry to the directory...
I have created the entry and am attempting to write using NET::LDAP but
keep getting an error
failed to add entry: Object class violation at ./e2.pl line 87
the code is as follows
$list{'entry'} = {
'objectClass' => ['top','mjDistributionList'],
'cn' => ["AUT"],
'mj_admin_passwd' => ["apassword"],
'mj_moderate' => ['TRUE'],
'owner' => [$list_owner],
'description' => ["AUT mailing list"],
'mj_approve_passwd' => ["aut.approve"],
'mj_submit_policy' => ["restricted"],
'mj_subscribe_policy' => ["closed"],
'mj_restrict_post' => \@senders,
'mj_DLMembers' => []
};
$ret = $ldap->add(dn=>$dn,attrs => [@$list{'entry'}]);
if ($ret != LDAP_SUCCESS){
$ret->code && warn "failed to add entry: ", $ret->error ;
} else {
print "Added $rdn successfully\n";
};
Is there any difference in how the two modules wrap the entry before they
add to the directory??
ronan
------------------------------
Date: Mon, 17 Jan 2005 09:53:39 +0100
From: "Peter Michael" <dog@dog.dog>
Subject: installing without man pages
Message-Id: <csfuek$kdt$1@tgx093.str.allianz.de>
Hi,
I would like to build perl without man pages.
Therefore I tried
$ ./Configure -Uinstallman1dir -Uinstallman3dir ...
to undefine the man page directories. However the
man pages are installed in the default directories.
Is there a way to avoid this?
TIA,
Peter
------------------------------
Date: Mon, 17 Jan 2005 08:54:31 +0000 (UTC)
From: Dinko Korunic <kreator@esa.fer.hr>
Subject: Multi-dim hash slices
Message-Id: <slrncumva7.rkb.kreator@esa1.esa.fer.hr>
Hi. Is it possible to use hash slices with multi-dimensional hashes (and
how)? If yes, would hash slices be in any way faster for code that
basically does:
$hash{$array_elem1}{$array_elem2} = 1;
for each element of each array?
TIA.
--
| |--.----.-----. Dinko 'kreator' Korunic #include <stddisclaimer.h>
| <| _| -__| http://kreator.esa.fer.hr/ | http://kre.deviantart.com/
|__|__|__| |_____| PGP:0xEA160D0B | IRC:kre | ICQ:16965294 | AIM:kreatorMoo
------------------------------
Date: Mon, 17 Jan 2005 11:17:46 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Multi-dim hash slices
Message-Id: <351hplF4i4ul7U1@individual.net>
Dinko Korunic wrote:
> Is it possible to use hash slices with multi-dimensional hashes (and
> how)?
Yes. Example:
my %hash;
my @keys = qw/foo bar baz/;
@{ $hash{abc} }{ @keys } = (1) x @keys;
> If yes, would hash slices be in any way faster for code that
> basically does:
>
> $hash{$array_elem1}{$array_elem2} = 1;
>
> for each element of each array?
If speed is important for you (or if you are just curious), do a
benchmark to find out.
perldoc Benchmark
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Mon, 17 Jan 2005 10:38:56 GMT
From: "edgrsprj" <edgrsprj@ix.netcom.com>
Subject: Re: Print question
Message-Id: <4BMGd.1326$Rs.942@newsread3.news.atl.earthlink.net>
"Matt Garrish" <matthew.garrish@sympatico.ca> wrote in message
news:b1lGd.67107$TN6.2319397@news20.bellglobal.com...
>
> "edgrsprj" <edgrsprj@ix.netcom.com> wrote in message
> news:OM5Gd.7168$C52.2430@newsread2.news.atl.earthlink.net...
> > "Michele Dondi" <bik.mido@tiscalinet.it> wrote in message
> > news:9rlfu0taqvcm9gqck09qpg772tiqr4l69c@4ax.com...
> >> On Fri, 14 Jan 2005 08:24:18 GMT, "edgrsprj" <edgrsprj@ix.netcom.com>
> >
> So why don't you provide any specific names? People who aren't crackpots
It is both my opinion and my personal experience that the Internet can be an
extremely dangerous place. When you post notes to Internet Newsgroups,
bulletin boards, and Web sites there are certain risks involved. Each
person needs to decide how much risk he or she is willing to tolerate. I am
constantly working on a variety of humanitarian projects. And I try to make
certain that the risk levels associated with them remain as low as possible.
That helps protect people that I work with and correspond with as well.
Some live in countries where public discussions of earthquake forecasts for
example can land a person in jail.
Such a policy has its rewards. An important member of one international
disaster mitigation group has repeatedly told me that those people feel
comfortable with sharing confidential information with me because I am
fairly protective of the interests of the people that I work with. For
another example, back in 2003 I believe that I was the first and only
American scientist ever invited to have a presentation made on his
earthquake forecasting research at this one annual disaster mitigation
conference in the People's Republic of China.
------------------------------
Date: Mon, 17 Jan 2005 10:38:57 GMT
From: "edgrsprj" <edgrsprj@ix.netcom.com>
Subject: Re: Print question
Message-Id: <5BMGd.1327$Rs.525@newsread3.news.atl.earthlink.net>
"Michele Dondi" <bik.mido@tiscalinet.it> wrote in message
news:okbku0pqk4bf6nb45ij0he5ad7ruibhda9@4ax.com...
> On Sat, 15 Jan 2005 09:55:58 GMT, "edgrsprj" <edgrsprj@ix.netcom.com>
> wrote:
>
> Still I can't understand why you can't manage to start a research
> project along these lines within an active research group. As I wrote
> in the other post AFAIK they generally have powerful machines that
> make PCs look ridicule (even if this is somewhat less impressive than
> in the past). I don't know how things go amongst geologists, but in
> Physiscs, for example they still generally use Fortran -even if many
> young researchers despise it for various reasons- basically for two
> reasons: (i) a hystorical one (tradition) and (ii) it is (said to be)
> _fast_[*].
>
The computer language being used is not the problem here. This research
project presently simply needs bodies to do the work. Computer programmers
and geophysicists or at least physicists need to get involved. And things
are moving in that direction I believe. But it is slow going.
In addition to the information at my Web sites I have been posting notes
about this project in a variety of Newsgroups and circulating e-mail notes
and formal letters to scientists around the world for years. If there were
any groups interested in getting involved I would have heard from them long
ago.
------------------------------
Date: Mon, 17 Jan 2005 10:38:57 GMT
From: "edgrsprj" <edgrsprj@ix.netcom.com>
Subject: Re: Print question
Message-Id: <5BMGd.1328$Rs.1172@newsread3.news.atl.earthlink.net>
<beliavsky@aol.com> wrote in message
news:1105882602.461293.248860@z14g2000cwz.googlegroups.com...
>
> At least one "young researcher" likes Fortran -- I am in my 30's.
>
I like Fortran. And I like Basic even more. I specifically chose Perl for
this application because it is a powerful language which is available for
free to people around the world and because it is supported by a
professional computer programming firm.
------------------------------
Date: Mon, 17 Jan 2005 10:38:58 GMT
From: "edgrsprj" <edgrsprj@ix.netcom.com>
Subject: Re: Print question
Message-Id: <6BMGd.1329$Rs.1191@newsread3.news.atl.earthlink.net>
"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
news:Xns95E05AB5D3778asu1cornelledu@132.236.56.8...
> Michele Dondi <bik.mido@tiscalinet.it> wrote in
> news:okbku0pqk4bf6nb45ij0he5ad7ruibhda9@4ax.com:
>
> Copyright covers exact or substantial reproduction of something. So he
> owns the copyrights to his scripts. He might have taken the extra step
> of registering his copyright. That might have made him feel really
My copyrights including one for my original computer program are formally
registered. One of the reasons is that it is my opinion that if you ever
talk with a company or a government agency about a project they will often
want to see some proof that there is at least some type of history of
ownership related to the project. They want it to be a formal legal entity
which can be bought, sold, and traded etc. rather than a general idea which
belongs to no one. It is actually quite easy for almost anyone to get
around some other person's copyright. But unless the project is worth big
bucks that probably rarely happens.
------------------------------
Date: Mon, 17 Jan 2005 10:38:59 GMT
From: "edgrsprj" <edgrsprj@ix.netcom.com>
Subject: Re: Print question
Message-Id: <7BMGd.1330$Rs.1053@newsread3.news.atl.earthlink.net>
"Joe Smith" <joe@inwap.com> wrote in message
news:-_-dncLijcgTv3fcRVn-sg@comcast.com...
> edgrsprj wrote:
>
> > What I am planning to try to do is have that Perl program translated
into a
> > CGI type language so that it will run at that U.N. site or some other
site.
>
The actual goal is to get a "core" type of program running at some Web site
such as one owned by the U.N. which can probably afford to run a site that
might get a million hits in a single day. The language in use would be the
one preferred by the people doing the programming. A copy of the source
code would be available at the site. And professional and amateur
programmers around the world who wanted to develop specific additions to the
program could do that and then submit them for display at the site and
possibly even merging with the original core program. This is I believe the
same approach as the one available for developing Perl modules.
------------------------------
Date: Mon, 17 Jan 2005 10:39:00 GMT
From: "edgrsprj" <edgrsprj@ix.netcom.com>
Subject: Re: Print question
Message-Id: <8BMGd.1331$Rs.554@newsread3.news.atl.earthlink.net>
"Jürgen Exner" <jurgenex@hotmail.com> wrote in message
news:k9JGd.6426$c%6.278@trnddc03...
> Joe Smith wrote:
> > edgrsprj wrote:
> >
> If you have a different understanding of CGI type language then I would be
> eager to hear it.
>
It has been my experience that if you want to have an Internet server
computer run a (CGI) program for you at a Web site you need to prepare your
code using one of the languages that they will accept. Different servers
have different lists of languages which they allow to be used. If I
understand this correctly, the Perl "Scripting Language" is almost
universally accepted. And it is to some extent different than the Perl PC
language which is discussed in this Newsgroup.
------------------------------
Date: Mon, 17 Jan 2005 09:54:15 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: redirect & target="_top"
Message-Id: <351csdF4ejeprU1@individual.net>
socialism001@yahoo.com wrote:
> I have the following code in my cgi script. How would I use
> target="_top" in the code below so that it would prevent my page from
> opening in a frame.
The easiest way to achieve what you want is to add target="_top" to the
URL through which you invoke the script.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Mon, 17 Jan 2005 14:25:53 +0100
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: system command on Win98
Message-Id: <dddnu0h9gctrp4e2rqghr20herjlqovnki@4ax.com>
On Sun, 16 Jan 2005 19:54:35 GMT, Mike Flannigan
<mikeflan@earthlink.net> wrote:
>> <http://home.wanadoo.nl/fvu/Projects/Bash/Web/bash.htm>
>
>Thanks.
>
>Wow, 250 MB! That's quite a program.
I must admit I posted that link, but I'm not really sure what's in
there (why I had it in the first place? Long story!)
However IIRC it says something about cygwin, and yes: installing
cygwin may be expensive in terms of disk space, but that depends on
what you actually want to install.
Personally if I have to use a *NIX-like system I use Linux. If I have
to use Windows, I use Windows, and I've never felt the real need to
have a full emulation layer. Since every now and again I _do_ feel the
need to use under Windows some standard *NIX tools, I use the native
ports from UNXUTILS/UNXUPDATES. Granted, due to the basic differences
between the operating systems they were thought for and Win*, they do
not _all_ work seamlessly. For example chown is included in the
collection, but it doesn't work at all (under 98, that is), however I
wouldn't use there in any case ...
>> >It is a programing language that I create with the
>> >Perl script and then execute immediately.
>>
>> HUH?!?
>
>Maybe I should say it is a scripting language that I write
>with perl and then execute immediately.
Did you create a scripting language? Not to underestimate you, but
language design in general is not a trivial task, you know...
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: 17 Jan 2005 00:43:09 -0800
From: sa_ravenone@yahoo.com (Sara)
Subject: validate XML file content
Message-Id: <8e3b2dfa.0501170043.63085bc4@posting.google.com>
Hi all,
I have just started using XML::* modules for validating XML files and
I am trying to understand which module ('tree' or 'stream') would fit
for my requirement which is to get data (a specific nodelist) from a
simple external XML file based on user-input and use it to validate a
source XML file, more specifically the content of elements in the XML
file.
For instance the content of element 'figure' should start with a
string matching regex /^Fig\. \d+\b/. The external file would be
having the format of the element's content in regex format. I have
planned to use XML::XPath for reading the external XML file, but still
undecided about what to use for validating the source XML file because
of the following points.
Is there a better way of doing the following piece of code, in terms
of ease of maintenance and secondarily, code size.
sub start_element {
my ($self, $element) = @_;
if ($element->{Name} eq 'body') {
....
}
elsif ($element->{Name} eq 'head') {
....
}
}
Because if the element 'head' is removed or renamed then the code
would have to be changed. Instead if it was independent of the element
name this change would be eliminated.
Is XML::Checker the only module in CPAN to
1. check if ID of an element was defined
2. get number of times the ID was referenced?
I would prefer not to write less-optimized blocks of code if someone
has already done that in a far more better manner.
Finally, can someone please help or point me to help using namespaces
in SAX.
Thanks,
Sara
------------------------------
Date: 17 Jan 2005 02:21:27 -0800
From: "Peroli" <peroli@gmail.com>
Subject: Re: validate XML file content
Message-Id: <1105957287.168871.242080@c13g2000cwb.googlegroups.com>
hi sara,
Since you are a starter with XML, XML::* modules are pure perl
implementations XML parser. So if you need performance use XML::LibXML
module. It is implemented in C and more robust.
Considering the following XML Document (I think this is what you expect
)
<root>
<image>
<name>IMG_5000.gif</name>
<size>5000</size>
</image>
</root>
use strict;
use XML::LibXML ();
my $xmlfile = "somefile.xml";
my $xmlDom = undef;
eval {
$xmlDom = XML::LibXML->new()->parse_file($xmlfile);
};
die "can't parse xmlfile \n Error: $@\n" if($@);
foreach ($xmlDom->documentElement->findnodes('/root/image')) {
if($_->findvalue('name') =~ /^IMG_/) {
#dosomething
}
}
Doing this thing in SAX would require a new strategy. I think if you
are a newbie start with DOM, because its a lot easy to visualize the
whole problem.
Peroli Sivaprakasam
------------------------------
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 7660
***************************************