[30348] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1591 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri May 30 03:09:42 2008

Date: Fri, 30 May 2008 00: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           Fri, 30 May 2008     Volume: 11 Number: 1591

Today's topics:
    Re: FAQ 5.12 How can I open a filehandle to a string? <ben@morrow.me.uk>
    Re: How to make input user and password in perl script  <BLOCKSPAMfishfry@your-mailbox.com>
    Re: Need help with a simple (I think) Perl script <szrRE@szromanMO.comVE>
    Re: Need help with a simple (I think) Perl script <ben@morrow.me.uk>
    Re: Need help with a simple (I think) Perl script <joe+usenet@sunstarsys.com>
    Re: Need help with a simple (I think) Perl script <noreply@gunnar.cc>
    Re: Need help with a simple (I think) Perl script <szrRE@szromanMO.comVE>
        new CPAN modules on Fri May 30 2008 (Randal Schwartz)
    Re: Perl vs. Php xhoster@gmail.com
    Re: Perldoc recommendation <tadmc@seesig.invalid>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Fri, 30 May 2008 03:02:29 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: FAQ 5.12 How can I open a filehandle to a string?
Message-Id: <lq34h5-mnp.ln1@osiris.mauzo.dyndns.org>


Quoth "Peter J. Holzer" <hjp-usenet2@hjp.at>:
> 
> Yikes! Did I really create that monster of a sentence (not to mention
> the typo)? I guess it shows that German is my native language. How about
> this?
> 
> | Since Perl 5.8.0 a file handle referring to a string can be created by
> | calling open with a reference to that string instead of the filename.
> | This file handle can then be used to read from or write to the string:

| Since Perl 5.8.0 a file handle can be used to read and write the
| contents of a scalar instead of a file on disk. This is done by
| passing C<open> a reference in place of a filename:

The important part is 'this handle doesn't actually point to a file'.
The detail of passing a reference should come later.

Ben

-- 
   Razors pain you / Rivers are damp
   Acids stain you / And drugs cause cramp.                    [Dorothy Parker]
Guns aren't lawful / Nooses give
  Gas smells awful / You might as well live.                   ben@morrow.me.uk


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

Date: Thu, 29 May 2008 18:42:25 -0700
From: fishfry <BLOCKSPAMfishfry@your-mailbox.com>
Subject: Re: How to make input user and password in perl script started on web?
Message-Id: <BLOCKSPAMfishfry-4F4EDB.18422529052008@comcast.dca.giganews.com>

In article 
<b9ec4458-b03d-49b6-a562-916ce9b06a63@e53g2000hsa.googlegroups.com>,
 Bill H <bill@ts1000.us> wrote:

> On May 29, 5:24 pm, Jürgen Exner <jurge...@hotmail.com> wrote:
> > "Pero" <p...@tupwerwt.ch> wrote:
> > >How to make input user and password in perl script
> >
> > This Question is Asked Frequently: perldoc -q password
> >         "How do I ask the user for a password?"
> >
> > >started on web?
> >
> > This Question is also Asked Frequently: perldoc -q password
> >         "How do I put a password on my web pages?"
> >
> > jue
> 
> Or on the web if you sitting in your living room away from perldoc
> like me (I had to see if perldoc.perl.org worked like perldoc -q and
> it does :) ):
> 
> http://perldoc.perl.org/perlfaq8.html#How-do-I-ask-the-user-for-a-password%3F
> http://perldoc.perl.org/perlfaq9.html#How-do-I-put-a-password-on-my-web-pages%
> 3F
> 
> 
> And just so you know, neither one really tells you how, they tell you
> it has nothing to do with perl.
> 

More helpfulness (not) from this newsgroup. No wonder PHP's kicking 
Perl's ass in the real world. I'm sick to death of the newbie-bashing 
around here.


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

Date: Thu, 29 May 2008 18:20:51 -0700
From: "szr" <szrRE@szromanMO.comVE>
Subject: Re: Need help with a simple (I think) Perl script
Message-Id: <g1nkpk0269q@news4.newsguy.com>

Gunnar Hjalmarsson wrote:
> szr wrote:
>> Gunnar Hjalmarsson wrote:
>>> Bill H wrote:
>>>> The other suggestion of installing this or using that module, not
>>>> everyone who is programming in perl for cgi has their own server or
>>>> has the ability of adding new modules to the server (fortunatly I
>>>> do) and have to work within the capabilities of the system they are
>>>> running on. So if they post a problem and there is a solution that
>>>> wouldn't require them installing a module, recommend it, instead of
>>>> just saying use blah::blah.
>>>
>>> Sometimes when people say "can't" install this or that module, they
>>> actually mean "don't know how to". For instance, I have never heard
>>> of a situation when a pure Perl module can't be installed, in one
>>> way or another. So encouraging people to learn how to make use of
>>> modules is usually the right thing to do.
>>
>> There are some modules, even pure Perl ones, that might have a
>> dependency on something that isn't installed, and the user is not
>> able to install said dependency.
>
> Well, I for one wouldn't say "pure Perl module" about a module that's
> dependent on a non-core XS module.

Where did I say XS module? I meant even a pure Perl module could still 
require some facility on the system. Maybe a certain type of hardware, 
or it scrapes the output of a specific program that spews a certain type 
of data. The reason doesn't really matter, the point is it is quite 
possible.

>> Or one doesn't have shell access or the
>> hosting account uses a Windows server (and most don't give you any
>> sort of shell or remote desktop access.)
>
> You don't need shell access to install a pure Perl module. Sure, you
> can't install it "the right way", but uploading a .pm file to a
> suitable folder with e.g. FTP and adding a "use lib" statement is
> always possible.

Yes, but that can still be problematic with certain kinds of hosting 
setups (again, Windows setups would fall into that category.)

-- 
szr 




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

Date: Fri, 30 May 2008 02:56:44 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Need help with a simple (I think) Perl script
Message-Id: <sf34h5-mnp.ln1@osiris.mauzo.dyndns.org>


Quoth "Dick Sutton" <rsutton43@comcast.net>:
> 
> I am sure that people like Mr. Unur are a relatively small group.  However, 
> I would like to point out that I had never 'run' the script because I didn't 
> know how to finish it.

So write the bit you *do* know how to do, and run that. If you'd read
the posting guildlines you'd have found that posting code you haven't
run is unhelpful, as it's all too likely to contain error unrelated to
your real problem.

> As I also pointed out, I am a new to Perl scripts. 
> Yes, I did mistype the lines in question.  You may even find further syntax 
> errors in the piece of code that I presented.

There is no need to post code with syntax errors. Even if you can't make
the code do what you want, you can still get it to the point where 
'perl -c' doesn't complain. Anyone looking at it will have to do that
before anything else, so it's courteous to do it yourself.

> After all, I said I was 
> stuck, I hadn't finished it.  I didn't paste in a line 'use strict;' just to 
> harass the newsgroup.  I read that Perl programs should use that line, so I 
> placed it in there.

Putting 'use strict' there is a good move, but the important part is
*fixing all the subsequent error messages*.

> I really take offense at being called a liar and being incompetent.  I am 
> trying to learn Perl on my own and I expect to make mistakes.  But I don't 
> expect to be insulted.

If you take offence that easily you should stay away from Usenet. While
rudeness may not be necessary or helpful, it is certainly common; and
many of those best placed to provide helpful advice are inclined to
expect those asking for it to help themselves as much as possible, and
are often rather sharp if they do not.

> Again, I thank those that made an honest attempt to help me, but I believe I 
> may be better served at this point to go to the library and check out a few 
> Perl books and continue learning on my own.

This could be described as 'making an honest attempt to help yourself'.
Why didn't you do that *before* asking a whole lot of people you've
never met to help you for free?

Ben

-- 
I've seen things you people wouldn't believe: attack ships on fire off
the shoulder of Orion; I watched C-beams glitter in the dark near the
Tannhauser Gate. All these moments will be lost, in time, like tears in rain.
Time to die.                                                   ben@morrow.me.uk


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

Date: Thu, 29 May 2008 22:17:20 -0400
From: Joe Schaefer <joe+usenet@sunstarsys.com>
Subject: Re: Need help with a simple (I think) Perl script
Message-Id: <87k5hcy1qn.fsf@gemini.sunstarsys.com>

"Dick Sutton" <rsutton43@comcast.net> writes:

> First of all, I am a rank amateur at Perl.  Here is my problem: I have a
> hundred or more files in a directory on a web server (let's call it
> 'Library').  Each file is a pdf file and is named 'yyyymmm.pdf'  where yyyy
> is the year (i.e. 2007) and mmm is the first 3 letters of the month (i.e.
> Jan). So a typical file name looks like '2007Jan.pdf'.
>
> I wrote a simple html page using FORM that allows the user to select the
> year and the month and then press the SUBMIT button and I want the
> respective pdf file returned into the users browser.  The problem is, I
> don't know how to return a pdf file to the browser.
>
> Here's what I have so far:
>
> #!/usr/local/bin/perl -wT
> use strict;
> use CGI ':standard';
>
> # declare variables...
> my $year;
> my $month;
> my $pdffile;
>
> # get the parameters...
> $year = param('Year');
> $month = param('Month');
>
> # construct the relative pathname to the actual PDF file
> $pdffile = '../Library/'.$Year.$Month.'.pdf';
>
> print 'Content-type: application/pdf\n\n';
>
> This is where I'm stuck.  Can someone push me in the right direction.  I
> would think it should be trivial.  I just don't know how to procede.

What you're about to do gets sticky because you need to
untaint the parameters you received.  You need to untaint
them because if you don't, you could expose almost
every file on your filesystem to being readable 
through your script.

The next step is to open the pdffile and read it
into a variable, then print that variable out
to the browser.

Here's some untested code to do that for you. It's
written idiomatically, which may be difficult to
understand without some experience with Perl.
Fortunately Perl has a very good documentation
system which will explain everything here.

#!/usr/bin/perl -T
use strict;
use warnings;
use CGI qw/:standard :debug/;  # drop the ":debug when going live"

my $year;
my $month;

for (scalar param("Year")) {
    defined or die "Missing 'Year' parameter";
    /^(\d{4})$/ or die "Bad 'Year' parameter:$_";
    $year = $1;
}

# you can use this hash to do impedance matching
# between the parameters passed into your script
# and the naming conventions for your files

my %month_names = (
   Jan => "Jan",
   Feb => "Feb",
   Mar => "Mar",
   Apr => "Apr",
   May => "May",
   Jun => "Jun",
   Jul => "Jul",
   Aug => "Aug",
   Sep => "Sep",
   Oct => "Oct",
   Nov => "Nov",
   Dec => "Dec",
);

for (scalar param("Month")) {
  defined or die "Missing 'Month' parameter";
  $month = $month_names{$_} or die "Bad 'Month' parameter:$_";
}

my $pdffile = "../Library/$year$month.pdf";
open my $pdfh, "<", $pdffile or die "Can't open file $pdffile:$!";

print "Content-Type: application/pdf\n\n";
print while read $pdfh, $_, 8192;

exit 0;



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

Date: Fri, 30 May 2008 04:16:56 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Need help with a simple (I think) Perl script
Message-Id: <6a96fqF36eirrU1@mid.individual.net>

szr wrote:
> Gunnar Hjalmarsson wrote:
>> szr wrote:
>>> Gunnar Hjalmarsson wrote:
>>>> Bill H wrote:
>>>>> The other suggestion of installing this or using that module, not
>>>>> everyone who is programming in perl for cgi has their own server or
>>>>> has the ability of adding new modules to the server (fortunatly I
>>>>> do) and have to work within the capabilities of the system they are
>>>>> running on. So if they post a problem and there is a solution that
>>>>> wouldn't require them installing a module, recommend it, instead of
>>>>> just saying use blah::blah.
>>>> Sometimes when people say "can't" install this or that module, they
>>>> actually mean "don't know how to". For instance, I have never heard
>>>> of a situation when a pure Perl module can't be installed, in one
>>>> way or another. So encouraging people to learn how to make use of
>>>> modules is usually the right thing to do.
>>> There are some modules, even pure Perl ones, that might have a
>>> dependency on something that isn't installed, and the user is not
>>> able to install said dependency.
>> Well, I for one wouldn't say "pure Perl module" about a module that's
>> dependent on a non-core XS module.
> 
> Where did I say XS module? I meant even a pure Perl module could still 
> require some facility on the system.

Ok, you are right, any kind of dependency may prevent a module from working.

OTOH, the point I was trying to make is that non-module solutions to 
presented problems should be a last resort, when suitable modules exist. 
Hope you can agree to that. :)

>>> Or one doesn't have shell access or the
>>> hosting account uses a Windows server (and most don't give you any
>>> sort of shell or remote desktop access.)
>> You don't need shell access to install a pure Perl module. Sure, you
>> can't install it "the right way", but uploading a .pm file to a
>> suitable folder with e.g. FTP and adding a "use lib" statement is
>> always possible.
> 
> Yes, but that can still be problematic with certain kinds of hosting 
> setups (again, Windows setups would fall into that category.)

What kinds of setups are you thinking of? It certainly does not apply to 
all Windows ditto.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


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

Date: Thu, 29 May 2008 20:43:32 -0700
From: "szr" <szrRE@szromanMO.comVE>
Subject: Re: Need help with a simple (I think) Perl script
Message-Id: <g1nt5502e0o@news4.newsguy.com>

Gunnar Hjalmarsson wrote:
> szr wrote:
>> Gunnar Hjalmarsson wrote:
>>> szr wrote:
>>>> Gunnar Hjalmarsson wrote:
>>>>> Bill H wrote:
>>>>>> The other suggestion of installing this or using that module, not
>>>>>> everyone who is programming in perl for cgi has their own server
>>>>>> or has the ability of adding new modules to the server
>>>>>> (fortunatly I do) and have to work within the capabilities of
>>>>>> the system they are running on. So if they post a problem and
>>>>>> there is a solution that wouldn't require them installing a
>>>>>> module, recommend it, instead of just saying use blah::blah.
>>>>>
>>>>> Sometimes when people say "can't" install this or that module,
>>>>> they actually mean "don't know how to". For instance, I have
>>>>> never heard of a situation when a pure Perl module can't be
>>>>> installed, in one way or another. So encouraging people to learn
>>>>> how to make use of modules is usually the right thing to do.
>>>>
>>>> There are some modules, even pure Perl ones, that might have a
>>>> dependency on something that isn't installed, and the user is not
>>>> able to install said dependency.
>>>
>>> Well, I for one wouldn't say "pure Perl module" about a module
>>> that's dependent on a non-core XS module.
>>
>> Where did I say XS module? I meant even a pure Perl module could
>> still require some facility on the system.
>
> Ok, you are right, any kind of dependency may prevent a module from
> working.
> OTOH, the point I was trying to make is that non-module solutions to
> presented problems should be a last resort, when suitable modules
> exist. Hope you can agree to that. :)

Yes, I can agree to that (though I thought we were talking about 
installing modules; I didn't see anything mentioned about using 
non-module solutions.)

>>>> Or one doesn't have shell access or the
>>>> hosting account uses a Windows server (and most don't give you any
>>>> sort of shell or remote desktop access.)
>>>
>>> You don't need shell access to install a pure Perl module. Sure, you
>>> can't install it "the right way", but uploading a .pm file to a
>>> suitable folder with e.g. FTP and adding a "use lib" statement is
>>> always possible.
>>
>> Yes, but that can still be problematic with certain kinds of hosting
>> setups (again, Windows setups would fall into that category.)
>
> What kinds of setups are you thinking of? It certainly does not apply
> to all Windows ditto.

Many shared hosting setups make difficult to use any module that doesn't 
work out of the box ("out of the box" meaning pulling out the .pm's and 
such into a dir and using 'use lib'.)

-- 
szr 




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

Date: Fri, 30 May 2008 04:42:19 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Fri May 30 2008
Message-Id: <K1nzqJ.16vy@zorch.sf-bay.org>

The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN).  You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.

AnyEvent-4.1
http://search.cpan.org/~mlehmann/AnyEvent-4.1/
----
Apache2-ASP-1.49
http://search.cpan.org/~johnd/Apache2-ASP-1.49/
Perl extension for ASP on mod_perl2. 
----
App-Addex-0.017
http://search.cpan.org/~rjbs/App-Addex-0.017/
generate mail tool configuration from an address book 
----
Bio-Das-1.09
http://search.cpan.org/~lds/Bio-Das-1.09/
Interface to Distributed Annotation System 
----
Bitmask-Data-1.00
http://search.cpan.org/~maros/Bitmask-Data-1.00/
Handle bitmasks in an easy and flexible way 
----
Business-Address-POBox-0.07
http://search.cpan.org/~marcel/Business-Address-POBox-0.07/
Check whether an address looks like a P.O.Box 
----
CatalystX-Imports-0.01_01
http://search.cpan.org/~flora/CatalystX-Imports-0.01_01/
Shortcut functions for Catalyst controllers 
----
Class-MOP-0.58
http://search.cpan.org/~stevan/Class-MOP-0.58/
A Meta Object Protocol for Perl 5 
----
Config-INI-MVP-Reader-0.016
http://search.cpan.org/~rjbs/Config-INI-MVP-Reader-0.016/
multi-value capable .ini file reader (for plugins) 
----
Coro-4.73
http://search.cpan.org/~mlehmann/Coro-4.73/
coroutine process abstraction 
----
Coro-4.74
http://search.cpan.org/~mlehmann/Coro-4.74/
coroutine process abstraction 
----
DBIx-Connection-0.06
http://search.cpan.org/~adrianwit/DBIx-Connection-0.06/
Simple database interface. 
----
Egg-Release-3.14
http://search.cpan.org/~lushe/Egg-Release-3.14/
Version of Egg WEB Application Framework. 
----
Egg-Release-Authorize-0.05
http://search.cpan.org/~lushe/Egg-Release-Authorize-0.05/
Package kit for attestation. 
----
Exception-Died-0.0201
http://search.cpan.org/~dexter/Exception-Died-0.0201/
Convert simple die into real exception object 
----
Exception-System-0.0902
http://search.cpan.org/~dexter/Exception-System-0.0902/
The exception class for system or library calls 
----
Exception-Warning-0.0102
http://search.cpan.org/~dexter/Exception-Warning-0.0102/
Convert simple warn into real exception object 
----
File-SortedSeek-0.014
http://search.cpan.org/~jfreeman/File-SortedSeek-0.014/
A Perl module providing fast access to large files 
----
Font-GlyphNames-0.03
http://search.cpan.org/~sprout/Font-GlyphNames-0.03/
Convert between glyph names and characters 
----
HTML-Stream-1.58
http://search.cpan.org/~dstaal/HTML-Stream-1.58/
HTML output stream class, and some markup utilities 
----
HTML-Truncate-0.13
http://search.cpan.org/~ashley/HTML-Truncate-0.13/
(beta software) truncate HTML by percentage or character count while preserving well-formedness. 
----
Helios-1.19_07
http://search.cpan.org/~lajandy/Helios-1.19_07/
a framework for developing asynchronous distributed job processing applications 
----
IO-AIO-3.03
http://search.cpan.org/~mlehmann/IO-AIO-3.03/
Asynchronous Input/Output 
----
IO-Moose-0.05
http://search.cpan.org/~dexter/IO-Moose-0.05/
Reimplementation of IO::* with improvements 
----
JavaScript-Minifier-XS-0.04
http://search.cpan.org/~gtermars/JavaScript-Minifier-XS-0.04/
XS based JavaScript minifier 
----
Math-ConvexHull-1.03
http://search.cpan.org/~smueller/Math-ConvexHull-1.03/
Calculate convex hulls using Graham's scan (n*log(n)) 
----
Moose-0.47
http://search.cpan.org/~stevan/Moose-0.47/
A postmodern object system for Perl 5 
----
Moose-0.48
http://search.cpan.org/~stevan/Moose-0.48/
A postmodern object system for Perl 5 
----
MooseX-Method-0.40
http://search.cpan.org/~gphat/MooseX-Method-0.40/
Method declaration with type checking 
----
MooseX-Method-0.41
http://search.cpan.org/~gphat/MooseX-Method-0.41/
Method declaration with type checking 
----
Net-Akamai-0.12
http://search.cpan.org/~jgoulah/Net-Akamai-0.12/
Utility to interface with Akamai's API 
----
ORLite-Mirror-0.05
http://search.cpan.org/~adamk/ORLite-Mirror-0.05/
Extend ORLite to support remote SQLite databases 
----
PDF-FromImage-0.000001
http://search.cpan.org/~typester/PDF-FromImage-0.000001/
Create PDF slide from images 
----
PDF-FromImage-0.000002
http://search.cpan.org/~typester/PDF-FromImage-0.000002/
Create PDF slide from images 
----
PDF-FromImage-0.000003
http://search.cpan.org/~typester/PDF-FromImage-0.000003/
Create PDF slide from images 
----
PLP-3.20
http://search.cpan.org/~shiar/PLP-3.20/
Perl in HTML pages 
----
PPIx-Shorthand-v1.1.1
http://search.cpan.org/~elliotjs/PPIx-Shorthand-v1.1.1/
Translation of short names to PPI::Element classes. 
----
PerlIO-Util-0.21
http://search.cpan.org/~gfuji/PerlIO-Util-0.21/
A selection of general PerlIO utilities 
----
Regexp-Common-time-0.04
http://search.cpan.org/~roode/Regexp-Common-time-0.04/
Date and time regexps. 
----
Rose-DBx-Object-Renderer-0.07
http://search.cpan.org/~danny/Rose-DBx-Object-Renderer-0.07/
Web UI Rendering for Rose::DB::Object 
----
String-BlackWhiteList-0.06
http://search.cpan.org/~marcel/String-BlackWhiteList-0.06/
match a string against a blacklist and a whitelist 
----
TaskForest-1.11
http://search.cpan.org/~enoor/TaskForest-1.11/
Simple, powerful task scheduler 
----
Term-GentooFunctions-1.2.2
http://search.cpan.org/~jettero/Term-GentooFunctions-1.2.2/
provides gentoo's einfo, ewarn, eerror, ebegin and eend. 
----
Test-DBUnit-0.06
http://search.cpan.org/~adrianwit/Test-DBUnit-0.06/
Database test framework. 
----
WSO2-WSF-Perl-1.1
http://search.cpan.org/~chintana/WSO2-WSF-Perl-1.1/
----
WWW-CDTV-0.02
http://search.cpan.org/~yusukebe/WWW-CDTV-0.02/
Get a weekly music ranking from CDTV ( Japanese TV Program ) 
----
Weather-YR-0.22
http://search.cpan.org/~hovenko/Weather-YR-0.22/
Perl extension for talking to yr.no 
----
WebService-LastFM-0.05
http://search.cpan.org/~kentaro/WebService-LastFM-0.05/
Simple interface to Last.FM Web service API 
----
WordNet-SenseRelate-AllWords-0.10
http://search.cpan.org/~tpederse/WordNet-SenseRelate-AllWords-0.10/
Disambiguate All Words in a Text based on semantic similarity and relatedness in WordNet 


If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.

This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
  http://www.stonehenge.com/merlyn/LinuxMag/col82.html

print "Just another Perl hacker," # the original

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


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

Date: 30 May 2008 01:42:03 GMT
From: xhoster@gmail.com
Subject: Re: Perl vs. Php
Message-Id: <20080529214206.855$5K@newsreader.com>

Bill H <bill@ts1000.us> wrote:
> On May 29, 1:58=A0pm, xhos...@gmail.com wrote:
> > Bill H <b...@ts1000.us> wrote:
> > > Preface: This is not a flame war, please don't turn it into one.
> >
> > > I am involved in a very large project that =A0will be doing a lot of
> > > talking to Postgres databases (possibly using a a RST middleware).
> >
> > I don't know what RST middleware is. A quick google hasn't enlightened
> > me.  If it is some kind of object-relational mapping, then it might be
> > a pain to use two different languages to access it.
> >
>
> My mistake Xho, should have typed REST (Representational State
> Transfer).

Ah.  From the (meager) experience I've had with REST, I think it should
be quite feasible to let each group use their own preferred language.

> >
> > > 2) I have 10's of thousands lines of code written (some very complex
> > > creating pdf's on the fly etc)
> >
> > Are these very complex things going to part of the system you are now
> > working on? =A0Are they going to be the *main* part of it?
> >
>
> Yes, the complex code actually creates the products that are sold, so
> without them there wouldn't be a need for the databases.

I think this puts you in a very strong position to argue that you should
continue in Perl!

And if your system is data-driven, rather than "object" driven, it should
cause few problems for your part and their part to interact with each other
strictly through the database, making the language of each part more or
less irrelevant to the other.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.


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

Date: Thu, 29 May 2008 23:34:44 -0500
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: Perldoc recommendation
Message-Id: <slrng3v0v4.c0t.tadmc@tadmc30.sbcglobal.net>

Marc Bissonnette <dragnet> wrote:

[ snip wherein Marc did Windows bashing and then got crotchety
  when shown that Windows will easily do what he wanted.
]


Your choice of feature to bash was mistaken.

(I'll agree that there are boatloads of others though.)

Take it like a man when you make a mistake. Whining is so unpleasant.


> Shows what you know.


Please do not continue this campaign to go back "in there".


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


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

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 V11 Issue 1591
***************************************


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