[32083] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3347 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Apr 10 00:09:27 2011

Date: Sat, 9 Apr 2011 21:09:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sat, 9 Apr 2011     Volume: 11 Number: 3347

Today's topics:
    Re: How to queue each loop iteration into a thread pool <davidmichaelkarr@gmail.com>
        Last CFP: Conference on Domain-Specific Languages (DSL  <emilie.balland@gmail.com>
        Perl 5.8 and Perl 5.10 Porting - Unicode Error <junk@dlink.org>
    Re: Perl 5.8 and Perl 5.10 Porting - Unicode Error <*@eli.users.panix.com>
    Re: Posting Guidelines for comp.lang.perl.misc ($Revisi <justin.1104@purestblue.com>
    Re: Posting Guidelines for comp.lang.perl.misc ($Revisi <ralph@happydays.com>
    Re: Removing data between two HTML tags? <news@lawshouse.org>
    Re: Removing data between two HTML tags? <cartercc@gmail.com>
    Re: Removing data between two HTML tags? <brian.d.foy@gmail.com>
    Re: Removing data between two HTML tags? <rdw204@gmail.com>
        strawberry perl installation error num 2908   Huh? (David Combs)
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Fri, 8 Apr 2011 07:04:20 -0700 (PDT)
From: David Karr <davidmichaelkarr@gmail.com>
Subject: Re: How to queue each loop iteration into a thread pool, with a max size?
Message-Id: <c5625803-7406-4620-9b54-29cf4713a752@glegroupsg2000goo.googlegroups.com>

Unfortunately, after getting into it, I'm finding that Thread::Pool apparen=
tly has some fatal problems that I'm unable to get through.  I posted a lat=
er note about the issues I'm seeing.  After I posted that, I tried integrat=
ing "threads::shared and "shared()" into my local copy of "Pool.pm", but it=
's only led down a path of other errors in Pool.pm.

https://groups.google.com/d/topic/comp.lang.perl.misc/4bnuEzUq2UA/discussio=
n


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

Date: Fri, 8 Apr 2011 04:16:13 -0700 (PDT)
From: Emilie <emilie.balland@gmail.com>
Subject: Last CFP: Conference on Domain-Specific Languages (DSL 2011)
Message-Id: <3cb52169-acdb-4561-8730-681cc134c7bc@p16g2000vbi.googlegroups.com>

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D Call for Papers
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

DSL 2011: Conference on Domain-Specific Languages
(IFIP sponsorship pending approval)

6-8 September 2011, Bordeaux, France

http://dsl2011.bordeaux.inria.fr/

IMPORTANT DATES

* 2011-04-18 : Abstracts due
* 2011-04-25 : Submissions due
* 2011-06-10 : Authors notified of decisions
* 2011-07-11 : Final manuscripts due
* 2011-09-05 : Distilled tutorials
* 2011-09-06 / 2011-09-08 : Main conference

CALL FOR PAPERS

Domain-specific languages have long been a popular way to shorten
the distance from ideas to products in software engineering. On one
hand, the interface of a DSL lets domain experts express high-level
concepts succinctly in familiar notation, such as grammars for text or
scripts for animation, and often provides guarantees and tools that
take
advantage of the specifics of the domain to help write and maintain
these particular programs. On the other hand, the implementation of a
DSL can automate many tasks traditionally performed by a few experts
to turn a specification into an executable, thus making this expertise
available widely. Overall, a DSL thus mediates a collaboration between
its users and implementers that results in software that is more
usable,
more portable, more reliable, and more understandable.


These benefits of DSLs have been delivered in domains old and new,
such
as signal processing, data mining, and Web scripting. Widely known
examples of DSLs include Matlab, Verilog, SQL, LINQ, HTML, OpenGL,
Macromedia Director, Mathematica, Maple, AutoLisp/AutoCAD, XSLT, RPM,
Make, lex/yacc, LaTeX, PostScript, and Excel. Despite these successes,
the adoption of DSLs have been stunted by the lack of general tools
and
principles for developing, compiling, and verifying domain-specific
programs. General support for building and using DSLs is thus urgently
needed. Languages that straddle the line between the domain-specific
and the general-purpose, such as Perl, Tcl/Tk, and JavaScript, suggest
that such support be based on modern notions of language design and
software engineering. The goal of this conference, following the last
one in 2009, is to explore how present and future DSLs can fruitfully
draw from and potentially enrich these notions.


We seek research papers on the theory and practice of DSLs, including
but not limited to the following topics.


* Foundations, including semantics, formal methods, type theory, and
complexity theory
* Language design, including concrete syntax, semantics, and types
* Software engineering, including domain analysis, software design,
and round-trip engineering
* Modularity and composability of DSLs
* Software processes, including metrics for software and language
evaluation
* Implementation, including parsing, compiling, program generation,
program analysis, transformation, optimization, and parallelization
* Reverse engineering, re-engineering, design discovery, automated
refactoring
* Hardware/software codesign
* Programming environments and tools, including visual languages,
debuggers, testing, and verification
* Teaching DSLs and the use of DSLs in teaching
* Case studies in any domain, especially the general lessons they
provide for DSL design and implementation


The conference will include a visit to the city of Bordeaux, a tour
and tasting at the wine museum and cellar, and a banquet at La Belle
=C9poque.

INSTRUCTIONS FOR AUTHORS

Papers will be judged on the depth of their insight and the extent
to which they translate specific experience into general lessons
for software engineers and DSL designers and implementers. Where
appropriate, papers should refer to actual languages, tools, and
techniques, provide pointers to full definitions, proofs, and
implementations, and include empirical results.

Proceedings will be published in Electronic Proceedings in Theoretical
Computer Science ( http://info.eptcs.org/) . Submissions and final
manuscripts should be at most 25 pages in EPTCS format.

PROGRAM COMMITTEE

* Emilie Balland (INRIA)
* Olaf Chitil (University of Kent)
* Zo=E9 Drey (IRIT)
* Nate Foster (Cornell University)
* Mayer Goldberg (Ben-Gurion University)
* Shan Shan Huang (LogicBlox)
* Sam Kamin (University of Illinois at Urbana-Champaign)
* Jerzy Karczmarczuk (University of Caen)
* Jan Midtgaard (Aarhus University)
* Keiko Nakata (Tallinn University of Technology)
* Klaus Ostermann (University of Marburg)
* Jeremy Siek (University of Colorado at Boulder)
* Tony Sloane (Macquarie University)
* Josef Svenningsson (Chalmers University of Technology)
* Paul Tarau (University of North Texas)
* Dana N. Xu (INRIA)

ORGANIZERS

Local chair: Emilie Balland (INRIA)
Program chairs: Olivier Danvy (Aarhus University),
Chung-chieh Shan (Rutgers University)


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


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

Date: Sat, 9 Apr 2011 00:19:31 -0700 (PDT)
From: Aqua <junk@dlink.org>
Subject: Perl 5.8 and Perl 5.10 Porting - Unicode Error
Message-Id: <11fe5031-fed5-4446-8eff-9dedcb0246ce@x3g2000yqj.googlegroups.com>

I have a simple script

=====
use charnames ':full';

$ReNum    = qr/(\\d+[A-Z]?)/i;
$ReNumRng = qr/$ReNum[\N{EN DASH}]$ReNum/;
$Line     = "foo";
$Line     =~ /$ReNumRng/;
=====

This works in perl 5.8 and I am getting a big error in 5.10.

Constant(\N{EN DASH}) unknown: (possibly a missing "use
charnames ...") in regex
; marked by <-- HERE in m/(?i-xsm:(\\d+[A-Z]?))[\N{EN DASH} <-- HERE ]
(?i-xsm:(\
\d+[A-Z]?))/ at C:\projects\test.pl line 4.

Appreciate any help in resolving this.

Regards
Dominic


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

Date: Sat, 9 Apr 2011 19:01:49 +0000 (UTC)
From: Eli the Bearded <*@eli.users.panix.com>
Subject: Re: Perl 5.8 and Perl 5.10 Porting - Unicode Error
Message-Id: <eli$1104091452@qz.little-neck.ny.us>

In comp.lang.perl.misc, Aqua  <junk@dlink.org> wrote:
> I have a simple script
> 
> =====
> use charnames ':full';
> 
> $ReNum    = qr/(\\d+[A-Z]?)/i;
> $ReNumRng = qr/$ReNum[\N{EN DASH}]$ReNum/;
> $Line     = "foo";
> $Line     =~ /$ReNumRng/;
> =====
> 
> This works in perl 5.8 and I am getting a big error in 5.10.
> 
> Constant(\N{EN DASH}) unknown: (possibly a missing "use
> charnames ...") in regex
> ; marked by <-- HERE in m/(?i-xsm:(\\d+[A-Z]?))[\N{EN DASH} <-- HERE ]
> (?i-xsm:(\
> \d+[A-Z]?))/ at C:\projects\test.pl line 4.

The charnames package is definately odd in 5.10

$ cat /tmp/charname
#!/usr/local/bin/perl -w
use strict;
use charnames ':full'; 

print "[\N{EN DASH}]\n";
my $enre = qr"[\N{EN DASH}]";
print "$enre\n";
__END__
$ for perl in perl5.6.1 perl5.8.8 perl5.10.1 ; d>
     echo $perl
     $perl /tmp/charname
     echo
  done
perl5.6.1
[-]
(?-xism:[-])

perl5.8.8
Wide character in print at /tmp/charname line 5.
[-]
Wide character in print at /tmp/charname line 7.
(?-xism:[-])

perl5.10.1
Wide character in print at /tmp/charname line 5.
[-]
(?-xism:[\N{EN DASH}])

$

This works for me in 5.10.1:

use charnames ':full'; 

print "[\N{EN DASH}]\n";
my $dash = "\N{EN DASH}";
my $enre = qr"[${dash}]";
print "$enre\n";

A few quick stabs using eval didn't work.

Elijah
------
isn't using 5.10.* anywhere himself yet


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

Date: Fri, 8 Apr 2011 11:43:51 +0100
From: Justin C <justin.1104@purestblue.com>
Subject: Re: Posting Guidelines for comp.lang.perl.misc ($Revision: 1.9 $)
Message-Id: <7g5378-kbg.ln1@zem.masonsmusic.co.uk>

On 2011-04-07, Peter J. Holzer <hjp-usenet2@hjp.at> wrote:
> On 2011-04-07 00:02, sln@netherlands.com <sln@netherlands.com> wrote:
>> On Tue, 05 Apr 2011 02:14:53 -0500, tadmc@seesig.invalid wrote:
>>>Do not post binaries, HTML, or MIME
>>
>> I'm just wondering if this means all the html posted on this ng
>
> What do you mean by "all the html"? I remember only one poster here who
> used html and I haven't read him for a long time.

Perhaps sln could clarify, but I understood him to mean posts along the
line of:

"My CGI blah something:
<p><em><i>not what I expected</i></em></p>"

Posts *about* html (CGI), not posts that *are* html.

   Justin.

-- 
Justin C, by the sea.


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

Date: Fri, 08 Apr 2011 10:09:09 -0400
From: Ralph Malph <ralph@happydays.com>
Subject: Re: Posting Guidelines for comp.lang.perl.misc ($Revision: 1.9 $)
Message-Id: <89466$4d9f1706$ce534406$12180@news.eurofeeds.com>

To paraphrase William Shatner on SNL many years ago...
     Tad, What have you done with yourself?
     You, you must be almost 50... have you ever kissed a girl?


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

Date: Fri, 08 Apr 2011 11:45:49 +0100
From: Henry Law <news@lawshouse.org>
Subject: Re: Removing data between two HTML tags?
Message-Id: <uKOdnfhFL9n8egPQnZ2dnUVZ8mSdnZ2d@giganews.com>

On 08/04/11 08:41, Rob wrote:
> I am trying to use perl to remove all data which comes between these
> two tags:
>
> <div class="left">......</div>

My bitter experience tells me that only pain lies along this road you 
are taking.  Use an HTML parsing module, whose owner has already 
undergone the pain (or was, perhaps, such an Perl/HTML guru as to have 
avoided it).  I use HTML::TreeBuilder but you may choose otherwise.

You've only got to look at the size and complexity of what you've 
written, which doesn't yet do what you want, to see the sense of this.

(And by the way, it would be helpful to those who want to help you if 
you explained in what way your code is "not doing the job").

-- 

Henry Law            Manchester, England


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

Date: Fri, 8 Apr 2011 06:07:57 -0700 (PDT)
From: ccc31807 <cartercc@gmail.com>
Subject: Re: Removing data between two HTML tags?
Message-Id: <4398b8f4-9d7b-4ba1-b32e-5186885681a9@v16g2000vbq.googlegroups.com>

On Apr 8, 6:45=A0am, Henry Law <n...@lawshouse.org> wrote:
> My bitter experience tells me that only pain lies along this road you
> are taking.

Still, it's instructive to make the attempt. A long time ago I
attempted to do something like this by building an RE incrementally,
piece by piece. I failed, but the lessons I learned have stood me in
very good stead, and several times a month I build complex REs the
same way. And guess what? I don't fail!

I'm not saying that the OP should reinvent the wheel, but that the OP
needs to go through the process of reinventing the wheel so he can
understand how the original wheel inventors did it, and then he can
use that knowledge to invent something useful on his own.

CC.


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

Date: Fri, 08 Apr 2011 11:03:54 -0500
From: brian d foy <brian.d.foy@gmail.com>
Subject: Re: Removing data between two HTML tags?
Message-Id: <080420111103549356%brian.d.foy@gmail.com>

In article
<969eb4b1-46d4-4ce4-b960-b1abd2563812@f30g2000yqa.googlegroups.com>,
Rob <rdw204@gmail.com> wrote:

> Hello,
> 
> I am trying to use perl to remove all data which comes between these
> two tags:
> 
> <div class="left">......</div>

My article "Process HTML with a Perl Module" may get you started in the
right direction:

http://www.informit.com/articles/article.aspx?p=1581075


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

Date: Fri, 8 Apr 2011 10:50:40 -0700 (PDT)
From: Rob <rdw204@gmail.com>
Subject: Re: Removing data between two HTML tags?
Message-Id: <fd1acb04-c081-4543-9e50-4fffa10d13a5@dr5g2000vbb.googlegroups.com>

On Apr 8, 5:03=A0pm, brian d foy <brian.d....@gmail.com> wrote:
> In article
> <969eb4b1-46d4-4ce4-b960-b1abd2563...@f30g2000yqa.googlegroups.com>,

Thank you all for your help and suggestions. I have achieved what I
wanted by just creating HTML comments around the text to remove and
removing that instead, as follows:

$data =3D~ s/<!-- start-top -->.+?<!-- end-top -->//smg;

The article at http://tinyurl.com/64uvzgp set me on the right track.

Rob


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

Date: 9 Apr 2011 20:53:45 -0400
From: dkcombs@panix.com (David Combs)
Subject: strawberry perl installation error num 2908   Huh?
Message-Id: <inqv2p$s85$1@panix3.panix.com>


Trying to load, on to xp, perl 5.12.

Installation error meg:

    strawbery perl setup

    the installer has encountered an unexpected error installing this package.  This may indicate a problem with the package.  The error code is 2908.



Any suggestions?

Thanks!

David
 .



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

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:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#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 V11 Issue 3347
***************************************


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