[31991] in Perl-Users-Digest
Perl-Users Digest, Issue: 3255 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jan 9 11:09:27 2011
Date: Sun, 9 Jan 2011 08:09:09 -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 Sun, 9 Jan 2011 Volume: 11 Number: 3255
Today's topics:
Re: FAQ 1.1 What is Perl? <Luuk@invalid.lan>
Re: FAQ 3.12 Where can I get perl-mode or cperl-mode fo <marc.girod@gmail.com>
Re: looking for help with script (what's new?) <guitarsandkeys@gmail.com>
Re: looking for help with script (what's new?) <tadmc@seesig.invalid>
Re: looking for help with script (what's new?) <smallpond@juno.com>
Re: looking for help with script (what's new?) <sherm.pendley@gmail.com>
MS SQL Functions on OSX?? <gmark99@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 08 Jan 2011 18:31:50 +0100
From: Luuk <Luuk@invalid.lan>
Subject: Re: FAQ 1.1 What is Perl?
Message-Id: <1ljmv7-ogh.ln1@luuk.invalid.lan>
On 08-01-11 18:00, PerlFAQ Server wrote:
> This is an excerpt from the latest version perlfaq1.pod, which
> comes with the standard Perl distribution. These postings aim to
> reduce the number of repeated questions as well as allow the community
> to review and update the answers. The latest version of the complete
> perlfaq is at http://faq.perl.org .
>
> --------------------------------------------------------------------
>
> 1.1: What is Perl?
>
> Perl is a high-level programming language with an eclectic heritage
> written by Larry Wall and a cast of thousands. It derives from the
> ubiquitous C programming language and to a lesser extent from sed, awk,
> the Unix shell, and at least a dozen other tools and languages. Perl's
> process, file, and text manipulation facilities make it particularly
> well-suited for tasks involving quick prototyping, system utilities,
> software tools, system management tasks, database access, graphical
> programming, networking, and world wide web programming. These strengths
> make it especially popular with system administrators and CGI script
> authors, but mathematicians, geneticists, journalists, and even managers
> also use Perl. Maybe you should, too.
>
>
>
> --------------------------------------------------------------------
>
> The perlfaq-workers, a group of volunteers, maintain the perlfaq. They
> are not necessarily experts in every domain where Perl might show up,
> so please include as much information as possible and relevant in any
> corrections. The perlfaq-workers also don't have access to every
> operating system or platform, so please include relevant details for
> corrections to examples that do not work on particular platforms.
> Working code is greatly appreciated.
>
> If you'd like to help maintain the perlfaq, see the details in
> perlfaq.pod.
oops, i thoud it was some robot which spammed a message here every 4
hours...
;)
--
Luuk
------------------------------
Date: Sat, 8 Jan 2011 05:02:58 -0800 (PST)
From: Marc Girod <marc.girod@gmail.com>
Subject: Re: FAQ 3.12 Where can I get perl-mode or cperl-mode for emacs?
Message-Id: <6deb9348-c726-451e-a4fa-f1b30a6e8882@j29g2000yqm.googlegroups.com>
On Jan 8, 11:00=A0am, PerlFAQ Server <br...@theperlreview.com> wrote:
> 3.12: Where can I get perl-mode or cperl-mode for emacs?
>
> =A0 =A0 Since Emacs version 19 patchlevel 22 or so, there have been both =
a
> =A0 =A0 perl-mode.el and support for the Perl debugger built in. These sh=
ould
> =A0 =A0 come with the standard Emacs 19 distribution.
I guess this is not what was intended...
I have not used the debugger support, so I am not sure whether it is
included in both perl-mode and cperl-mode, or only in perl-mode (which
would explain that I didn't find it since I use the other...)
However, there was probably a collision between cperl-mode and this
debugger support.
I might add that as much as I like cperl-mode, it is a pain to extend
or to fix, because byte-compiling it on recent versions of emacs (e.g.
ones found in typical distribution) will produce huge amounts of
warnings and errors because it is meant to support emacs 19.something,
and the syntax of lisp macros has changed since.
The result is that e.g. cygwin comes with a modified version of cperl-
mode. I would guess there are others.
Marc
------------------------------
Date: Fri, 7 Jan 2011 12:15:13 -0800 (PST)
From: leepincat <guitarsandkeys@gmail.com>
Subject: Re: looking for help with script (what's new?)
Message-Id: <20c1fb2e-5c62-4070-837b-2b07dd0e40fd@v17g2000prc.googlegroups.com>
On Jan 7, 1:02=A0am, Keith Keller <kkeller-use...@wombat.san-
francisco.ca.us> wrote:
> On 2011-01-07, leepincat <guitarsandk...@gmail.com> wrote:
>
>
>
> > =A01. Code must compile/run without errors
>
> perldoc strict
>
> > =A02. It takes arguments for: timeout, url, expected_response_code,
> > =A0 =A0retry_count
>
> perldoc perlfunc
>
> > =A03. The script performs an HTTP GET for the url
>
> perldoc LWP
>
> > =A04. If the HTTP response code matches the expected_response_code the
> > =A0 =A0script will exit with status code 0
>
> perldoc -f exit
>
> > =A05. If the HTTP response code doesn't match exit with a nonzero statu=
s
> > =A0 =A0code and print an error
>
> perldoc -f warn
>
> > =A06. If the HTTP GET either times out or fails in another way
> > (connection
> > =A0 =A0refused, etc.) retry until retry count is exhausted
>
> perldoc perlsyn
>
> > =A07. If all retries are exhausted without a success, print a message
> > =A0 =A0to STDERR and exit with a non-zero status code.
>
> perldoc perlsyn
> perldoc -f warn
> perldoc -f exit
> perldoc perl
>
> Good luck.
>
> --keith
>
> --
> kkeller-use...@wombat.san-francisco.ca.us
> (try just my userid to email me)
> AOLSFAQ=3Dhttp://www.therockgarden.ca/aolsfaq.txt
> see X- headers for PGP signature information
Thank-You VERY much for the constructive response !
Truly appreciated - Donna K
------------------------------
Date: Fri, 07 Jan 2011 15:21:43 -0600
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: looking for help with script (what's new?)
Message-Id: <slrniietea.7ft.tadmc@tadbox.sbcglobal.net>
leepincat <guitarsandkeys@gmail.com> wrote:
> Subject: looking for help with script (what's new?)
^^^^
^^^^
Show us the script that you are having trouble with, and we
will help you fix it.
> I don't know scripting from Chinese.
That will be a problem.
Are you willing to learn how to program, or are you simply looking
for someone else to do it for you?
Helping folks with their programs is what we are here for.
Writing programs to specification is not what we are here for.
> I'm trying to do a little
> research for someone as an act of human kindness.
That's nice of you.
Here is your answer:
Learn how to write Perl programs (we will help you with that),
or find someone else to write your Perl program for you (we don't
do that here), try at craigslist or in a newsgroup with "jobs" in
its name, even if this must be an unpaid job.
> I don't know if it's difficult, or a simple thing....
An intermediate-level Perl programmer should be able to do it
in less than an hour or so.
> hoping if
> someone knows how to do this without a lot of effort and time,
I do.
> that
> would be great.
Things are great then!
> If I'm off base, ....I tried.
> (I don't even know if I'm in the "correct" group.
That depends on what you want.
If you want to learn enough Perl to be able to do this, then you are
in the right group.
If you want someone else to do it for you, then you are in the
wrong group.
> Is the following something that can be done with PERL?
Yes.
> Could you post some examples?
I could.
> Again, if this is too much to ask, I
> apoligize in advance
If we write your program for you, then somebody else will see that and
ask us to write _their_ program for them too. Then someone will notice
that and ask us to write their program...
Then this newsgroup devolves into a "post your program spec here" place,
and all the people that know how to program will stop coming here, then
we will not have a place to help folks that really want help with
writing a program (as opposed to people who think that "helping" and
"doing it for me" are equivalent).
> 1. Code must compile/run without errors
> 2. It takes arguments for: timeout, url, expected_response_code,
> retry_count
> 3. The script performs an HTTP GET for the url
> 4. If the HTTP response code matches the expected_response_code the
> script will exit with status code 0
> 5. If the HTTP response code doesn't match exit with a nonzero status
> code and print an error
> 6. If the HTTP GET either times out or fails in another way
> (connection
> refused, etc.) retry until retry count is exhausted
> 7. If all retries are exhausted without a success, print a message
> to STDERR and exit with a non-zero status code.
It is possible to find folks to write Perl programs for free.
But here, we discuss programming, rather than programs.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.liamg\100cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.
------------------------------
Date: Fri, 07 Jan 2011 16:55:37 -0500
From: Steve C <smallpond@juno.com>
Subject: Re: looking for help with script (what's new?)
Message-Id: <ig824v$f6k$1@news.eternal-september.org>
On 01/07/2011 12:37 AM, leepincat wrote:
> I don't know scripting from Chinese. I'm trying to do a little
> research for someone as an act of human kindness.
> I don't know if it's difficult, or a simple thing.... hoping if
> someone knows how to do this without a lot of effort and time, that
> would be great. If I'm off base, ....I tried.
> (I don't even know if I'm in the "correct" group.
>
> Is the following something that can be done with PERL?
> Could you post some examples? Again, if this is too much to ask, I
> apoligize in advance- Donna
>
> 1. Code must compile/run without errors
> 2. It takes arguments for: timeout, url, expected_response_code,
> retry_count
> 3. The script performs an HTTP GET for the url
> 4. If the HTTP response code matches the expected_response_code the
> script will exit with status code 0
> 5. If the HTTP response code doesn't match exit with a nonzero status
> code and print an error
> 6. If the HTTP GET either times out or fails in another way
> (connection
> refused, etc.) retry until retry count is exhausted
> 7. If all retries are exhausted without a success, print a message
> to STDERR and exit with a non-zero status code.
If all you want is the response code you should do HEAD, not GET.
Perl is an excellent choice for doing this.
------------------------------
Date: Sun, 09 Jan 2011 10:51:39 -0500
From: Sherm Pendley <sherm.pendley@gmail.com>
Subject: Re: looking for help with script (what's new?)
Message-Id: <m2r5cm848k.fsf@sherm.shermpendley.com>
leepincat <guitarsandkeys@gmail.com> writes:
> I was hoping someone in this group might be a bit more open minded.
> Simply trying to help someone out as I explained.... I don't know
> why that upsets you. Maybe it's "acts of human kindness" you're not
> familiar with. You should try it sometime. -dj
Do you speak English? I didn't say I was upset with you because you
were trying to help. I said I don't believe what you're doing is, in the
long run, very helpful. Big difference.
sherm--
--
Sherm Pendley
<http://camelbones.sourceforge.net>
Cocoa Developer
------------------------------
Date: Sat, 8 Jan 2011 20:41:18 -0800 (PST)
From: gmark <gmark99@gmail.com>
Subject: MS SQL Functions on OSX??
Message-Id: <62f7049c-493b-448c-b57d-7bfa4081f574@w2g2000yqb.googlegroups.com>
I've been looking for a way to access MS SQL DB from OSX. I've seen a
couple
attempts at generating the mssql.so file for running under Apache, but
so far I
haven't seen anyone succeed. One recent abortive attempt ended in a
compile
error that I haven't seen anyone solve.
Bottom line: Has ANYONE been able to access an MS SQL database from
OSX?
I don't mean via a windows emulator, parallels, vmware, virtual box,
etc., or
via a manager like Oracle DB -- I mean being able to access it via
mssql primitives.
Finally, I don't even know what you call that. "Client"? It'd be
nice if I could even
state what I need succinctly.
Thanks!
------------------------------
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 3255
***************************************