[18287] in Perl-Users-Digest
Perl-Users Digest, Issue: 455 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Mar 9 14:05:31 2001
Date: Fri, 9 Mar 2001 11:05:10 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <984164710-v10-i455@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Fri, 9 Mar 2001 Volume: 10 Number: 455
Today's topics:
Re: Can 2 Form actions be executed with one Submit butt <m0rejunkmail@nospam.home.com>
Re: Can a regex do this? <mischief@velma.motion.net>
CGI won't work in Netscape browser <rworth5@home.com>
Re: CGI won't work in Netscape browser <tony_curtis32@yahoo.com>
Re: Count matches? <godzilla@stomp.stomp.tokyo>
Re: execution problem <mischief@velma.motion.net>
Re: FAQ 6.0: Why do I get weird spaces when I print a <uri@sysarch.com>
Re: flock and close with empty read strangeness (Abigail)
Re: Help to Install Perl <mischief@velma.motion.net>
Re: Hidden URL (Randal L. Schwartz)
Re: Hidden URL <godzilla@stomp.stomp.tokyo>
Re: Hidden URL (Randal L. Schwartz)
Re: Hidden URL <godzilla@stomp.stomp.tokyo>
Re: Hidden URL (Miguel Cruz)
Re: how do i spawn a new process when using CGI <bart.lateur@skynet.be>
Re: Newbies welcome <mischief@velma.motion.net>
Re: number <peter.s@tjgroup.dk>
Re: Perl fortune database - where? (was: Dynamic naming (David H. Adler)
Re: Pine compatible Perl mailbox module? <comdog@panix.com>
Re: Programmer with vision required (Tad McClellan)
Re: Quick script question - I'm lost (Abigail)
Re: Regex to quote XML attributes? (Jesse Sheidlower)
Re: script change problem under mod_perl <ubl@schaffhausen.de>
Re: Trying to capture current directory in variable (Randal L. Schwartz)
using Perl for B2B? <hermel_michaud@hotmail.com>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 09 Mar 2001 16:19:07 GMT
From: FORM Rookie <m0rejunkmail@nospam.home.com>
Subject: Re: Can 2 Form actions be executed with one Submit button?
Message-Id: <3AA9075C.B01315DD@nospam.home.com>
I've tried this and it didn't work:
print "<FORM METHOD=Post ACTION=\"cgi_file.pl\">";
print "<FORM METHOD=Post ACTION=(used mailto: and a subroutine -
&email_order (both worked)>";
#
# data from hidden files
#
print "<INPUT TYPE=submit Value=Send>";
print "</FORM> </FORM></body></html>
Another question is this, do I have to have 2 SUBMIT buttons? I really
just wanted to have one. It would look stupid to have 2.
>
> Thanks,
> FORM Rookie
------------------------------
Date: Fri, 09 Mar 2001 18:00:04 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: Can a regex do this?
Message-Id: <tai6h4oob24v50@corp.supernews.com>
blahblah <blah@blah.com> wrote:
> On Fri, 09 Mar 2001 05:30:33 GMT, tjla@guvfybir.qlaqaf.bet (Gwyn Judd)
> wrote:
>>I was shocked! How could blahblah <blah@blah.com>
>>say such a terrible thing:
>>>>$test =~ s/([123])/{1 => 'a', 2 => ' b', 3 => 'c'}->{$1}/ge;
>>>
>>>This does not work because it's utilizing parts of the perl language
>>>and not regexes.
If you want jsut regexes, go read _Mastering_Regular_Expressions_.
This is a Perl group. The answers will relate to Perl.
> I think you need to go back and read my original post, and then you'd
> see that yours makes no sense whatsoever. And while you're at it, I
> would suggest you consult with a proctologist about removing the bug
> that crawled up your ass.
Gwyn's response exactly answered your original post, as did the
responses of other. You are a rude troll. *PlonkPLONKThud* that
was you hitting the very bottom of my killfile.
Chris
--
Christopher E. Stith
Try not. Do, or do not. The Force is binary. -- Yoda,
The Empire Strikes Back (paraphrased)
------------------------------
Date: Fri, 09 Mar 2001 17:48:35 GMT
From: "Richard" <rworth5@home.com>
Subject: CGI won't work in Netscape browser
Message-Id: <TH8q6.111$rB2.22780@news1.rdc1.mb.home.com>
I have quite a few scripts running online and today noticed they are not
executing when i try and run them from Netscape browser.
When executed, all I get is the HTML code that is processed from the script.
I have no idea what is going on.
Everything works great in any other browser. Mainly the reason why I think
Netscape is a heap of crap. But I must please everyone, and cannot do this
if Netscape doesnt like my scripts.
Can anyone explain why this is happening.
Thank You,
Richard
------------------------------
Date: 09 Mar 2001 12:06:05 -0600
From: Tony Curtis <tony_curtis32@yahoo.com>
Subject: Re: CGI won't work in Netscape browser
Message-Id: <878zmeddgy.fsf@limey.hpcc.uh.edu>
>> On Fri, 09 Mar 2001 17:48:35 GMT,
>> "Richard" <rworth5@home.com> said:
> I have quite a few scripts running online and today
> noticed they are not executing when i try and run them
> from Netscape browser.
Remember, it's the *server* that executes CGI programs,
the browsers just see the output from the remotely
executed program.
> When executed, all I get is the HTML code that is
> processed from the script. I have no idea what is going
Sounds like a content-type problem, which probably means
netscape is actually getting it right, but other browsers
don't adhere to the spec. properly and erroneously
interpret the text/plain(?) stream as HTML.
Try passing a HEAD request from a terminal (or with wget
or something) to the server for this CGI program and see
what the returned content-type is. If it's not text/html
then you're hopefully a long way to solving this.
But...
> on. Everything works great in any other browser. Mainly
> the reason why I think Netscape is a heap of crap. But I
> must please everyone, and cannot do this if Netscape
> doesnt like my scripts.
... this is almost certainly a server config. problem, and
has nothing to do with the language used to implement CGI
programs, i.e. clpm is the wrong forum. You should
probably look for more detailed help in
comp.infosystems.www.servers.unix
or whichever subgroup best matches the server platform
you're using, and/or in
comp.infosystems.www.authoring.cgi
hth
t
--
The avalanche has already started.
It is too late for the pebbles to vote.
------------------------------
Date: Fri, 09 Mar 2001 10:35:12 -0800
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Count matches?
Message-Id: <3AA92260.23DA3C70@stomp.stomp.tokyo>
Anno Siegel wrote:
> Godzilla! wrote:
> > Ask a whatever questions and...
> > Whatever!
> Uh, professor? Come again?
Based upon the context of your comments,
it is clear you believe me to be an icon
of perfection. I find this flattering.
Godzilla!
--
@ø=(a .. z);@Ø=qw(6 14 3 25 8 11 11 0 17 14 2 10 18);
$§="\n";$ß="\b";undef$©;print$§x($Ø[4]/2);
for($¡=0;$¡<=$Ø[2];$¡++){foreach$¶(@Ø){
$ø[$¶]=~tr/A-Z/a-z/;if(($¡==1)||($¡==$Ø[2]))
{$ø[$¶]=~tr/a-z/A-Z/;}print$ø[$¶];if($¶==0)
{print" ";}if($¶==$Ø[12]){print" !";}&D;}
print$ßx($Ø[4]*2);}print$§x($Ø[10]*2);
sub D{select$©,$©,$©,.25;}exit;
------------------------------
Date: Fri, 09 Mar 2001 17:47:05 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: execution problem
Message-Id: <tai5op8f75d845@corp.supernews.com>
John Lockwood <john@particlewave.com> wrote:
> On Fri, 09 Mar 2001 05:39:51 GMT, "Stephanie"
> <wleung@engin.umich.edu> wrote:
>>"John Lockwood" <john@particlewave.com> wrote in message
>>news:fvqgatoc78ksheu61sg461geo1r44k5s3d@4ax.com...
>>> On Fri, 09 Mar 2001 05:01:29 GMT, "Stephanie"
>>> <wleung@engin.umich.edu> wrote:
>>> > I'm trying to execute a cgi script in apache written
>>> > in perl, but when I run it on the server using
>>> > './<script_name>' I get a 'No such file or directory'
>>> > error. When I type 'perl <script_name>' it runs.
Do you mean under the web server, or at the command line
on the server machine?
Do you get the `No such file...' error from your shell,
from perl, or from your application? The error should
usually says something like `bash: perl: No such...' or
something of that sort if it's a problem finding perl.
Your CGI under Apache can be set up to run chroot. If perl
is outside your process's root, you wouldn't be able to
find it from the CGI launch. This is an Apache config issue,
and it's only one thing to check. You also don't need to
worry about this if you're still working on running it from
the command line.
>>> Well, it's a bit off topic, and I'm not really sure, but
>>> offhand two other possiblities that come to mind are:
>>>
>>> 1) mod_perl is not loaded.
What does mod_perl have to do with launching a single-run
CGI?
>>> 2) Case mismatch?
>>>
>>> Also, what's up with that dot before the backslash?
>>> Don't you typically want "/filename" or
>>> "/directory/filename"?
See note below about `backslash'.
>> Thanks - I'm executing it in the server's local
>> directory as an ordinary perl script, that's why I
>> have to add the dot. mod_perl is loaded, and I don't
>> think it really matters in this case coz all I'm
>> trying to do is run a perl script.
It wouldn't matter even if you're running it as a CGI
application unless you are actually running it under
mod_perl.
>> What did you mean by case mismatch?
> Well, I'm not sure what OSs you're familiar with, but
> if you're running Apache on some kind of Unix, the
> classic "I come from a Windows world" mistake is to
> have "File" in one place and "file" in another. Unix
> is case sensitive.
Another classic "I come from a Windows world" mistaek
is to call a slash a backslash. Yet another is to
assume the local directory is in the path and you don't
need './foo' to launch foo in the current directory.
> Sorry if that's obvious to you -- just throwing out
> possiblities.
HTH,
Chris
--
Christopher E. Stith
If they can get you asking the wrong questions, they don't
have to worry about the answers.
-- Thomas Pynchon, Gravity's Rainbow
------------------------------
Date: Fri, 09 Mar 2001 18:01:13 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: FAQ 6.0: Why do I get weird spaces when I print an array of lines?
Message-Id: <x7elw6ddp2.fsf@home.sysarch.com>
>>>>> "MC" == Michael Carman <mjcarman@home.com> writes:
MC> Well, the FAQ itself says to send things to
MC> perlfaq-suggestions@perl.com, which is where I sent one off to
MC> yesterday. I wasn't sure whether or not faq@denver.pm.org was a
MC> good place to send changes to or just a posting agent. From Uri's
MC> post, I now know that I can send sugesstions there. Is this the
MC> preferred address now? Or do both (presumably) find their way to
MC> the same place anyway?
i would assume that both addresses work fine. why would he put a bogus
address for cc: in the posting headers?
uri
--
Uri Guttman --------- uri@sysarch.com ---------- http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net ---------- http://www.northernlight.com
------------------------------
Date: 9 Mar 2001 16:05:46 GMT
From: abigail@foad.org (Abigail)
Subject: Re: flock and close with empty read strangeness
Message-Id: <slrn9ahvqq.uqr.abigail@tsathoggua.rlyeh.net>
Bart Lateur (bart.lateur@skynet.be) wrote on MMDCCXLVII September
MCMXCIII in <URL:news:a3mhatgcqbeah6bkti3msnn12vb2tlj6o0@4ax.com>:
:: Abigail wrote:
::
:: >There's still no compromise, because you let *all* of the processes
:: >requesting a shared lock wait, even while they could have continued.
::
:: That "compromise" is that in order for processes that want to write not
:: having to wait forever, other processes that could have continued now do
:: have to wait. It's an "acceptable delay" for everybody, not a "no delay
:: in most cases, but a very likely very long delay in other, pretty common
:: situations".
There's still no compromise. You only consider the two extremes:
let everyone wait if an exclusive lock is granted, and give all
shared lock requests priority.
The compromise my example uses is that N shared locks may just ahead
of an exclusive lock, but not N + 1, for some N > 0. This reduces the
overal wait time, without running into a starvation problem.
Other compromises are also possible.
Abigail
--
perl -we '$@="\145\143\150\157\040\042\112\165\163\164\040\141\156\157\164".
"\150\145\162\040\120\145\162\154\040\110\141\143\153\145\162".
"\042\040\076\040\057\144\145\166\057\164\164\171";`$@`'
------------------------------
Date: Fri, 09 Mar 2001 16:24:59 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: Help to Install Perl
Message-Id: <tai0ur3rf7o7f9@corp.supernews.com>
Scott R. Godin <webmaster@webdragon.munge.net> wrote:
> In article <%qKp6.161592$B6.36271990@news1.rdc1.md.home.com>, "Suzanne"
> <sbucciarelli1@home.com> wrote:
> [snip]
> | accomplished. As for "top posting" ... not familiar with any
> | particular etiquette ... if that means
> [snip]
> as for 'top-posting' here's some informational stuff you can peruse, as
> to why it's bad form, bad nettiquette, wasteful of resources, and can
> and will cause people to simply ignore your posts ( I kid you not )
> This is akin to a "dress code" here and IS something that the perl
> masters and gurus who post here will tend to insist on.
> Top posting wouldn't even exist if some bright young and stupid
> MicroSoft programmer hadn't written the app to use that as the 'default'
> instead of following usenet convention for this purpose. (visualizing MS
> inter-company e-mail, all top-posted and containing zillions of lines of
> previous text that no one ever reads along with every single .sig of
> every previous poster. and laughing.)
I use tin, and it sues vi as its editor. vi starts at the top.
I key down until I am where I need to type. The program does
not control the user. A text editor has many keys to inform it
of the user's wishes, including the ones in MS Office products.
Failing to be aware that one should not show the sole of the
foot to someone in certain parts of Africa, that a woman
should be modestly dressed in an Arab country (even if not
covered with a veil and all, at least not in a tube top and
short skirt), or that one should not pass gas in a fine
restaurant in America does not mean that these things are not
rude. If you travel somewhere and are not familiar with the
customs, it is your duty to learn the local customs and to
conform to society. It is not society's duty to conform to
your foreign ideas. When in Rome, do as the Romans. When
posting to a newsgroup, post like a newsgroup poster.
Chris
--
Christopher E. Stith
You can never entirely stop being what you once were. That's
why it's important to be the right person today, and not put
it off till tomorrow. -- Larry Wall, 3rd State of the Onion
------------------------------
Date: 09 Mar 2001 08:36:59 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Hidden URL
Message-Id: <m1u252oq50.fsf@halfdome.holdit.com>
>>>>> "Godzilla!" == Godzilla! <godzilla@stomp.stomp.tokyo> writes:
Godzilla!> Miguel Cruz wrote:
>> Godzilla! wrote:
>> >> ...want to open a new page without the user knowing the IP
>> > http://www.nwi.net/~pchelp/obscure.htm
>> Very browser-specific. A mildly interesting parlor trick, but not
>> particularly useful for a web site you want to be sure everyone can see.
Godzilla!> Direct your comments to the originating author. I have
Godzilla!> asked no questions nor do I find your comments to be
Godzilla!> relationally pertinent.
You promoted a link. Normal protocol dictates that you also therefore
endorse it. You should be prepared to defend it. This is normal in
human communication, which a person of your highly educated skills
should already be aware.
--
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: Fri, 09 Mar 2001 10:08:26 -0800
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Hidden URL
Message-Id: <3AA91C1A.983E89B7@stomp.stomp.tokyo>
"Randal L. Schwartz" wrote:
> Godzilla! wrote:
> Godzilla!
> > Miguel Cruz wrote:
> > > Godzilla! wrote:
> >> >> ...want to open a new page without the user knowing the IP
> >> > http://www.nwi.net/~pchelp/obscure.htm
> >> Very browser-specific. A mildly interesting parlor trick, but not
> >> particularly useful for a web site you want to be sure everyone can see.
> Godzilla!> Direct your comments to the originating author. I have
> Godzilla!> asked no questions nor do I find your comments to be
> Godzilla!> relationally pertinent.
> You promoted a link. Normal protocol dictates that you also therefore
> endorse it. You should be prepared to defend it. This is normal in
> human communication, which a person of your highly educated skills
> should already be aware.
Should you someday be involved with an internet conversation
and find it contextually appropriate to post a link to the
national headquarters of the Ku Klux Klan, would you be willing
to endorse and defend your link to avoid appearing to be a
true hypocrite per your personal rules just stated?
Pop a Midol or two and get over it, Randal.
Godzilla!
------------------------------
Date: 09 Mar 2001 10:15:17 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Hidden URL
Message-Id: <m1n1aun70q.fsf@halfdome.holdit.com>
>>>>> "Godzilla!" == Godzilla! <godzilla@stomp.stomp.tokyo> writes:
Godzilla!> Should you someday be involved with an internet conversation
Godzilla!> and find it contextually appropriate to post a link to the
Godzilla!> national headquarters of the Ku Klux Klan, would you be willing
Godzilla!> to endorse and defend your link to avoid appearing to be a
Godzilla!> true hypocrite per your personal rules just stated?
I'm sure it'd be pretty clear from context that I'd be not supporting
the KKK. It was pretty clear from the context of your posting that
you WERE supporting the link you included as a solution. If not,
you'd have said something like:
I haven't tried this, but http://www..... has some ideas about
doing what you need.
Or
There's one way at http:// to do this, but it's pretty limited
because it applies only to XYZ situation.
You didn't say either of those. Which lead to the respondant believing
you were endorsing wholeheartedly the information you linked as a proper
solution to the preceding question. Such is the nature of Usenet.
Were I to include a link to the KKK in a posting, I'd probably say:
You asked for a link to the KKK, which I found by a google search
at http://www.kkklan.com/. Please note that I've not visited
the site, nor do I care to.
See the difference? Surely someone of your superior knowledge and
breeding understands context.
--
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: Fri, 09 Mar 2001 10:24:30 -0800
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Hidden URL
Message-Id: <3AA91FDE.C2CA33DB@stomp.stomp.tokyo>
Randal L. Schwartz wrote:
(lots of snippage)
> See the difference? Surely someone of your superior
> knowledge and breeding understands context.
Absolutely. I am certain you need a tampon
along with a Midol or two previously suggested.
Godzilla!
------------------------------
Date: Fri, 09 Mar 2001 18:47:58 GMT
From: mnc@admin.u.nu (Miguel Cruz)
Subject: Re: Hidden URL
Message-Id: <yz9q6.1630$g17.920008@typhoon2.ba-dsg.net>
Godzilla! <godzilla@stomp.stomp.tokyo> wrote:
> Should you someday be involved with an internet conversation
> and find it contextually appropriate to post a link to the
> national headquarters of the Ku Klux Klan, would you be willing
> to endorse and defend your link to avoid appearing to be a
> true hypocrite per your personal rules just stated?
Just to make sure our analogy is on track, let's make sure we understand
that the aforementioned hypothetical posting of KKK HQ address was in
response to someone's question, "I'm going to be in Birmingham for a couple
days next week. Can you suggest a nice place to stop in and find some
company?"
miguel
------------------------------
Date: Fri, 09 Mar 2001 16:43:30 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: how do i spawn a new process when using CGI
Message-Id: <9u1iatc6rnfuehu1vq6repvg95ov2q8jo2@4ax.com>
Igor Aptekar wrote:
>when my CGI scripts ends (after the print end_html) i want to execute a
>separate script independantly.
>I try using exec but get a premature end of script headers error.
>
>anyone know how to do this?
exec() might work. Perhaps you need to close STDERR/STDOUT as well. For
other ideas, check out the columns of Randal Schwartz at
<http://www.stonehenge.com/merlyn/WebTechniques/>. Search for "fork".
--
Bart.
------------------------------
Date: Fri, 09 Mar 2001 17:23:44 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: Newbies welcome
Message-Id: <tai4d0mu04t118@corp.supernews.com>
The original message to which I'm responding has been
reformatted to properly fit in an 80-column screen
with right margin remaining, so that quoting does
not make it wrap.
In comp.lang.perl.misc Darren <darrenls21@yahoo.com> wrote:
> This is to all newbies on this and any other newsgroup.
Difficult to reach newbies on other newsgroups when they
are not in the headers.
> Do not ever be afraid of asking a question on something
> relevent to the newsgroup you are visiting.
Or relevant, for that matter.
> Bear in mind that every single person on any newsgroup
> was a newbie once, so if they slate you for being a
> newbie then they are hypocrites and should be ignored.
Most people do not get chastised for being a newbie.
They get chastised for not following what is considered
common courtesy.
> Do not give up. Everybody learns, even the so called
> experienced though they would often not admit it
Yes, newbies are welcome. Read news.announce.newusers
and news.newusers.questions, search the web for Emily
Postnews and read about Usenet etiquette, abide by all
of these things, and by the rules in the FAQ for the
group to which you want to post.
If nothing else, lurk a week before posting, post your
new threads in appropriate groups where they are
topical, respond to posts with proper contextual quoting
so people can tell to which part of a post you are
replying, post using a subject line that describes the
subject of your post, and take some amount of time to
look through the documentation for your software before
posting a question that is easily answered by reading
your docs.
If you do these things, and perhaps search the site
http://groups.google.com for your topic, then you should
be welcome in any of the listed groups. If not, you may
receive replies which are as rude in tone, since not
doing the above things is considered rude on Usenet
newsgroups. When in Rome, do as the Romans do. When in
a newsgroup, do as the locals, too. It is the traveler's
responsibility to become accustomed to the locale and its
people, not the other way around.
Chris
--
Christopher E. Stith
People understand instinctively that the best way for computer programs to
communicate with each other is for each of the them to be strict in what they
emit, and liberal in what they accept. The odd thing is that people themselves
are not willing to be strict in how they speak, and liberal in how they listen.
-- Larry Wall, 2nd State of the Onion Address, August 1998
------------------------------
Date: Fri, 9 Mar 2001 17:21:10 +0100
From: "Peter Søgaard" <peter.s@tjgroup.dk>
Subject: Re: number
Message-Id: <98avml$9r7$1@news.inet.tele.dk>
...And thus the Perl motto is justified once again:
"There's more than one way to do it."
------------------------------
Date: 9 Mar 2001 18:13:03 GMT
From: dha@panix2.panix.com (David H. Adler)
Subject: Re: Perl fortune database - where? (was: Dynamic naming of arrays or hashes)
Message-Id: <slrn9ai79f.17p.dha@panix2.panix.com>
On 9 Mar 2001 09:14:01 GMT, Abigail <abigail@foad.org> wrote:
>David H. Adler (dha@panix2.panix.com) wrote on MMDCCXLVII September
>MCMXCIII in <URL:news:slrn9agog1.ha8.dha@panix2.panix.com>:
>-:
>-: and, in case anyone cares, my sigfile has a number of perlish things in
>-: it as well: http://www.panix.com/~dha/randsig.html
>
>
>Interesting. Last modified: Sun Oct 18 14:56:16 1998, but it contains
>quotes made in 2000.
I'm magic. :-)
Thanks for pointing that out. fixed.
dha
--
David H. Adler - <dha@panix.com> - http://www.panix.com/~dha/
"Last year in Oregon, Summer fell on a *tuesday*. That was it. One
day. Big shiny thing in the sky. Some people thought it was a UFO."
- Randal Schwartz in comp.lang.perl.misc
------------------------------
Date: Fri, 09 Mar 2001 11:43:09 -0500
From: brian d foy <comdog@panix.com>
Subject: Re: Pine compatible Perl mailbox module?
Message-Id: <comdog-2ADF56.11430909032001@news.panix.com>
In article <APWp6.1062$k2.42199@news.tufts.edu>, Kirk Is
<kisrael@andante.eecs.tufts.edu> wrote:
> Is there a Perl module available that lets you perform basic mailbox tasks
> (get headers, read message, delete message, mark message as read) in such
> a way that Pine will understand what you were trying to do?
PINE uses the mbox format. get a Mail::* module that does that. :)
http://search.cpan.org
--
brian d foy <comdog@panix.com>
------------------------------
Date: Fri, 9 Mar 2001 11:25:45 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Programmer with vision required
Message-Id: <slrn9ai109.hle.tadmc@tadmc26.august.net>
John Lockwood <john@particlewave.com> wrote:
>In my company I get 50% of net revenue on all software I write. Uncle
>Sam and various other state and local governments get the other 50%.
Just be thankful that you don't get all the government you pay for!
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 9 Mar 2001 16:07:17 GMT
From: abigail@foad.org (Abigail)
Subject: Re: Quick script question - I'm lost
Message-Id: <slrn9ahvtl.uqr.abigail@tsathoggua.rlyeh.net>
Anno Siegel (anno4000@lublin.zrz.tu-berlin.de) wrote on MMDCCXLVII
September MCMXCIII in <URL:news:98as3j$st6$2@mamenchi.zrz.TU-Berlin.DE>:
[] According to Abigail <abigail@foad.org>:
[]
[] > map {$sum += $_} @{$hosts}{@hosts};
[]
[] Bah, that's empty propaganda for map in void context.
[]
[] $sum += $_ for @{$hosts}{@hosts};
That's a needless restriction to recent Perls.
Abigail
--
# Perl 5.6.0 broke this.
%0=map{reverse+chop,$_}ABC,ACB,BAC,BCA,CAB,CBA;$_=shift().AC;1while+s/(\d+)((.)
(.))/($0=$1-1)?"$0$3$0{$2}1$2$0$0{$2}$4":"$3 => $4\n"/xeg;print#Towers of Hanoi
------------------------------
Date: 9 Mar 2001 12:47:41 -0500
From: jester@panix.com (Jesse Sheidlower)
Subject: Re: Regex to quote XML attributes?
Message-Id: <98b4vt$456$1@panix2.panix.com>
In article <slrn9aee9a.up4.rgarciasuarez@rafael.kazibao.net>,
Rafael Garcia-Suarez <rgarciasuarez@free.fr> wrote:
>Jesse Sheidlower wrote in comp.lang.perl.misc:
>> But I'm having some trouble with the attributes; the original
>> doesn't ever quote them, so a tag could be:
>> <e date=2001 changed=no id=2938223>, and I need this to be
>> <e date="2001" changed="no" id="2938223"> or XML::Parser chokes
>> on it.
>>
>> I've tried a few different things, and every one has either
>> missed some attributes or has scattered quotation marks with
>> abandon throughout my data. Can someone suggest a solution?
>
>It's difficult to suggest a good solution without having seen a
>problematic excerpt of your SGML file. Are there "a=b" patterns in the
>data? Are there tags that span multiple lines? What kind of characters
>appear in attribute names and values?
There can be "a=b" patterns in the data. There are no tags that span
multiple lines. The attribute names and values are both just
\w or \d with no whitespace characters. The example I gave above
is pretty representative, really.
I appreciate some of the suggestions other posters have made, but
since this problem and the ent-ref termination is literally the
only thing separating my data from XML-compliant data, I'd prefer
to use a regex in Perl rather than load up a big SGML-conversion
program or a Perl SGML parser to handle this. (Also, there is
a tremendous amount of data, so speed is an issue.)
Thanks again.
Jesse Sheidlower
------------------------------
Date: Fri, 09 Mar 2001 17:49:47 +0100
From: Malte Ubl <ubl@schaffhausen.de>
Subject: Re: script change problem under mod_perl
Message-Id: <3AA909AB.9220E3CC@schaffhausen.de>
sP6 schrieb:
>
> hi,
>
> I have apache server with mod_perl. When I change code in a script
> (NOT module or required file) the server still runs the old version(s)
> of script for some time by random turns. I have read that the mod_perl
> should check scripts for changes and recompile them when timestamp of
> script changes. Why stay some proccesses unchanged?
Thats the correct/expected behavior.
Check http://take23.org for the mod_perl guide. That'll give you the
information you need.
->malte
------------------------------
Date: 09 Mar 2001 08:41:25 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Trying to capture current directory in variable
Message-Id: <m1pufqopxm.fsf@halfdome.holdit.com>
>>>>> "Michael" == Michael Rolfe <mumble[anti-spam]@maths.uct.ac.za> writes:
Michael> I am a Perl newbie writing a program that does a tree-walk;
Please don't, unless you are basing it on File::Find, already included
in your distribution.
--
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: Fri, 09 Mar 2001 13:07:18 -0500
From: Hermel Michaud <hermel_michaud@hotmail.com>
Subject: using Perl for B2B?
Message-Id: <3AA91BD6.E8AC40DB@hotmail.com>
Hello, I don't know Perl too much...Im currently learning Java Server
Programming for building b2b applications.
I want to specialize in building b2b for small and medium companies.
Someone told me Java technologie is too complicated for my needs and
recommended Perl.
I would appreciate it if someone can tell me if this is true...
Is Perl ideal for building b2b web sites?
Thanks in advance to any response!
Hermy
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 99)
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: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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 V10 Issue 455
**************************************