[10018] in Perl-Users-Digest
Perl-Users Digest, Issue: 3611 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Sep 1 20:05:33 1998
Date: Tue, 1 Sep 98 17:00:20 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 1 Sep 1998 Volume: 8 Number: 3611
Today's topics:
Re: [Perl] How to find the Perl FAQ (Michael Wang)
Re: Activestate's ppm.pl works behind firewall (Robert M Bellavance)
Re: Best way to "reset" $1? <jdf@pobox.com>
Re: Currency Formatting in Perl (s//) (Martien Verbruggen)
Re: Currency Formatting in Perl (s//) <zenin@bawdycaste.org>
Re: Forking and Use. (Mark-Jason Dominus)
Re: Freeing variables? (Charles DeRykus)
Re: Help on running perl scripts on MS-DOS (Win NT4 act (Jonathan Stowe)
Re: Help! How to switch usernames? (Martien Verbruggen)
HTTP request? <me418498@hotmail.com>
HTTP request? <me418498@hotmail.com>
HTTP request? <me418498@hotmail.com>
HTTP request? <me418498@hotmail.com>
HTTP request? <me418498@hotmail.com>
Re: HTTP request? <rootbeer@teleport.com>
HTTP-Requst? <me418498@hotmail.com>
HTTP-Requst? <me418498@hotmail.com>
HTTP-Requst? <me418498@hotmail.com>
Re: Perl compiler <murrayb@vansel.alcatel.com>
Re: Perl compiler <lame.adress@munger.edu>
Re: Perl Cookbook, does anyone have it? (Stefaan A Eeckels)
Re: Q: remain order, hash (Charles DeRykus)
Re: Reading regular expression from file <rootbeer@teleport.com>
Re: Tom Phoenix: ANSWERS WANTED! (Nathan V. Patwardhan)
Re: Tom Phoenix: ANSWERS WANTED! (Nathan V. Patwardhan)
Re: Tom Phoenix: ANSWERS WANTED! <jdf@pobox.com>
Re: Tom Phoenix: ANSWERS WANTED! (Nathan V. Patwardhan)
Re: unlinking file if <= 1 hour (Gabor)
Re: unshifting in a FILEHANDLE <aqumsieh@tigre.matrox.com>
Re: what's wrong with this statement? (Jonathan Stowe)
Re: Y2K Date Support (Martien Verbruggen)
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 1 Sep 1998 21:30:23 GMT
From: mwang@tech.cicg.ml.com (Michael Wang)
Subject: Re: [Perl] How to find the Perl FAQ
Message-Id: <6shp1f$9nh$1@news.ml.com>
Tom Phoenix <rootbeer&pfaq*finding*@redcat.com> wrote:
>Archive-name: perl-faq/finding-perl-faq
>Posting-Frequency: weekly
>Last-modified: 05 Aug 1998
>
> http://cpan.perl.org/doc/FAQs/FAQ/html/perlfaq.html
> http://www.perl.com/CPAN/doc/FAQs/FAQ/html/perlfaq.html
These two URLs are not valid anymore. Also I checked almost all
FAQ URLs, they are all the old version:
perlfaq - frequently asked questions about Perl ($Date: 1997/03/17 22:17:56 $)
There is a newer version posted by someone called tchrist dated
08/1998, but this newer version is very hard to find, it is somewhere
in misc/*faq*.tar.gz, and it is not listed in Tom Phoenix's
finding-perl-faq posting.
--
unix programs: niftp (non-interactive recursive ftp), hide (hide command args),
submit (replace nohup), etc from ftp://ftp.mindspring.com/users/mwang/unix-prog
Michael Wang, mwang@ml.com, Merrill Lynch, World Financial Center, 212-449-4414
------------------------------
Date: Tue, 1 Sep 1998 13:58:13 GMT
From: bbell@hpcc01.corp.hp.com (Robert M Bellavance)
Subject: Re: Activestate's ppm.pl works behind firewall
Message-Id: <243650013@hpcc01.corp.hp.com>
Or, you can get Sockscap and run perl socksified too!
>
> All,
>
> I recently posted that I wasn't able to get ppm.pl to
> work from behind my firewall. I found a post (or was it one of the mailing
> lists?)
>
> Anyway, I set http_proxy=http://<ip address of proxy:80>/ and it worked.
> (I previously omitted the trailing /)
>
> chuck
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
> ----------
>
------------------------------
Date: 01 Sep 1998 19:02:00 -0400
From: Jonathan Feinberg <jdf@pobox.com>
To: yong <yong@shell.com>
Subject: Re: Best way to "reset" $1?
Message-Id: <m3ogsz1lp3.fsf@joshua.panix.com>
yong <yong@shell.com> writes:
> BTW, the reason I want to reset $1 is that the match is in a loop, and
> the second time around if there's no match, $1 keeps its original value.
> I don't want that.
perlre says:
The scope of $<digit> (and $`, $&, and $') extends to the end
of the enclosing BLOCK or eval string, or to the next
successful pattern match, whichever comes first.
Since $1 is locally scoped, you can just put a block around the
relevant code;
while (<>) {
chomp;
{
m/(foo)/;
print qq("$_" contains "$1"\n) if $1;
}
}
Of course, you might prefer to test the match itself, and not the
contents of $1:
if (m/(foo)/) {
# do something with $1
}
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf
------------------------------
Date: Tue, 01 Sep 1998 23:06:36 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Currency Formatting in Perl (s//)
Message-Id: <06%G1.4657$Gu1.672868@nsw.nnrp.telstra.net>
[REMOVED comp.lang.perl: non-existant. Dead. Inform your news admin]
[REMOVED comp.lang.perl.modules,comp.lang.perl.tk: Off topic. Irrelevant]
In article <35EC24F2.90DDD0D3@epidigm.geg.mot.com>,
Jeff Davey <jdavey@epidigm.geg.mot.com> writes:
> S. Kuip wrote:
>> 1 while $amount =~ s/(.*\d)(\d\d\d)/$1,$2/;
>>
>> 1204846335 => 1,204,846,335
>>
>
> Not quite - this only puts the thousands comma delineator in. Anyone
> else?
It does work. It might not be what I would have suggested, but it does
work. Have you actually tried it _with_ the while loop? That is one of
the important features of this piece of code. Without it, it will
indeed only do it once, 'putting the thousands comma delineator in'.
Have you considered that some locales use the comma as the decimal
separator? Of course, you don't need to care about that.
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | "In a world without fences,
Commercial Dynamics Pty. Ltd. | who needs Gates?"
NSW, Australia |
------------------------------
Date: 1 Sep 98 23:45:59 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Currency Formatting in Perl (s//)
Message-Id: <904693803.474420@thrush.omix.com>
[posted & mailed]
Jeff Davey <jdavey@epidigm.geg.mot.com> wrote:
: Not quite - this only puts the thousands comma delineator in. Anyone
: else?
FAQ
--> 'perldoc perlfaq5'
--> 'How can I output my numbers with commas added?'
--
-Zenin (zenin@archive.rhps.org) From The Blue Camel we learn:
BSD: A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts. Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.) The full chemical name is "Berkeley Standard Distribution".
------------------------------
Date: 1 Sep 1998 18:00:12 -0400
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: Forking and Use.
Message-Id: <6shqpc$971$1@monet.op.net>
In article <904582035.893594@thrush.omix.com>,
Zenin <zenin@bawdycaste.org> wrote:
> Tom C. posted this not to long ago, which states all this
> as clearly as it probably can be:
All except the one point that was actually at issue in the original
question.
>> Succinctly:
>>
>> 1) do $file is like eval `cat $file`,
The original querent wanted to know if `use' would fork a subprocess
to run `cat', the way `cat $file` does.
>> except the former:
>> 1.1: searches @INC.
>> 1.2: bequeaths an *unrelated* lexical scope on the eval'ed code.
1.3: Does not actually fork a separate process to read the file.
------------------------------
Date: Tue, 1 Sep 1998 21:44:08 GMT
From: ced@bcstec.ca.boeing.com (Charles DeRykus)
Subject: Re: Freeing variables?
Message-Id: <EyMKDK.Fry@news.boeing.com>
In article <35EB9366.C25F2680@physics.ubc.ca>,
Rik Blok <blok@physics.ubc.ca> wrote:
>How do I free memory used by variables? How can I watch the allocated
>memory to be sure it is getting freed properly?
>
If you mean can an extant perl program shrink its memory
footprint by releasing unused memory to the OS, then, no,
this isn't possible... at this time.
The best you can do is release memory for re-use by the
program while running by undef'ing or clearing, e.g.,
$var = '';
%hash = ();
undef @array;
But, if you're interesting in the gory details. look up
'sbrk' in DejaNew's comp.lang.perl.* forum.
hth,
--
Charles DeRykus
------------------------------
Date: Tue, 01 Sep 1998 22:03:56 GMT
From: Gellyfish@btinternet.com (Jonathan Stowe)
Subject: Re: Help on running perl scripts on MS-DOS (Win NT4 actually)
Message-Id: <35ec6a9a.7762055@news.btinternet.com>
On Tue, 1 Sep 1998 16:57:36 GMT, Eric Dew wrote :
<snip>
>
>Once more: if I can just get the thing to run, I'll debug it myself and
>skip your pansy-ass comments. Can I get a straight answer?
>
Shut up insulting people for no reason.
If you have pl2bat.bat in you c:\perl\bin directory then read the
documentation and use it. If you dont then either get a distribution
that includes it or mail me and I will send it to you.
>EDEW
>
/J\
--
Jonathan Stowe
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
------------------------------
Date: Tue, 01 Sep 1998 23:12:25 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Help! How to switch usernames?
Message-Id: <tb%G1.4806$Gu1.672868@nsw.nnrp.telstra.net>
In article <Pine.GSO.4.02A.9809011321330.21048-100000@user2.teleport.com>,
Tom Phoenix <rootbeer@teleport.com> writes:
> On Tue, 1 Sep 1998, Ben Duncan wrote:
>> My question is, how do I switch usernames in my perl script?
>
> I think you're looking for the special variables $< and $> (and the
> closely-related $( and $) ones) documented in perlvar. Be very careful
> with any script running as root, though!
In addition to that, or maybe probably _before_ that, you might also
want to read the perlsec man page, which talks about issues involved
and implementation of this.
# perldoc perlsec
# perldoc perlvar
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | "In a world without fences,
Commercial Dynamics Pty. Ltd. | who needs Gates?"
NSW, Australia |
------------------------------
Date: Wed, 02 Sep 1998 00:20:39 +0200
From: Magnus Eriksson <me418498@hotmail.com>
Subject: HTTP request?
Message-Id: <35EC7337.84BEF03A@hotmail.com>
Hi, I would like to assign another sites HTML-code to an variable in my
perl program.
And use that varible to parse out the information I want use!
- How do I do that? (Do I use HTTP request??)
Thanks
Magnus E
------------------------------
Date: Wed, 02 Sep 1998 00:18:18 +0200
From: Magnus Eriksson <me418498@hotmail.com>
Subject: HTTP request?
Message-Id: <35EC72A9.5ADA1B30@hotmail.com>
Hi, I would like to assign another sites HTML-code to an variable in my
perl program.
And use that varible to parse out the information I want use!
- How do I do that? (Do I use HTTP request??)
Thanks
Magnus E
------------------------------
Date: Wed, 02 Sep 1998 00:19:37 +0200
From: Magnus Eriksson <me418498@hotmail.com>
Subject: HTTP request?
Message-Id: <35EC72F9.D0151190@hotmail.com>
Hi, I would like to assign another sites HTML-code to an variable in my
perl program.
And use that varible to parse out the information I want use!
- How do I do that? (Do I use HTTP request??)
Thanks
Magnus E
------------------------------
Date: Wed, 02 Sep 1998 00:20:18 +0200
From: Magnus Eriksson <me418498@hotmail.com>
Subject: HTTP request?
Message-Id: <35EC7322.6DE1D29A@hotmail.com>
Hi, I would like to assign another sites HTML-code to an variable in my
perl program.
And use that varible to parse out the information I want use!
- How do I do that? (Do I use HTTP request??)
Thanks
Magnus E
------------------------------
Date: Wed, 02 Sep 1998 00:25:34 +0200
From: Magnus Eriksson <me418498@hotmail.com>
Subject: HTTP request?
Message-Id: <35EC745E.EB8BCD5E@hotmail.com>
Hi, I would like to assign another sites HTML-code to an variable in my
perl program.
And use that varible to parse out the information I want use!
- How do I do that? (Do I use HTTP request??)
Thanks
Magnus E
------------------------------
Date: Tue, 01 Sep 1998 22:21:16 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: HTTP request?
Message-Id: <Pine.GSO.4.02A.9809011520470.21048-100000@user2.teleport.com>
On Wed, 2 Sep 1998, Magnus Eriksson wrote:
> Hi, I would like to assign another sites HTML-code to an variable in my
> perl program.
It sounds as if you want the LWP modules, available on CPAN. Hope this
helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Wed, 02 Sep 1998 00:21:40 +0200
From: Magnus Eriksson <me418498@hotmail.com>
Subject: HTTP-Requst?
Message-Id: <35EC7374.9223F934@hotmail.com>
Hi, I would like to assign another sites HTML-code to an variable in my
perl program.
And use that varible to parse out the information I want use!
- How do I do that? (Do I use HTTP request??)
Thanks
Magnus E
------------------------------
Date: Wed, 02 Sep 1998 00:25:11 +0200
From: Magnus Eriksson <me418498@hotmail.com>
Subject: HTTP-Requst?
Message-Id: <35EC7447.37DE9387@hotmail.com>
Hi, I would like to assign another sites HTML-code to an variable in my
perl program.
And use that varible to parse out the information I want use!
- How do I do that? (Do I use HTTP request??)
Thanks
Magnus E
------------------------------
Date: Wed, 02 Sep 1998 00:24:34 +0200
From: Magnus Eriksson <me418498@hotmail.com>
Subject: HTTP-Requst?
Message-Id: <35EC7422.612AA956@hotmail.com>
Hi, I would like to assign another sites HTML-code to an variable in my
perl program.
And use that varible to parse out the information I want use!
- How do I do that? (Do I use HTTP request??)
Thanks
Magnus E
------------------------------
Date: 01 Sep 1998 14:23:04 -0700
From: Brad Murray <murrayb@vansel.alcatel.com>
Subject: Re: Perl compiler
Message-Id: <un28jplxj.fsf@vansel.alcatel.com>
stanley@skyking.OCE.ORST.EDU (John Stanley) writes:
> In article <uvhn7kana.fsf@vansel.alcatel.com>,
> Brad Murray <murrayb@vansel.alcatel.com> wrote:
> >Your point, though thoroughly presented, attacks a straw man. You are
> >essentailly defending the idea that compilation==security,
>
> No, actually, his point is that there are various levels of security,
> and that compilation gives you a certain level of security. While
> compilation will not stop someone who is so intent on getting the
> information that he will spend the time decompiling the code, it will
> stop the casual user who doesn't have the time/ability to decompile.
His slippery-slope leading to the conclusion that Abigail should leave
her car doors unlocked is that much more suspect then. He should be
arguing that she should camoflauge her car so it will be harder to
find, when it (and I think Abigail would agree) should simply be
locked properly. And I think that metaphor has been thoroughly abused
now. :)
--
Brad Murray "If you can't easily replace your oven, don't use it
Software Analyst for science experiments."
Alcatel Canada --Paul Haas
------------------------------
Date: Tue, 01 Sep 1998 17:12:00 -0500
From: Grant Griffin <lame.adress@munger.edu>
Subject: Re: Perl compiler
Message-Id: <35EC7130.51EEC99B@munger.edu>
John Stanley wrote:
> No, actually, his point is that there are various levels of security,
> and that compilation gives you a certain level of security. While
> compilation will not stop someone who is so intent on getting the
> information that he will spend the time decompiling the code, it will
> stop the casual user who doesn't have the time/ability to decompile.
I agree with all that, but would like to expand on it. By compiling your
code, you raise the "cost" for someone to modify it. In fact, that is
precisely the reason some people argue that _all_ software source code
should be "open": because it can be reused at no cost. However, those of
us who sell _software_ (not training and books) for a living must be
concerned about software competitors. If you make your source code
available to a "competitor", he can easily modify it and resell it. You
are then at a comparative disadvantage to your competitor, because you have
born the cost of developing it and he hasn't. He cuts the price, so you
have to as well.
You might then try to sue your competitor, but that becomes impractical in
all but the most extreme cases--because of the cost of the lawsuit itself.
Even then, (American) copyright law protects only your literal source code,
not some modified version--which is probably what your competitor actually
sells. So basically, you can forget about legal action as a practical
remedy to the problem of your competition reusing your source code, to an
unfair advantage.
Some folks here say that "compilation doesn't equal security"--which is
entirely true; however, compilation raises the _cost_ to competitors to
reuse your code, such that it becomes impractical for them to _do so_.
Therefore, compilation _does_ equal security in a very practical sense. I
have never heard of a de-compiler which produces, for example, excellent C
code, with meaningful variable names and insightful comments. So your
competitor will just write it from scratch if he's smart. (Note, however,
that compilation might _not_ keep other governments from finding out how
that missle works that you sent them--the one that didn't blow up.)
The vast majority of commercial software is not "novel", and could easily
be duplicated in terms of its functionality, given enough labor: witness PC
BIOS and Linux, to name a pair. But software which is _truly_ novel can_
be patented, and patented software which is _truly valuable_ can be a
viable basis to wage--and win--a lawsuit.
For most of us--the programmers who are greedy enough to want to be paid
for their work--giving our work away (or at least giving _all_ of our work
away) doesn't make much sense. Instead, the current mixed model of
commercial/free software seems to work well, and we don't regret that the
free software movement may be gaining some steam. But consider a world in
which _all_ of us gave away _all_ our software, because we decided instead
to make our living selling training and books. Sadly, when the Law of
Supply began to kick in (as above) the current advocates and practitioners
of this economic model would no longer be able to make their six-figure
incomes (see the "sample domestic quote for five days of hands-on training
for 16 people (in which you do materials reproduction)" at
<http://language.perl.com/info/training.html>. I would hate to do that to
those nice Trainer people, so I think I'll continue to sell my little
compiled software.
Here's a postscript: I can think of no better way to obscure source code
than to give away 400M of it--like they do at Abigail's company. (Oh,
except maybe to compile it first.) Abigail has reported that no one has
accepted this Hobson's offer.
=g2
--
"First thing we do, let's kill all the lawyers." - William Shakespeare
------------------------------
Date: 1 Sep 1998 20:31:31 GMT
From: Stefaan.Eeckels@ecc.lu (Stefaan A Eeckels)
Subject: Re: Perl Cookbook, does anyone have it?
Message-Id: <6shlj3$48o$2@justus.ecc.lu>
In article <35EABE04.7AACA0CD@min.net>,
John Porter <jdporter@min.net> writes:
>
> Well, I have yet to see camels raised for food (or anything else,
> for that matter) in the U.S.; but llama farms are not unherd of.
^^^^
Pun intentional?
--
Stefaan
--
PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___________________________________________________________________
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exupiry
------------------------------
Date: Tue, 1 Sep 1998 21:13:31 GMT
From: ced@bcstec.ca.boeing.com (Charles DeRykus)
Subject: Re: Q: remain order, hash
Message-Id: <EyMIyJ.8GM@news.boeing.com>
In article <6s8ho7$uq6$1@nnrp1.dejanews.com>, <dwiesel@my-dejanews.com> wrote:
>Hi,
>
>I have a file with the following content
>
>---------AFile.txt----------
>29:andrea
>25:bob
>35:david
>----------------------------
>
>I wonder how I can remain the order of the persons in the file when I put them
>in a hash. I wan't to be able to go thru the hash and for each person print
>his/her name and age in the same order that were in the file.
>
Check CPAN for the Tie::IxHash module by G.Sarathy
(perldoc perlfaq4 for an example)
or, if it's easier, just save the order, e.g.,
read file, build hash pair
push(@order, $key); # save key order
later...
foreach $key (@order) { # get keys in order
...
hth,
--
Charles DeRykus
------------------------------
Date: Tue, 01 Sep 1998 22:04:13 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: Reading regular expression from file
Message-Id: <Pine.GSO.4.02A.9809011500560.21048-100000@user2.teleport.com>
On Tue, 1 Sep 1998, Chris Stolpe wrote:
> $regx = <EXPR>; # <= doesn't work.This works => $regx = "Foo|Bar";
> chop($regx); # just for when reading from file
You could use chomp, instead of chop; that's exactly what it was invented
to do.
> if (/^($regx)/) {
That should work. Could you have a problem with some backslash escapes
which are being interpreted at the wrong time or not at all? Or could it
be that you're not reading from the file at all - have you checked the
return value from open? Have you printed out the pattern to be sure that
it's the one you were expecting?
> Does it work when I set it to a string because perl knows the value of
> the string when it compiles the script but doesn't when I read from the
> file because it doesn't know the value? How can I work around this?
The discussion of the /o option in the perlop manpage may help you here.
Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Tue, 01 Sep 1998 22:34:41 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Tom Phoenix: ANSWERS WANTED!
Message-Id: <5E_G1.71$kE2.507083@news.shore.net>
Jerome O'Neil (joneil@cks.ssd.k12.wa.us) wrote:
: I quite strongly disagree. When a person is asking CGI, web server, and
: other off topic questions, the (I'll try and quote here) "...FAQs,
: documents, and newsgroups for those topics..." are clearly the directon
: one should go if they wish to gain insight into the problem at hand.
Well, it would be really swell if everyone just went ahead and did
this without people telling them! But I'm glad that you're Doing the
Right Thing! Cheers!
--
Nate Patwardhan|root@localhost
"Fortunately, I prefer to believe that we're all really just trapped in a
P.K. Dick book laced with Lovecraft, and this awful Terror Out of Cambridge
shall by the light of day evaporate, leaving nothing but good intentions in
its stead." Tom Christiansen in <6k02ha$hq6$3@csnews.cs.colorado.edu>
------------------------------
Date: Tue, 01 Sep 1998 22:32:46 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Tom Phoenix: ANSWERS WANTED!
Message-Id: <iC_G1.70$kE2.507083@news.shore.net>
birgitt@my-dejanews.com wrote:
: Well, not to ruin your hopes of turning Tom Phoenix's behaviour in clpm
: around to resemble the one of other posters, but I like to mention that
It was never suggested that rootbeer stop posting or become an animal.
It was only suggested that he refrain from "bulk answering" people
with precanned materials to FAQs and other unrelated stuff. It should
be clear that people posting FAQs and telling people to read the FAQ
(if this is what one chooses to do instead of offering a detailed
answer to the question) are roughly proportional.
But if you don't agree with someone, it's always helpful to speak
up. And with a medium like Usenet, everyone can contribute! Hope
this helps!
--
Nate Patwardhan|root@localhost
"Fortunately, I prefer to believe that we're all really just trapped in a
P.K. Dick book laced with Lovecraft, and this awful Terror Out of Cambridge
shall by the light of day evaporate, leaving nothing but good intentions in
its stead." Tom Christiansen in <6k02ha$hq6$3@csnews.cs.colorado.edu>
------------------------------
Date: 01 Sep 1998 18:53:17 -0400
From: Jonathan Feinberg <jdf@pobox.com>
To: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Tom Phoenix: ANSWERS WANTED!
Message-Id: <m3r9xv1m3m.fsf@joshua.panix.com>
nvp@shore.net (Nathan V. Patwardhan) writes:
> But if you don't agree with someone, it's always helpful to speak
> up. And with a medium like Usenet, everyone can contribute! Hope
> this helps!
I'm trying to see your posts today as anything other than trolls.
Please help me to do so by explaining exactly what it is about Tom
Phoenix's posts that you'd change. Do you not think it's appropriate
to send people to the FAQ docs for the answers to FAQs? Do you not
think it's appropriate to send people to an on-topic newsgroup for
discussion of things that are off-topic for this one? Do you not
think it's appropriate to be polite to people?
Do you just want him to type in the same answer to the same question
each time, rather than using his boilerplate library? Do you not want
him to post at all? These questions aren't for rhetorical effect; I'm
really wondering what's bugging you.
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf
------------------------------
Date: Tue, 01 Sep 1998 23:35:55 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: Tom Phoenix: ANSWERS WANTED!
Message-Id: <vx%G1.72$kE2.588848@news.shore.net>
Jonathan Feinberg (jdf@pobox.com) wrote:
: I'm trying to see your posts today as anything other than trolls.
: Please help me to do so by explaining exactly what it is about Tom
: Phoenix's posts that you'd change. Do you not think it's appropriate
It's unfortunate that people read the posting as an attack on Tom's
character, which it was not. On one hand, people cannot be honest
with themselves about the lack of content or depth in a pre-canned
response, and apparently they cannot be convinced otherwise. On the
other hand, Tom is quite personable and largely unflappable.
It's unfortunate that both methods seem bound for failure:
(1) usage of cluebats. People get upset. People throw mud at
"l33ts". etc etc etc. No new tale here.
(2) answering questions en masse with the cut and paste method.
Most people won't read FAQs or lengthy pre-canned postings. Too
much of too little cluttlers up the joint. Most people seem not
to return if they're ignored.
: Do you not think it's appropriate to send people to an on-topic
: newsgroup for discussion of things that are off-topic for this one?
It's better to say nothing most of the time: at least these days.
When faced with an URGENT PROBLEM which they choose to share with
Usenet, people are faced with an interesting dilemma. If they choose
to wait for their article to be propogated for the handful of people
across the world who can help them, they'll be waiting awhile -- and
will maybe end up without an answer. But if they realize how long
it's taking them to get a response, they will be FORCED to scour ANY
and ALL resources to figure things out for themselves. And from where
many folks stand, this is not a bad thing.
In other words, no *literate* person should be so fucked that they are
unable to grep, grope, surf, archie, hack, test, peruse, read,
memorize, or think in a way reasonable enough to (1) formulate an
intelligent and thoughtful question and (2) discover background
information which is related to what they're hoping to achieve. And
it just doesn't seem logical that people are failing in BOTH areas in
this so-called "information age".
: Do you not think it's appropriate to be polite to people?
Tom's politeness has never been an issue; he's never been impolite
that I can tell.
: Do you just want him to type in the same answer to the same question
: each time, rather than using his boilerplate library?
It's better to say nothing and get people to research things in other
ways.
: Do you not want him to post at all?
Of course. Never was it said that he shouldn't.
--
Nate Patwardhan|root@localhost
"Fortunately, I prefer to believe that we're all really just trapped in a
P.K. Dick book laced with Lovecraft, and this awful Terror Out of Cambridge
shall by the light of day evaporate, leaving nothing but good intentions in
its stead." Tom Christiansen in <6k02ha$hq6$3@csnews.cs.colorado.edu>
------------------------------
Date: 1 Sep 1998 22:13:50 GMT
From: gabor@vmunix.com (Gabor)
Subject: Re: unlinking file if <= 1 hour
Message-Id: <slrn6uosds.98l.gabor@guava.vmunix.com>
In comp.lang.perl.misc, dwiesel@my-dejanews.com <dwiesel@my-dejanews.com> wrote :
# Hi,
#
# How do I unlink all files that is more than 1 hour old (creation or updated
# does not matter) from a directory?
How about
find somedir -amin +60 -type f -delete
------------------------------
Date: 01 Sep 1998 16:16:09 -0400
From: Ala Qumsieh <aqumsieh@tigre.matrox.com>
Subject: Re: unshifting in a FILEHANDLE
Message-Id: <x3y67f74mie.fsf@tigre.matrox.com>
Allen Choy <achoy@us.oracle.com> writes:
>
>
> I know you can't unshift() something into a FILEHANDLE, but does anyone
> know of
> a way to achieve this behavior w/o slurping the FILEHANDLE into an
> array?
>
> Thanks,
>
> Allen
>
Perhaps you haven't read the Perl FAQs .. to be specific perlfaq5
.. where it answers the question:
How do I change one line in a file/delete a line in a
file/insert a line in the middle of a file/append to the
beginning of a file?
Hope this helps.
--
Ala Qumsieh | No .. not Just Another
ASIC Design Engineer | Perl Hacker!!!!!
Matrox Graphics Inc. |
Montreal, Quebec | (Not yet!)
------------------------------
Date: Tue, 01 Sep 1998 22:03:55 GMT
From: Gellyfish@btinternet.com (Jonathan Stowe)
Subject: Re: what's wrong with this statement?
Message-Id: <35ec55d7.2550607@news.btinternet.com>
On Tue, 01 Sep 1998 09:18:30 GMT, Chris Williams wrote :
>On Fri, 28 Aug 1998 14:02:02 +0100, <@thefree.net> wrote:
>
<snip>
>Something like this results from about five minutes work with
>Communicator's editor:
>
>print <<'__END_OF_HTML';
><HTML>
><HEAD>
<snip nicely formatted HTML>
>__END_OF_HTML
>
>
You've got far too much time on your hands ;-}
/J\
--
Jonathan Stowe
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
------------------------------
Date: Tue, 01 Sep 1998 22:58:13 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Y2K Date Support
Message-Id: <9__G1.4500$Gu1.672868@nsw.nnrp.telstra.net>
In article <35eb6336.0@news.eatel.net>,
"Jonathan Tapp" <jt@eatel.net> writes:
> Perl is semi-Y2K safe. It's date readout reads out the years past 1900.
Huh? its date readout?
> Therefore, October 10, 2002 (random date) would be 10/10/102 in Perl. Okay,
Huh again? Where does perl produce 10/10/102? What you are probably
talking about is the fact that perl's localtime function returns an
array with as its 6th element (index 5) the year since 1900. And
indeed, that will be 102 in 2002. But perl does NOT return 10/10/102.
The programmer that formats that year up in such a way should probably
be taken behind a shed and shot.
> It's a little weird. See if you can't snip off the '1' in '102'.
Why? Hasn't the whole discussion about so-called y2k problems over the
last period taught you anything? Don't abbreviate years. Just use the
four digit version, or 5 digit once we get past 9999. What's so
problematic about that? Only at the very last moment, when you have to
display it or so, and it really doesn't matter anymore whether you
mean 2002, 1902, 5602 or 102, then you could remove anything bu the
last two characters. But I really don't see how that would be useful.
I don't know of anyone who has trouble reading a four digit year.
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | "In a world without fences,
Commercial Dynamics Pty. Ltd. | who needs Gates?"
NSW, Australia |
------------------------------
Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>
Administrivia:
Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.
If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu.
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.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
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.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
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 V8 Issue 3611
**************************************