[11433] in Perl-Users-Digest
Perl-Users Digest, Issue: 5033 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Mar 2 12:07:30 1999
Date: Tue, 2 Mar 99 09:00:20 -0800
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, 2 Mar 1999 Volume: 8 Number: 5033
Today's topics:
Re: CGI.pm question (Bill Moseley)
Editing 2,000 lines of someone else's code <revjack@radix.net>
Help : Gethostbyname <kimntodd@dontspamus.execpc.com>
Re: Help : Gethostbyname <Tony.Curtis+usenet@vcpc.univie.ac.at>
Re: Help choose a book! dhosek@webley.com
Re: Help choose a book! (brian d foy)
Re: Help Please: Script Optimization <kimntodd@dontspamus.execpc.com>
Re: HELP!! How to obtain html info by LWP ??? (brian d foy)
Re: High Quality Web Designer/Webmaster Needed (brian d foy)
How do I get Perl Modules to run in my webspace? <graham@dragroup.com>
how frequently for a FAQ (was Re: The crypt() function <Russell_Schulz@locutus.ofB.ORG>
Re: HTML::TreeBuilder - any other options? (Bill Moseley)
MAIL file attachments in Perl Script <Webmaster@qax.org>
Re: MAIL file attachments in Perl Script <Tony.Curtis+usenet@vcpc.univie.ac.at>
Re: method overriden! (brian d foy)
Re: Module for configuration files? (Jonathan Stowe)
next in a continue block restarts continue block, but.. (Chris Sherman)
Re: nmake, adding modules in Win 98 (Randy Kobes)
perl -d trouble... <ben@leafton.com>
Re: Perl script to emulate communications program (Clay Irving)
Re: The millennium cometh -- eventually <Russell_Schulz@locutus.ofB.ORG>
Re: The truth about the Pentium III chip and ID --- **b <etljwk@etl.x.dmx.ericsson.se>
Unix locking (was Re: FAQ 5.17: How can I lock a file?) <Russell_Schulz@locutus.ofB.ORG>
Re: Using libwww-perl (Bill Moseley)
Re: Variables in regular expressions (Larry Rosler)
Re: Win95 print question <pwmeyer@mitre.org>
y2k and 4-digit dates (was Re: foreach and while) <Russell_Schulz@locutus.ofB.ORG>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 2 Mar 1999 08:47:51 -0800
From: moseley@best.com (Bill Moseley)
Subject: Re: CGI.pm question
Message-Id: <MPG.1145b610df1929619896c9@206.184.139.132>
In article <36DB8914.762E89AE@nus.edu.sg>, scijr@nus.edu.sg says...
> i'm using CGI.pm module. In a perl script, i tried to display a text1 +
> button1 and when button1 presses will show text2 + button2 . But when
> button2 pressed....a text which is suppossedly to appear did not. Can
> anyone help ?
Sure, post some of your code.
--
Bill Moseley mailto:moseley@best.com
------------------------------
Date: 2 Mar 1999 15:59:38 GMT
From: Fuchs McDowell <revjack@radix.net>
Subject: Editing 2,000 lines of someone else's code
Message-Id: <7bh1ta$e9b$1@news1.Radix.Net>
Keywords: Hexapodia as the key insight
AAAAAAAAAAAAAARRRRRRRRRRRRGGGGGGHHHHHHHH
--
/~\ hoy corpulent typhoon worse predilect Fayette brushwork unction
C oo bamboo Ku armature possum Polaroid dart cloth Lucia vocal compl
_( ^) 1 , 0 0 0 , 0 0 0 m o n k e y s c a n ' t b e w r o n g
/___~\ http://3509641275/~revjack 03/02/99 10:59:29 revjack@radix.net
------------------------------
Date: Tue, 2 Mar 1999 10:54:35 -0600
From: "End User" <kimntodd@dontspamus.execpc.com>
Subject: Help : Gethostbyname
Message-Id: <7bh53k$2eb$1@ffx2nh3.news.uu.net>
I am trying to get the IP address of a server on my network. This is what I
am trying to use to troubleshoot my situation:
@addrs = gethostbyname MyServer;
foreach $addrs(@addrs){
print "$addrs\n";}
This is what it returns:
myserver.subdomain.mydomain.com
myserver
4
2
T%$% <= those are supposed to be wierd control characters.
what am I doing wrong? win32 on NT.
--
Todd Hayward
Global Analyst, Systems Engineer
MCSE, Compaq ACT
noc at bakernet dot com
------------------------------
Date: 02 Mar 1999 17:59:18 +0100
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: Help : Gethostbyname
Message-Id: <83678j4yl5.fsf@vcpc.univie.ac.at>
Re: Help : Gethostbyname, End
<kimntodd@dontspamus.execpc.com> said:
End> I am trying to get the IP address of a server
End> on my network. This is what I am trying to use
End> to troubleshoot my situation:
End> @addrs = gethostbyname MyServer; foreach
End> $addrs(@addrs){ print "$addrs\n";}
End> This is what it returns:
End> myserver.subdomain.mydomain.com myserver 4 2
End> T%$% <= those are supposed to be wierd control
(weird)
That isn't what gethostbyname() returns.
Did you "perldoc -f gethostbyname"?
($name,$aliases,$addrtype,$length,@addrs) = gethost*
To see the IP address(es) you have to unpack the
@addrs, e.g.
my ($name,$aliases,$addrtype,$length,@addrs) =
gethostbyname('ftp.uu.net');
foreach my $a (@addrs) {
my $addr = join('.', unpack('C4', $a));
print "$addr\n";
}
==> 192.48.96.9
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien. | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | private email:
Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>
------------------------------
Date: Tue, 02 Mar 1999 15:52:14 GMT
From: dhosek@webley.com
Subject: Re: Help choose a book!
Message-Id: <7bh1f8$uvn$1@nnrp1.dejanews.com>
In article <7bgp75$69gc$1@newssvr03-int.news.prodigy.com>,
"Harris Mahedavi" <mahedavi@prodigy.net> wrote:
> Can some one suggest a good Perl5 book for web development book. And what
> does one think of Perl5 complete.(McGraw Hill)
Get the O'Reilly books. You'll want the llama book, the camel book and the CGI
book & you'll be in great shape. Read the llama book first, dip into the camel
book as necessary. The CGI book I don't have, but have heard good things
about... many find that they can get by with the on-line documentation for CGI
stuff (there's some basic info in the llama book to get you started).
-dh
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Tue, 02 Mar 1999 11:35:15 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Help choose a book!
Message-Id: <comdog-ya02408000R0203991135150001@news.panix.com>
In article <7bgp75$69gc$1@newssvr03-int.news.prodigy.com>, "Harris Mahedavi" <mahedavi@prodigy.net> posted:
> Can some one suggest a good Perl5 book for web development book. And what
> does one think of Perl5 complete.(McGraw Hill)
You should just get a book, such as "Learning Perl", to teach you Perl,
and then a book to teach you the other skills. For the "web dev" part
of the job, Lincoln Stein's books are good.
Perl is a tool, and "web development" is a task. you are likely to
need other tools than Perl as well, so starting from a non-Perl-centric
prespective is much better (IMO) :)
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Tue, 2 Mar 1999 10:33:02 -0600
From: "End User" <kimntodd@dontspamus.execpc.com>
Subject: Re: Help Please: Script Optimization
Message-Id: <7bh3r7$1g1$1@ffx2nh3.news.uu.net>
Thanks for all the input. It has shed some light on my feebleness.
------------------------------
Date: Tue, 02 Mar 1999 11:25:24 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: HELP!! How to obtain html info by LWP ???
Message-Id: <comdog-ya02408000R0203991125240001@news.panix.com>
In article <36DC77BB.1ED7@hotmail.com>, lufan@hotmail.com posted:
> I need some code samples showing how the read the
> head info of target html or other files (size, last update date,
> etc). I use LWP, but fail to get the returned headers from
> response.
do you get a response? did you follow the excellent examples in the
LWP docs?
> Do I need to perform a request first ?
i think Gisle will be adding the LWP::Psychic later this year. until
then, to get the data you need to get the data.
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Tue, 02 Mar 1999 11:54:43 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: High Quality Web Designer/Webmaster Needed
Message-Id: <comdog-ya02408000R0203991154430001@news.panix.com>
In article <7bg7hb$9e4$1@nnrp1.dejanews.com>, webmaster@designbrokers.com posted:
> If you are interested in this work, then you should know there is one minor
> hitch. Once we have received a contract, we will ask two or three people to
> submit one design to us (usually the index page) prior to us agreeing a
> contract. Only one person can win the work, but if we are to maintain the
> highest standards, competition is the best way for us to do it.
very strange. hopefully you still pay for the work that you do not
use.
note to the uninitiated: some unscrupulous "designers" will have you
submit work for which they will not pay you so that they can show it
to the client as one of the several samples they promised, but with
minimal financial risk. furthermore, the client might like part of
your work but not others, so the "designer" will incorporate your
nice peices into another person's successful bid, and you lose!
remember that a contract is an obligation to pay. don't provide
your services for free! business is business.
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Tue, 2 Mar 1999 16:35:12 +0000
From: Graham Stow <graham@dragroup.com>
Subject: How do I get Perl Modules to run in my webspace?
Message-Id: <nXAznHAANB32EwtX@dragroup.com>
I am trying to create and access a DBM file in my webspace, and the
script I am using (from a Perl 5 How-To) says I should use the DBM
module by useing the following lines in my script..
use Getopt::Long;
use English;
use DB_File;
I have done this and my ISP tells me to upload these modules to my CGI-
BIN Directory, and this I have done (with the exeption of Getopt - I
didn't have Getopt.pm but I did have Long.pm so I uploaded this instead
and call it with the line 'use Long;' in my script).
However, the script that creates and writes to the DBM file keeps
crashing the moment it encounters the line 'use Long;' or if I comment
this line then it crashes at 'use English;', or if I comment them both
then it crashes at 'use DB_File'.
Any advice on how I can get Perl Modules to run in my webspace would be
most welcome.
--
Graham Stow
------------------------------
Date: Tue, 2 Mar 1999 10:13:00 -0500
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: how frequently for a FAQ (was Re: The crypt() function is unimplemented due to excessive paranoia)
Message-Id: <19990302.101300.2I4.rnr.w164w_-_@locutus.ofB.ORG>
droby@copyright.com writes:
> I'm curious though about what frequency is necessary for faqness.
so I've changed the Subject: header.
> I suspect "practically every week" should be, but I'm not sure about
> "once a month or so", which seems to be the case in this instance.
I'm fairly sure once a month should be in the FAQ (moderator time
permitting). that way people that DO want to search before posting get
rewarded by already having it handy instead of having to sift through
Deja News (and hope that the last time it was discussed it wasn't by a
bunch of people with X-No-Archive silliness).
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: Tue, 2 Mar 1999 08:43:53 -0800
From: moseley@best.com (Bill Moseley)
Subject: Re: HTML::TreeBuilder - any other options?
Message-Id: <MPG.1145b520da3aea79896c8@206.184.139.132>
[This followup was posted to comp.lang.perl.misc and a copy was sent to
the cited author.]
In article <m37lt0icys.fsf@joshua.panix.com>, jdf@pobox.com says...
> This program works fine for me:
[see previous post for program]
Thanks again for the reply. That program works on my machine, too. But
it's not exactly what I was asking.
> my $good_html = '<html><head></head><body>hello</body></html>';
> my $bad_html = '<html><head></head><boldly>hello</html>';
This is the kind of thing I'm trying to catch.
my $bad_html = '<TABLE>
<TR>
<TD
Hello
</TD>
</TR>
</TABEL>';
Running that in your program I get:
perl test_html
Parsing $good_html.
Parsing $bad_html.
Done.
Someone sent me private email about HTTP::Validator, but I didn't see
this at http://www.cpan.org/modules/by-module/HTML/
--
Bill Moseley mailto:moseley@best.com
------------------------------
Date: Tue, 02 Mar 1999 16:39:48 +0000
From: Colin Drew <Webmaster@qax.org>
Subject: MAIL file attachments in Perl Script
Message-Id: <36DC1453.58C1F85D@qax.org>
Help please !
For perl only please.
I would like to email a FILE attachement such as a ZIP or TXT or even
JPG file directly from my server and obviously want it to arrive still
as an attachement, not part of the email body ?
I donot want to run the mailprog and read the content of the file in
question and output it into the email message, I need it as an
attachement and to retain its original format . Similar to the way a
Browser is able to attach files and keep them seperate. But I need this
to run on the www server unattended !
I not a novice to Perl, and I have written many Scripts from scratch,
but this problem has completly eluded me. Any help will be appreciated
!
--
From Colin Drew,
You can Email
mailto:Colin@qax.org or mailto:c.drew@qax.org
Why not visit my WebSite :- http://www.qax.org/
---------------------------------------------------------------------
Any Syntax or Spelling Errors are nothing to do with me,
They must be Transmission Errors !
---------------------------------------------------------------------
------------------------------
Date: 02 Mar 1999 17:46:31 +0100
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: MAIL file attachments in Perl Script
Message-Id: <837lsz4z6g.fsf@vcpc.univie.ac.at>
Re: MAIL file attachments in Perl Script, Colin
<Webmaster@qax.org> said:
Colin> I would like to email a FILE attachement such
Colin> as a ZIP or TXT or even JPG file directly
Colin> from my server and obviously want it to
Colin> arrive still as an attachement, not part of
Colin> the email body ?
perldoc MIME::Tools
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien. | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | private email:
Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>
------------------------------
Date: Tue, 02 Mar 1999 11:59:36 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: method overriden!
Message-Id: <comdog-ya02408000R0203991159360001@news.panix.com>
In article <rZMC2.5866$8N5.68922@typhoon-sf.pbi.net>, "Ekkis" <ekkis@arix.com> posted:
> It seems that when I inherit from a class, if I create a method with the
> same name as one of the base class's methods, the base class loses access to
> it's own method! Consider the following (see 3 files below): a call to
> c2->new() generates a call to the base class constructor c1->new() which
> calls its helper sub init(). That call ($self->init()) should resolve to
> c1->init(), but doesn't!!
you are a bit confused. since you have an init() function in both
classes, but the object is blessed into the derived class, the
object is going to look in the derived class first, even if the
object is used in the base class.
step through your code again keeping this in mind and you'll see
how it happens :)
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Tue, 02 Mar 1999 15:58:12 GMT
From: gellyfish@btinternet.com (Jonathan Stowe)
Subject: Re: Module for configuration files?
Message-Id: <36dc0a4f.25403337@news.dircon.co.uk>
On Tue, 2 Mar 1999 16:02:32 +0100, "Arnold M|ller"
<Arnold_Mueller@csi.com> wrote:
>Hello. I just wondered whether there is a module for parsing configuration -
>files. I think many programmers use them with their scripts. Mine are
>usually like this:
>
>[Project1]
>Source=c:\Data\Foo
>Dest=c:\Data\Bar
>Suffix=.html
>Errorcheck=No
>
<snip>
There is module (IniConf) available from CPAN that will enable to deal
with Configuration files of this sort.
/j\
------------------------------
Date: Tue, 2 Mar 1999 16:34:34 GMT
From: sherman@unx.sas.com (Chris Sherman)
Subject: next in a continue block restarts continue block, but...
Message-Id: <F7z7DM.Fno@unx.sas.com>
If you execute a next in a continue block, it restarts the
continue block. This seems to be the expected behavior.
How do I do something like a next, but _not_ have it restart
in the continue block since I'm already in it?
For example:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
#!/usr/local/bin/perl5 -w
use strict;
while (<DATA>) {
chomp($_);
print "Start of while block\n";
print "End of while block\n";
}
continue {
print "Start of continue block $_\n";
if ($_ eq "data1") {
next; # <<=== replace next with ???
}
print "End of continue block\n";
}
__END__;
data1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Of course, this will go into an infinite loop in the continue block.
There are lots of not-very-nice ways around this. I could use a
"goto" to jump to the end of the continue block, or I could
rework the "if" logic, or a whole bunch of things that will make
the code much more complex and/or really ugly.
Well, yeah, the code is already complex and perhaps just a little
ugly, but "redo", "next", and "last" keep me from having to do
some really twisted things to keep the logic correct. (Imagine
that "if" in the continue block above buried behind lots of
if's and loops already.
Side note: "redo" will jump back up to the while loop, but "next"
won't. Expected, I know... Just pointing it out.
Just wondering if I overlooked something really simple. Thanx!
--
____/ / / __ / _ _/ ____/
/ / / / / / / Chris Sherman
/ ___ / _/ / /
_____/ __/ __/ __/ _\ _____/ _____/ sherman@unx.sas.com
--
____/ / / __ / _ _/ ____/
/ / / / / / / Chris Sherman
/ ___ / _/ / /
_____/ __/ __/ __/ _\ _____/ _____/ sherman@unx.sas.com
------------------------------
Date: 2 Mar 1999 16:26:39 GMT
From: randy@theory.uwinnipeg.ca (Randy Kobes)
Subject: Re: nmake, adding modules in Win 98
Message-Id: <slrn7do4t0.kct.randy@theory.uwinnipeg.ca>
On Tue, 02 Mar 1999 08:51:25 +0100,
Carl_Cunningham@oh.god.dont.spam.me <Carl_Cunningham@oh.god.dont.spam.me> wrote:
>
>Randy Kobes schrieb:
>
>> On Sun, 28 Feb 1999 12:29:42 GMT,
>> tbird99@my-dejanews.com <tbird99@my-dejanews.com> wrote:
>> >I am trying to add modules for Perl in Win 98. I am using Perl v5.005_02, and
>> >the path is correct. I get the error, "Bad command or file name" whenever I
>> >try to do the nmake step for adding a module. Am I doing something wrong?
>>
>> It probably means you don't have nmake installed - you can grab it
>> from ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe.
[snip]
>I've downloaded nmake from MS, and it bombs out when I try to use it, complaining
>about "Illelagal characters" and fun stuff like that. Just did the basic "perl
>makefile.pl;make;" and had no luck. Any ideas?
Hi,
Is it nmake that is complaining, or perl? There's a couple things
that might be going on:
- the nmake15.exe got corrupted in the download, or wasn't extracted
and installed successfully; does it work on other Makefiles?
- in your perl's Config.pm file, there's a line make=.... indicating
what perl expects your make program to be. Is this set to be nmake?
- did you do 'perl makefile.pl; make', and not 'perl makefile.pl; nmake'?
If you really did use 'make' instead of 'nmake', and didn't
get an error about a "Bad command or file name", then there's a 'make'
program on your system (perhaps from cygwin?). Be sure to say 'nmake'.
--
best regards,
Randy Kobes
Physics Department Phone: (204) 786-9399
University of Winnipeg Fax: (204) 774-4134
Winnipeg, Manitoba R3B 2E9 e-mail: randy@theory.uwinnipeg.ca
Canada http://theory.uwinnipeg.ca/
------------------------------
Date: Tue, 02 Mar 1999 09:06:19 -0700
From: Ben Bergen <ben@leafton.com>
Subject: perl -d trouble...
Message-Id: <36DC0C7B.2408B18@leafton.com>
I am trying to debug a script. The script compiles and runs under
normal execution, however when I try to add the -d option perl takes up
99% of my cpu and hangs. I was originally using ddd to debug when this
started happening. I am very puzzled since this just started
happening. I have been debugging fine all week. I'm sure that I must
have done something stupid but I really haven't changed anything on my
system. I am running kernel 2.2.2, perl 5.00502, ddd 3.1.3. Yesterday
morning this was working.
------------------------------
Date: 2 Mar 1999 11:33:18 -0500
From: clay@panix.com (Clay Irving)
Subject: Re: Perl script to emulate communications program
Message-Id: <slrn7do4me.epo.clay@panix.com>
On Tue, 02 Mar 1999 15:15:22 GMT, mr_potato_head@my-dejanews.com,
<mr_potato_head@my-dejanews.com> wrote:
>hi, I need to write a perl scripts that will run in a cron or term window,
>send commands to the screen, wait for a response, if response is not received
>in x seconds timeout, and capture all responses from the screen to a file. I
>need this script to run at night so a cron would be the prefered way to go.
>I'm not really sure how to send output to the screen and wait for a response
>like crosstalk or procomm pluse for windows can.
print "Waiting...\n";
while ($response = <STDIN>) {
chomp $response;
if ($response eq "y") {
exit;
} else {
print "Still waiting...\n";
}
}
When I run the program:
[panix] ~% ./foo.pl
Waiting...
n
Still waiting...
d
Still waiting...
y
>I've tried using the print command to send out commands but it didn't work.
>Any help would be appreciated. Thanks in advance...
What didn't work? Did you have an error at line 17?
--
Clay Irving <clay@panix.com>
I want to die peacefully, in my sleep, like my grandfather, not
screaming, terrified, like his passengers.
------------------------------
Date: Tue, 2 Mar 1999 10:55:10 -0500
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: The millennium cometh -- eventually
Message-Id: <19990302.105510.8E6.rnr.w164w@locutus.ofB.ORG>
[ comp.software.year-2000.rise-up-against-the-pedants ? ]
fl_aggie@thepentagon.com (I R A Aggie) writes:
>>> The real reason I wrote the code was that people were using the first
>>> two digits of the four-digit year to indicate the century, which is so
>>> amazingly wrong
>>
>> what, the 1900s? that sounds right to me.
>
> Except that this is the *20th* century...
yes, for another 22 months almost.
and what exactly is your point?
a. you thought I didn't know that?
b. actually, I can't think of another possible point.
in case you're wondering, _my_ point is:
STOP USING A REPRESENTATION THAT IS UNNATURAL AND HARD TO UNDERSTAND
(as evidenced by people getting it wrong) AND JUST SAY THE NINETEEN
HUNDREDS! THE NINETEEN HUNDREDS _are_ A CENTURY. THE YEARS FROM
1000 THROUGH 1999 _are_ A MILLENIUM. THEY'RE JUST NOT ONE THAT FIT
WELL INTO THE UNNATURAL AND HARD TO UNDERSTAND (as evidenced by
people getting it wrong) CENTURY SPLITS.
stop writing functions that return year-1900. stop saying `20th
Century'. stop whining about 2000 not being a change into a new
millennium (because it is, though not one that's on the split between
the 20th Century and the 21st Century).
there. is _my_ point clear?
have you _ever_ seen anyone think 2000 is part of the 1900s?
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: Tue, 02 Mar 1999 16:25:42 +0000
From: John Kenyon <etljwk@etl.x.dmx.ericsson.se>
Subject: Re: The truth about the Pentium III chip and ID --- **boycott info**
Message-Id: <36DC1106.5DCDC5A9@etl.x.dmx.ericsson.se>
George Bonser wrote:
>
> Oh, give it a break. Every Sun SPARC or UltraSPARC machine ever built has a
> CPU serial number. So do most other brands of high-end machines. This is
> nothing new.
You mean the host id, which is held in NVRAM, (which can be modified),
which was designed to allow licensing of software, rather than the
tracking of the person who was using it.
The fact is that host id's existed a longtime before the Internet
went "mainstream". Given the current rate of "dumbing down" of
functionality, it is only a matter of time until this "host id"
techology gets misused.
(By the way I haven't seen a copy of the Social Security Number FAQ
this side of the water recently...)
John Kenyon
Verification Engineer, Ericsson Ltd, Horsham, UK
Opinions are mine not my employers
.x. becomes x for email.
------------------------------
Date: Tue, 2 Mar 1999 10:21:28 -0500
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Unix locking (was Re: FAQ 5.17: How can I lock a file?)
Message-Id: <19990302.102128.4l1.rnr.w164w_-_@locutus.ofB.ORG>
[ no longer about Perl ]
ilya@math.ohio-state.edu (Ilya Zakharevich) writes:
> Btw, anybody knows why the guys who gave us fork()/exec() paradigm (so
> they clearly *thought* about multiprocessing) did not think about file
> locking? Did they think about multiprocessing at all? I would think
> that mainframes people had resolved these issues long time before *nix?
Rochkind has a quote along the lines of `file locking belongs in the
kernel as much as trig functions belong in the kernel'.
the idea was that every set of programs that wants to cooperate with
locking will run another process, an advisory process, that all the
programs in the set will communicate with to decide who has locked what.
and that works fine, as long as your set always includes vi, or always
includes grep, or always includes...
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: Tue, 2 Mar 1999 08:51:32 -0800
From: moseley@best.com (Bill Moseley)
Subject: Re: Using libwww-perl
Message-Id: <MPG.1145b6f28b0f02a39896ca@206.184.139.132>
In article <36dba75d.2120421@news.wxs.nl>, pvdkamer@inter.NL.net says...
> Does someone know how i can install the libwww-perl without having
> prompt access on my ISP site ?
> Normaly copying the .PM will do but not on the libwww-perl modules.
http://www.cpan.org/modules/ and look at the first link titled how to
install modules. Pay attention to the paragraph about using PREFIX.
This is also in the FAQ.
Have fun.
--
Bill Moseley mailto:moseley@best.com
------------------------------
Date: Tue, 2 Mar 1999 08:41:49 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Variables in regular expressions
Message-Id: <MPG.1145b4ac9f8e3209896c0@nntp.hpl.hp.com>
[Posted and a courtesy copy mailed.]
In article <m2r9r7hp2c.fsf@kn-10-0-21-140.kotnet.kuleuven.ac.be>, on 02
Mar 1999 16:46:35 +0100 kris.verbeeck@advalvas.be says...
> I have a full fledged regular expression in a variable:
>
> $MULTI_TAG = "\$<MULTIMAX=([0-9]+)>\$";
>
> Now I want to use this regular expression in a matching, like this:
>
> $text =~ /^$MULTI_TAG/;
>
> That doesn't work. I tried prefixing the variable with "\Q" and
> postfixing it with "\E", but that didn't work either. I checked the
> FAQ, but can't seem to find a good answer for my problem. Can anyone
> help me?
You need to use single-quotes around the string in $MULTI_TAG, or double
the back-slashes so they survive into the regex. \Q would be a disaster
-- you *want* those metacharacters to be interpreted as such.
--
Larry Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Tue, 02 Mar 1999 10:50:15 -0500
From: Peter Meyer <pwmeyer@mitre.org>
Subject: Re: Win95 print question
Message-Id: <36DC08B7.879A2E6E@mitre.org>
Eric Bohlman wrote:
>
> Peter Meyer <pwmeyer@mitre.org> wrote:
> : I'm trying to print an array element ($foo[$bar-1]) but I can't get it to print out. I tried
> : running the answer from ORA and their version wouldn't work either! All my other print()s work
> : fine. I put print's before AND after the problem one.
>
> : Code follows:
>
> : use Sys::Hostname;
> : # Exercise 3.2 from the book
> : # write a program which reads a number followed
> : # by a list of strings on separate lines.
> : # print the string which corresponds with
> : # the number entered.
> : print "Enter the number: ";
> : chomp ($theNumber = <STDIN>);
> : print "Enter the strings (at least $theNumber): \n";
> : @theList = <STDIN>;
> : $foo = $theList[$theNumber-1];
> : print ("You asked for $foo"); # This is the print which won't
> : $host = hostname;
> : print "Tonight's host is $host"; # This prints ok
>
> You're running up against a bug in the Win95 console output routines.
> Under some circumstances, if you input a bunch of lines and terminate
> them with a Ctrl+Z, the first line of output printed afterward will get
> erased and overwritten on the screen, so it looks like the print didn't
> execute even though it did (if you redirect the output to a file, the
> line will be there).
>
> The solution is to print a blank line immediately after you've finished
> getting input from STDIN.
Thanks, that did the trick. I did try to use autoflush, but that was getting too compliccated for
what should have been a simple script.
------------------------------
Date: Tue, 2 Mar 1999 10:26:54 -0500
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: y2k and 4-digit dates (was Re: foreach and while)
Message-Id: <19990302.102654.8J5.rnr.w164w@locutus.ofB.ORG>
[ where should this followup go? comp.software.y2k.fluff ? ]
merlyn@stonehenge.com (Randal L. Schwartz) writes:
> Ronald> don't use 6 digit dates !
>
> Why not?
because they're ambiguous, and ambiguous in a small time frame. a real,
practicaly one that affects us (as opposed to the y10k problem, which
is `real' but also `real silly').
> I'm not going to start writing 1/2/2000 when 1/2/00 will work just
> fine to indicate the second day of the first month of the closest year
> ending in 00.
is that Feb 1 or Jan 2?
> It's all about context. 4 digits doesn't magically fix everything.
actually, for the overwhelming majority of cases (AD1-AD9999), they do.
if used consistently, if there hadn't been `year-1900' silliness, if
data storage would have allowed them, if output fields were wide enough,
there wouldn't have been a y2k concern.
or are you just saying `it would be less convenient'? well, duh.
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: 12 Dec 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 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 5033
**************************************