[29300] in Perl-Users-Digest
Perl-Users Digest, Issue: 544 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jun 21 03:09:57 2007
Date: Thu, 21 Jun 2007 00:09:06 -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, 21 Jun 2007 Volume: 11 Number: 544
Today's topics:
Re: date parts in one step <stoupa@practisoft.cz>
Re: How to set value to radio button with mechanze.pl <tadmc@seesig.invalid>
Re: Need help reading two-dimentional array from a file <asuter@cisco.com>
Re: Need help reading two-dimentional array from a file <uri@stemsystems.com>
new CPAN modules on Thu Jun 21 2007 (Randal Schwartz)
Perl Best Practices - Code Formatting. <asuter@cisco.com>
Re: Reference syntax <tadmc@seesig.invalid>
Re: Reference syntax <tadmc@seesig.invalid>
Re: Reference syntax <jurgenex@hotmail.com>
Re: The Modernization of Emacs <iddw@hotmail.com>
Re: The Modernization of Emacs <"You don't need it">
Re: The Modernization of Emacs <martin@see.sig.for.address>
Re: The Modernization of Emacs <dak@gnu.org>
Re: The Modernization of Emacs: terminology buffer and <dak@gnu.org>
Trying to make sense of perl for web development. <cendrizzi@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 21 Jun 2007 03:01:20 +0200
From: "Petr Vileta" <stoupa@practisoft.cz>
Subject: Re: date parts in one step
Message-Id: <f5cipe$2cu7$1@ns.felk.cvut.cz>
Dr.Ruud wrote:
> John W. Krahn schreef:
>> Petr Vileta:
>
>>> I need to get month and year values from localtime() so I wrote
>>> this: # get values in Unix format
>>> my ($month, $year) = (localtime)[4, 5];
>>> # convert to human format
>>> $month++;
>>> $year += 1900;
>>>
>
> $ perl -wle'
> print for map $_+shift,(localtime)[4,5]' 1 1900
> '
Hmm, looks good but I want to use it in script not from commandline. Can you
rewrite it like this:
#!/usr/bin/perl
use strict;
my ($month, $year) = map .... ;
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
------------------------------
Date: Wed, 20 Jun 2007 19:11:28 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: How to set value to radio button with mechanze.pl
Message-Id: <slrnf7jghg.jl0.tadmc@tadmc30.sbcglobal.net>
Tristan <tristan@vvv.xls> wrote:
> How to set value to radio button with mechanze.pl
What is mechanze.pl ?
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Wed, 20 Jun 2007 19:36:17 -0700
From: "Asim Suter" <asuter@cisco.com>
Subject: Re: Need help reading two-dimentional array from a file
Message-Id: <1182393378.813123@sj-nntpcache-2.cisco.com>
>
> asimsuter@hotmail.com <asimsuter@hotmail.com> wrote:
>> On Jun 14, 12:00 pm, Paul Lalli <mri...@gmail.com> wrote:
>
>>> my @foo = eval do { local $/; <DATA>} ;
>
>> my @foo = eval do { local $/; <DATA >};
>
>
> It is customary to quote text that you are going to comment on
> rather than repeat the text as if it was original to you.
>
>
>> I hear in Perl6 they are coming up with a new inbuilt for above called
> ^^^^^^^^^
>> 'slurp'
>
>
> You heard incorrectly then.
I stand corrected. Other than eval and do 'slurp' does everything in the
above idiom.
Which is slurping the whole file in one shot. Gone will be the days of {
local $/; <DATA >} idiom.
>
> slurp reads a file, it does not evaluate the file as Perl code
> like the above does.
>
>
>> Regards.
>> Asim Suter
>> asimsuter@hotmail.com
>
>
> It is customary to put your .signature an the _end_ of your article,
> preceded by a proper sig-dash ("-- \n").
Really ? I have not heard of it in 10+ years in being in s/w industry.
I need no JAPH signature. Advicing on signature is probably going a little
too far ;-) [ No flames please :-) ]
Regards.
Asim Suter
>
>
> --
> Tad McClellan
> email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Thu, 21 Jun 2007 03:43:17 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Need help reading two-dimentional array from a file
Message-Id: <x7bqfaug4r.fsf@mail.sysarch.com>
>>>>> "AS" == Asim Suter <asuter@cisco.com> writes:
>> asimsuter@hotmail.com <asimsuter@hotmail.com> wrote:
>>
>>> my @foo = eval do { local $/; <DATA >};
AS> I stand corrected. Other than eval and do 'slurp' does everything in the
AS> above idiom.
AS> Which is slurping the whole file in one shot. Gone will be the days of {
AS> local $/; <DATA >} idiom.
that idiom is gone now. use File::Slurp.
>> It is customary to put your .signature an the _end_ of your article,
>> preceded by a proper sig-dash ("-- \n").
AS> Really ? I have not heard of it in 10+ years in being in s/w
AS> industry. I need no JAPH signature. Advicing on signature is
AS> probably going a little too far ;-) [ No flames please :-) ]
the signature is a usenet thing and predates perl, japhs and your short
career. it is good to learn history in any field.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
Date: Thu, 21 Jun 2007 04:42:10 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Thu Jun 21 2007
Message-Id: <JJyyEA.19pD@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.
Bundle-Compress-Zlib-0.01
http://search.cpan.org/~ski/Bundle-Compress-Zlib-0.01/
installs Zlib modules and dependencies
----
CGI-Ex-2.15
http://search.cpan.org/~rhandom/CGI-Ex-2.15/
CGI utility suite - makes powerful application writing fun and easy
----
Class-Trigger-0.11_03
http://search.cpan.org/~miyagawa/Class-Trigger-0.11_03/
Mixin to add / call inheritable triggers
----
ClearPress-4
http://search.cpan.org/~rpettett/ClearPress-4/
simple, fresh & fruity MVC framework
----
DBIx-Class-0.08002
http://search.cpan.org/~mstrout/DBIx-Class-0.08002/
Extensible and flexible object <-> relational mapper.
----
Data-Package-1.02
http://search.cpan.org/~adamk/Data-Package-1.02/
Base class for packages that are purely data
----
Data-Package-CSV-1.00
http://search.cpan.org/~adamk/Data-Package-CSV-1.00/
A Data::Package class for CSV data using Parse::CSV
----
Flickr-Upload-1.29
http://search.cpan.org/~cpb/Flickr-Upload-1.29/
Upload images to flickr.com
----
Geo-Coordinates-RDNAP-0.10
http://search.cpan.org/~pijll/Geo-Coordinates-RDNAP-0.10/
convert to/from Dutch RDNAP coordinate system
----
Graph-Timeline-1.4
http://search.cpan.org/~peterhi/Graph-Timeline-1.4/
Render timeline data
----
Lemonldap-NG-Handler-0.82
http://search.cpan.org/~guimard/Lemonldap-NG-Handler-0.82/
The Apache protection module part of Lemonldap::NG Web-SSO system.
----
Lemonldap-NG-Manager-0.72
http://search.cpan.org/~guimard/Lemonldap-NG-Manager-0.72/
Perl extension for managing Lemonldap::NG Web-SSO system.
----
Log-Report-0.07
http://search.cpan.org/~markov/Log-Report-0.07/
report a problem, pluggable handlers and language support
----
MailTools-2.00_01
http://search.cpan.org/~markov/MailTools-2.00_01/
----
Net-Amazon-0.43
http://search.cpan.org/~boumenot/Net-Amazon-0.43/
Framework for accessing amazon.com via REST
----
PAB3-3.1.1
http://search.cpan.org/~chrmue/PAB3-3.1.1/
Perl Application Builder / Version 3
----
PAB3-DB-Driver-Mysql-1.0.2
http://search.cpan.org/~chrmue/PAB3-DB-Driver-Mysql-1.0.2/
Perl5 wrapper to the mysql5+ client libary and driver for the PAB3::DB class
----
PAB3-DB-Driver-Postgres-1.0.2
http://search.cpan.org/~chrmue/PAB3-DB-Driver-Postgres-1.0.2/
Perl5 wrapper to the pgsql libary and driver for the PAB3::DB class
----
PAB3-DB-Driver-Sqlite3-1.0.2
http://search.cpan.org/~chrmue/PAB3-DB-Driver-Sqlite3-1.0.2/
Perl5 wrapper to libsqlite3 and driver for the PAB3::DB class
----
POE-Component-Server-Syslog-1.04
http://search.cpan.org/~bingos/POE-Component-Server-Syslog-1.04/
syslog services for POE
----
POE-Component-Server-Syslog-1.06
http://search.cpan.org/~bingos/POE-Component-Server-Syslog-1.06/
syslog services for POE
----
Perl-Version-0.0.8
http://search.cpan.org/~andya/Perl-Version-0.0.8/
Parse and manipulate Perl version strings
----
Regexp-Wildcards-0.04
http://search.cpan.org/~vpit/Regexp-Wildcards-0.04/
Converts wildcard expressions to Perl regular expressions.
----
SQLite-Work-0.10
http://search.cpan.org/~rubykat/SQLite-Work-0.10/
report on and update an SQLite database.
----
Set-CrossProduct-1.92
http://search.cpan.org/~bdfoy/Set-CrossProduct-1.92/
work with the cross product of two or more sets
----
Template-Alloy-1.003
http://search.cpan.org/~rhandom/Template-Alloy-1.003/
TT2/3, HT, HTE, Tmpl, and Velocity Engine
----
Test-Perl-Critic-Progressive-0.01
http://search.cpan.org/~thaljef/Test-Perl-Critic-Progressive-0.01/
Gradually enforce coding standards
----
Tk-HyperText-0.01
http://search.cpan.org/~kirsle/Tk-HyperText-0.01/
Create and manipulate ROText widgets which render HTML code.
----
Tk-HyperText-0.02
http://search.cpan.org/~kirsle/Tk-HyperText-0.02/
Create and manipulate ROText widgets which render HTML code.
----
Verilog-Perl-3.001
http://search.cpan.org/~wsnyder/Verilog-Perl-3.001/
----
WebService-Timelog-0.05
http://search.cpan.org/~kentaro/WebService-Timelog-0.05/
A Perl interface to Timelog API
----
XML-Atom-0.25_02
http://search.cpan.org/~miyagawa/XML-Atom-0.25_02/
Atom feed and API implementation
----
XML-Filter-Conditional-0.02
http://search.cpan.org/~pevans/XML-Filter-Conditional-0.02/
an XML SAX filter for conditionally ignoring XML content
----
XML-XPathScript-1.50
http://search.cpan.org/~yanick/XML-XPathScript-1.50/
a Perl framework for XML stylesheets
----
YAML-0.63
http://search.cpan.org/~ingy/YAML-0.63/
YAML Ain't Markup Language (tm)
----
encoding-source-0.01
http://search.cpan.org/~rgarcia/encoding-source-0.01/
allows you to write your script in non-ascii or non-utf8
----
encoding-source-0.02
http://search.cpan.org/~rgarcia/encoding-source-0.02/
allows you to write your script in non-ascii or non-utf8
----
encoding-split-0.02
http://search.cpan.org/~juerd/encoding-split-0.02/
Metapackage (bundle) for automated upgrades
----
encoding-stdio-0.02
http://search.cpan.org/~juerd/encoding-stdio-0.02/
Provides an easy way to set encoding layers on STDOUT and STDIN
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/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Wed, 20 Jun 2007 22:01:28 -0700
From: "Asim Suter" <asuter@cisco.com>
Subject: Perl Best Practices - Code Formatting.
Message-Id: <1182402088.951116@sj-nntpcache-2.cisco.com>
I was reading Perl Best Practices by Respected Damian Conway
and he rather strongly advices using K&R style of code format as opposed to
BSD style or GNU style.
[ In Amazon reviews this advice was not very well received ]
For reference:
K&R style below
============
for my $item ( @list ) {
.......
.......
}
BSD style below
============
for my $item ( @list )
{
....
....
}
OTOH in Damian Conway's classic "Object Oriented Perl", he chooses to use
BSD style in the book.
Change of heart Mr. Conway ?
I know people feel strongly about code layout/format and "bracing
technology" - I would like to know
what folks are using in their scripts and modules.
I am talking about production scripts and modules ( possibly multiple people
team ) with sufficient complexity.
( Several thousand Perl line count at the minimum )
Which style appeals to you more and which one do you use ?
Regards.
Asim Suter
PS: It does not matter - but I find BSD style more appealing.
------------------------------
Date: Wed, 20 Jun 2007 17:29:32 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: Reference syntax
Message-Id: <slrnf7jaic.jl0.tadmc@tadmc30.sbcglobal.net>
Jürgen Exner <jurgenex@hotmail.com> wrote:
> tim_milstead@yahoo.co.uk wrote:
>> sub padded {
>> my ($arg_ref) = @_;
>
> Personally I would prefer
> my $arg_ref = shift;
> because your method becomes a pain when dealing with more than one
> parameter.
my($arg1, $arg2, $arg3, $arg4, $arg5) = @_;
vs
my $arg1 = shift;
my $arg2 = shift;
my $arg3 = shift;
my $arg4 = shift;
my $arg5 = shift;
And your position is that the 1st is more painful than the 2nd?
Personally, I'd say repeatedly typing the same thing is a pain...
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Wed, 20 Jun 2007 17:32:05 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: Reference syntax
Message-Id: <slrnf7jan5.jl0.tadmc@tadmc30.sbcglobal.net>
tim_milstead@yahoo.co.uk <tim_milstead@yahoo.co.uk> wrote:
> On 20 Jun, 14:43, tim_milst...@yahoo.co.uk wrote:
> sub padded {
> my ($arg_ref) = @_;
>
> instead of:
>
> sub padded {
> my %arg = @_;
>
> or even what I would have though:
>
> my $arg_ref = \@_;
>
> because non matched pairs causes a compile time error on the first and
> a run time error on the second.
Neither of them cause errors.
(warnings are not errors)
> I'm not sure why the first is better than the third?
I'm not sure why a whisker is better than a table.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Thu, 21 Jun 2007 02:22:29 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Reference syntax
Message-Id: <Fhlei.9709$jb5.903@trndny09>
Tad McClellan wrote:
> Jürgen Exner <jurgenex@hotmail.com> wrote:
>> tim_milstead@yahoo.co.uk wrote:
>
>>> sub padded {
>>> my ($arg_ref) = @_;
>>
>> Personally I would prefer
>> my $arg_ref = shift;
>> because your method becomes a pain when dealing with more than one
>> parameter.
>
>
> my($arg1, $arg2, $arg3, $arg4, $arg5) = @_;
>
> vs
>
> my $arg1 = shift;
> my $arg2 = shift;
> my $arg3 = shift;
> my $arg4 = shift;
> my $arg5 = shift;
>
>
> And your position is that the 1st is more painful than the 2nd?
>
> Personally, I'd say repeatedly typing the same thing is a pain...
Well, ok, you got a point :-)
I was thinking along different lines but of course you are right.
jue
------------------------------
Date: Wed, 20 Jun 2007 15:33:29 -0700
From: Dave Hansen <iddw@hotmail.com>
Subject: Re: The Modernization of Emacs
Message-Id: <1182378809.880265.314150@o61g2000hsh.googlegroups.com>
On Jun 20, 8:28 am, David Kastrup <d...@gnu.org> wrote:
> Actually, the "E" in "Emacs" stands for "extensible". Part of the
> appeal of Emacs is that you can change it to accommodate you.
Actually, though Emacs is the epitome of extensibility, the "E" stands
for "Editor." "EMACS" is simply short for Editor MACroS, and was
originally implemented as a set of TECO macros.
There's also the joke that EMACS stands for Esc Meta Alt Ctrl Shift,
due to it's (often overwhelmingly) large and sometimes complex set of
keystroke combinations used to invoke various editing functions. This
view is usually put forth by the vi camp during editor wars.
Speaking of which, vi is a piece of wombat do. ;-)
Regards,
-=Dave
------------------------------
Date: Wed, 20 Jun 2007 23:40:42 +0100
From: "Daniel Dyer" <"You don't need it">
Subject: Re: The Modernization of Emacs
Message-Id: <op.tt8rx5dg8kxvgr@jack.local>
On Wed, 20 Jun 2007 23:33:29 +0100, Dave Hansen <iddw@hotmail.com> wrote:
> On Jun 20, 8:28 am, David Kastrup <d...@gnu.org> wrote:
>> Actually, the "E" in "Emacs" stands for "extensible". Part of the
>> appeal of Emacs is that you can change it to accommodate you.
>
> Actually, though Emacs is the epitome of extensibility, the "E" stands
> for "Editor." "EMACS" is simply short for Editor MACroS, and was
> originally implemented as a set of TECO macros.
>
> There's also the joke that EMACS stands for Esc Meta Alt Ctrl Shift,
> due to it's (often overwhelmingly) large and sometimes complex set of
> keystroke combinations used to invoke various editing functions. This
> view is usually put forth by the vi camp during editor wars.
>
There are dozens of alternative interpretation for "EMACS".
http://www.gnu.org/fun/jokes/gnuemacs.acro.exp.html
My favourite:
Elsewhere Maybe All Commands are Simple
Dan.
--
Daniel Dyer
http//www.uncommons.org
------------------------------
Date: Thu, 21 Jun 2007 00:24:40 +0100
From: Martin Gregorie <martin@see.sig.for.address>
Subject: Re: The Modernization of Emacs
Message-Id: <2jpok4-ajt.ln1@zoogz.gregorie.org>
Twisted wrote:
> This seems to be a closer analogy with emacs versus normal Windows
> text editors.
>
Windows text editors are not normal: most are devoid of all but the most
primitive functions and are further hampered by having an interface that
required frequent time wasting hand transfers from keyboard to mouse
because, if they provide keyboard equivalents at all, these are
remarkably unmemorable and/or undocumented.
Ask anybody who used early versions of Word and you'll hear just how
much faster Word for DOS 5 was than any of its Windows incarnations.
This was because all commands were keystrokes so a skilled typist could
keep both hands on the keyboard all the time. WinWord's interface is a
clunker by comparison.
As for documentation, lets look at vi. Not a great editor, but every
*nix variation has it installed and any fool can learn to use it in
about 2 hours flat and it does at least have good pattern matching.
Can't find its documentation? Never heard of manpages ("man vi") or
apropos ("apropos vi")? My copy of vi understands ":help" and tells you
so if you start it without any arguments.
Amongst its benefits are that you can do anything its capable of by
using only a standard QUERTY keyboard plus ESC - no function keys, etc
are needed - which can save your bacon if somebody misconfigured your
console or the computer is dieing. Beyond that it has user-configurable
KEY BINDINGS so you can also set it up to suit both yourself and that
fancy keyboard in front of you.
> Arguably even the weird controls are superior in some
> way -- but only if you got used to them,
>
You mean that Alt-Esc or Windows-e aren't weird? How long is it since
you tried to use Windows with a dead mouse? There are a set of arcane
keystrokes to replace anything you can do with a mouse but I bet 99% of
windows users don't know any of them apart from TAB and CTRL-ALT-DEL.
> The above applies equally to vi and its derivatives, if not more so --
> vi is like taking that same already-wacky car with the two separate
> throttles and adding, in a fit of quaint nostalgia, the need to
> actually crank-start its engine. ;)
>
If you can't learn enough vi to get by with in half a morning you're
probably well out of your depth here on comp.lang.java.programmer.
Oh, I forgot: you don't read manuals so you ARE out of your depth.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
------------------------------
Date: Thu, 21 Jun 2007 08:40:40 +0200
From: David Kastrup <dak@gnu.org>
Subject: Re: The Modernization of Emacs
Message-Id: <867ipxolnb.fsf@lola.quinscape.zz>
Twisted <twisted0n3@gmail.com> writes:
> On Jun 20, 12:39 pm, jadam...@partners.org (Joel J. Adamson) wrote:
>> The point is that the responsibility to customize is on the user.
>
> Given that in its out-of-the-box configuration it's well-nigh unusable
> without a printed-out "cheat sheet" of some kind, of the sort that
> were supposed to have died out in the 80s, getting it customized poses
> something of a catch-22 for anyone trying to get started using it.
"Catch 22" is the right phrase here: just catch Emacs 22 and get
started. Its out-of-the-box configuration is quite sensible.
What was the last version you said you actually tried out?
--
David Kastrup
------------------------------
Date: Thu, 21 Jun 2007 08:48:24 +0200
From: David Kastrup <dak@gnu.org>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <863b0lolaf.fsf@lola.quinscape.zz>
Twisted <twisted0n3@gmail.com> writes:
> On Jun 20, 5:37 pm, David Kastrup <d...@gnu.org> wrote:
>> ...spewing...babbling...
>
> I won't dignify your insulting twaddle and random ad-hominem verbiage
> with any more responses after this one. Something with actual logical
> argumentation to rebut may be another matter of course.
>
> One more GG issue: those stupid star ratings. So potentially
> prejudicial. So easy to game, as evidenced by your managing to somehow
> vote 82 times(!) against one of my posts in a matter of minutes.
It has not occured to you that actually thousands of people read those
postings? And they are heavily crossposted to boot (redirecting
followup to comp.emacs, I would suggest everybody else do the same).
And you have really nothing worthwhile to contribute. So if there is
some rating system (I don't use Google Groups so can't tell) in place,
your postings would certainly be good candidates for downrating.
Not that this posting of mine is much better, and actually the
followup-to comp.emacs would indicate that this is about Emacs.
However, you have still not given any information about what, if any,
version of Emacs your very vaguely expressed experiences are supposed
to have come from.
> So far I've found a less-impressive method to game them -- it's not
> hard to get throwaway accounts elsewhere, send yourself there a
> gmail invite, and create many GG accounts.
And you wonder that people don't find it worthwhile reading you...
> Handy to get around their onerous posting limits. Handy for stuffing
> the star-vote ballot boxes with multiple votes, too, but there's no
> way I can see to generate 82 of them that fast by that method, and
> that much logging in and out in that short a time using different
> accounts but from just one IP address is sure to come up on Google's
> radar somehow, with unpredictable but probably bad results.
Uh, is there some monetary compensation for star ratings? Or what's
the deal? Really, if somebody can come up with a better group for
followups, feel free to direct there.
> How did you do it? I'm guessing they stop the link for voting
> appearing as a usable link on the page for a) your own posts and b)
> the ones you've voted for, but the link's URL still works, so if you
> use a script to keep fetching the appropriate URL ...
What a crazy obsession.
--
David Kastrup
------------------------------
Date: Thu, 21 Jun 2007 04:27:26 -0000
From: cendrizzi <cendrizzi@gmail.com>
Subject: Trying to make sense of perl for web development.
Message-Id: <1182400046.357441.108090@z28g2000prd.googlegroups.com>
Ok, I'm trying to learn perl for a potential position.
I would consider myself a very experienced php programmer with a
little exposure to perl.
As far as syntax goes, perl seems pretty easy (some things I even like
a lot). I have an ubuntu feistry server that I've setup with
mod_perl. It works great for parsing simple stuff but now I'm ready
to extend the functionality a bit and want to connect to postgresql,
etc.
Admittedly this is more a systems things than a programming thing but
I need to get things in place so I can program and learn. First of
all, how does mod perl work with the cpan packages? When I install
something using cpan should I be able to use that module (ie "use
module::module") immediately after? So far that has not been my
experience. Furthermore, can I use the cgi stuff in cpan when I'm
using mod_perl, like cgi::ajax?? I've just never had to deal with all
this with php so it's feeling very overwhelming in how it all works
together (I'm trying to read books and have been googling for hours to
make sense of it).
Finally, and most frustrating is getting error or warning feedback.
Where do I go? I currently am trying to connect to my db with:
$dbh = DBI->connect("dbi:Pg:dbname=ecommerce;host=127.0.0.1",
"cendrizzi", "************", {AutoCommit => 0});
I then try to do stuff with $dbh and nothing happens but I don't get
errors either. I have no idea what is going on or if I can even
successfully connect to the db?! In PHP you can turn on errors and
warnings to display them in the page, I'm sure Perl is just
different. How can I troubleshoot this stuff?
Thanks for any help you can provide me with.
------------------------------
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 544
**************************************