[32520] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3785 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Sep 27 14:09:17 2012

Date: Thu, 27 Sep 2012 11:09:04 -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           Thu, 27 Sep 2012     Volume: 11 Number: 3785

Today's topics:
    Re: Can't find a syntax error, hoping a second set of e <*@eli.users.panix.com>
    Re: Can't find a syntax error, hoping a second set of e <kaz@kylheku.com>
    Re: Can't find a syntax error, hoping a second set of e <*@eli.users.panix.com>
        Database usage best practices <rweikusat@mssgmbh.com>
        deploying perl applets <cartercc@gmail.com>
    Re: deploying perl applets <aleksandar@ivanisevic.de>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Wed, 26 Sep 2012 21:09:34 +0000 (UTC)
From: Eli the Bearded <*@eli.users.panix.com>
Subject: Re: Can't find a syntax error, hoping a second set of eyes will help
Message-Id: <eli$1209261703@qz.little-neck.ny.us>

In comp.lang.perl.misc, Jason C  <jwcarlton@gmail.com> wrote:
> 2. I briefly looked for a module that would handle this correctly, but
> wasn't sure what to look for. And, I'm not sure that it warrants the
> including of a full module if it could potentially be done in a simple
> regex. If you can recommend a module that would be more stable and/or
> faster than what I'm doing, though, then I would definitely appreciate
> the reference!

Do you want to deal with human generated HTML? You'll find that a
"simple" regex will fail you.

http://www.panix.com/~eli/some.links.html

:r! cat $PHTML/some.links.html
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>linky</title>
</head>
<body>
<h1>linky</h1>
<ul>
<li><a href = http://www.google.com/ > Space no quotes </a>
	(this link gives validation errors)</li>
<li><a href = 'http://www.google.com/'> Space single quotes </a></li>
<li><a href='http://www.google.com/'> End space single quotes </a ></li>
<li><a
href
=
'http://www.google.com/'
> No spaces (newlines) single quotes </a
></li>
<li><a	href="http://www.google.com/"> No spaces (tabs) double quotes </a	></li>
</ul>
</body>
</html>

That's not even trying to be an exhaustive way to break it.

Elijah
------
no javascript, for example


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

Date: Wed, 26 Sep 2012 22:54:15 +0000 (UTC)
From: Kaz Kylheku <kaz@kylheku.com>
Subject: Re: Can't find a syntax error, hoping a second set of eyes will help
Message-Id: <20120926155229.133@kylheku.com>

On 2012-09-26, Eli the Bearded <*@eli.users.panix.com> wrote:
>:r! cat $PHTML/some.links.html

UUOC infects the the vi command line!

 :r!cat <file>    ->    :r <file>



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

Date: Wed, 26 Sep 2012 23:38:09 +0000 (UTC)
From: Eli the Bearded <*@eli.users.panix.com>
Subject: Re: Can't find a syntax error, hoping a second set of eyes will help
Message-Id: <eli$1209261938@qz.little-neck.ny.us>

In comp.lang.perl.misc, Kaz Kylheku  <kaz@kylheku.com> wrote:
> On 2012-09-26, Eli the Bearded <*@eli.users.panix.com> wrote:
> >:r! cat $PHTML/some.links.html
> 
> UUOC infects the the vi command line!
> 
>  :r!cat <file>    ->    :r <file>

You got me. I tend to use :r! a lot in posts, and didn't optimize
it down to :r here. 

Elijah
------
map * "yyy@y


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

Date: Wed, 26 Sep 2012 17:15:03 +0100
From: Rainer Weikusat <rweikusat@mssgmbh.com>
Subject: Database usage best practices
Message-Id: <87ehlobw1k.fsf@sapphire.mobileactivedefense.com>

I just came accross the following statement in the DBI::Class
documentation,

,----
| Class::DBI provides a convenient abstraction layer to a database.
| 
| It not only provides a simple database to object mapping layer, but
| can be used to implement several higher order database functions
| (triggers, referential integrity, cascading delete etc.), at the
| application level, rather than at the database.
| 
| This is particularly useful when using a database which doesn't
| support these (such as MySQL), or when you would like your code to be
| portable across multiple databases which might implement these things
| in different ways.
| 
| In short, Class::DBI aims to make it simple to introduce 'best
| practice' when dealing with data stored in a relational database.
`----

I strongly disagree with the opinion that it would be 'best practice'
to treat a RDBMS as 'dumb' system for storing structured data in
binary files and reimplement all the features it already has in
application code on top of it. This rather strikes me as 'back to the
1960!' idea which likely comes from the fact that RDBMSes, originally
supposed to enable people to perform operations on datasets without
having to learn programming in some imperative language first, were so
successful that people who already know how to program in an imperative
language are more or less forced to use them but - of course - they
don't have the slightest interest in actually learning how to so do
efficiently, especially if this means 'learning a second' (or even
more than 'the second') other programming language.

Ironically, this step backwards in the last century markets itself as
modern ...


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

Date: Wed, 26 Sep 2012 06:27:46 -0700 (PDT)
From: ccc31807 <cartercc@gmail.com>
Subject: deploying perl applets
Message-Id: <e599b4e7-8664-453c-9c27-46468e4a774b@googlegroups.com>

I mostly write Perl script for my own use, but sometimes write them for oth=
ers. To date, all these others have been IT, and it's not too hard to have =
them install Perl (on Windows mostly ActiveState but sometimes Strawberry),=
 copy the source to their machine, invoke the command interpreter, and run =
the script. Some younger IT folks don't especially like the command line, b=
ut they understand how it's done.

Now, I've been tasked with delivering scripts to non IT folks, and my one e=
xperience to date has been failure. If I were writing in C, I'd deliver an =
ececutable, with Java I'd deliver compiled byte code, with one of the .NET =
languages I'd simply use the VS distributable.

How to I do the same with a Perl script?

That is, I want to avoid having users (1) install Perl, (2) update their pa=
th if necessary, (3) invoke the command prompt, (4) navigate to the appropr=
iate directory in DOS, and (5) run the script from the command line. I'd li=
ke to send them a file, tell them to install it, and then click on the icon=
 .

I have a feeling that this isn't a problem that Perl was designed to solve,=
 and that perhaps I'll have to write these apps in another language.

Thanks, CC.


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

Date: Wed, 26 Sep 2012 15:44:24 +0200
From: Aleksandar Ivanisevic <aleksandar@ivanisevic.de>
Subject: Re: deploying perl applets
Message-Id: <m37grgaog7.fsf@alex.2e-systems.com>

ccc31807 <cartercc@gmail.com> writes:

> How to I do the same with a Perl script?

You may want to try PerlApp or perl2exe. Haven't tried them, I just
know they exist.



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

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


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