[17332] in Perl-Users-Digest
Perl-Users Digest, Issue: 4754 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Oct 29 06:05:31 2000
Date: Sun, 29 Oct 2000 03:05:07 -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: <972817507-v9-i4754@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Sun, 29 Oct 2000 Volume: 9 Number: 4754
Today's topics:
CGI Errors - Please Help spicenews@my-deja.com
Re: CGI Errors - Please Help <mikecook@cigarpool.com>
CGI Scripting Errors 'Help' spicenews@my-deja.com
Compile Question (BUCK NAKED1)
Re: Compile Question (BUCK NAKED1)
Re: Compile Question (Martien Verbruggen)
Re: Detecting socket closure <uri@sysarch.com>
Re: func (a) func !a! func ~a~ func a .... more? <uri@sysarch.com>
Re: grep vs. a subroutine to find an occurance of an el <james@NOSPAM.demon.co.uk>
Re: Help with newbie question (David H. Adler)
Re: how to print to a certian charcter number <pavel@gingerall.cz>
Re: How to speedup the following (Logan Shaw)
Re: Keyboard IO? (Gwyn Judd)
Re: Keyboard IO? <elephant@squirrelgroup.com>
Re: No such file or directory (NT) <mikecook@cigarpool.com>
Re: OT: Yes there _are_ stupid questions. Anyone colle (Logan Shaw)
Re: OT: Yes there _are_ stupid questions. Anyone colle (Mark-Jason Dominus)
Re: Perl: ICQ Checker <teemu.oksanen@luukku.com>
Re: problem of perldoc command <crud_alex@yahoo.com>
regex help <jason99992000@yahoo.com>
Set path to perl.exe for Win 98 se <godzilla@stomp.stomp.tokyo>
Re: Set path to perl.exe for Win 98 se <godzilla@stomp.stomp.tokyo>
Re: the silly project of Dale's <gellyfish@gellyfish.com>
TTL in UDP <pierre@dsv.su.se>
Re: Unpack tamplate <aurelio@b-soft.com>
Re: Unpack tamplate (Martien Verbruggen)
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 29 Oct 2000 04:39:24 GMT
From: spicenews@my-deja.com
Subject: CGI Errors - Please Help
Message-Id: <8tg9ls$qn6$1@nnrp1.deja.com>
Hi! I am only 14 and need some help trying to fix
this thing. Please go to:
http://thecgipath.hypermart.net/products/s_hsf.htm
l - Read what the script is about, then download
it. I use a server at http://www.chilliseeds.com
and it doesn't work for me. See if it works for
you. Please tell me what you did to get it to
work! All I have done is uploaded it, I have made
NO changes. If that's the problem (I am sure it
is) What are the changes I have to make? It might
help if you upload the script to your own server
to correct things and test it. Any
answers/replies would be GREATLY appreciated!
Thankyou
Chris
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Sun, 29 Oct 2000 01:34:57 -0700
From: "Michael Cook" <mikecook@cigarpool.com>
Subject: Re: CGI Errors - Please Help
Message-Id: <SiRK5.4363$5e2.725665@news.uswest.net>
I doubt anyone will take the time to do this...I am sure you would get help
if you did the footwork yourself and just posted the relevant pieces of code
here and exactly what errors you are getting...
Michael
--
== CigarPool ==
http://www.cigarpool.com
<spicenews@my-deja.com> wrote in message news:8tg9ls$qn6$1@nnrp1.deja.com...
> Hi! I am only 14 and need some help trying to fix
> this thing. Please go to:
> http://thecgipath.hypermart.net/products/s_hsf.htm
> l - Read what the script is about, then download
> it. I use a server at http://www.chilliseeds.com
> and it doesn't work for me. See if it works for
> you. Please tell me what you did to get it to
> work! All I have done is uploaded it, I have made
> NO changes. If that's the problem (I am sure it
> is) What are the changes I have to make? It might
> help if you upload the script to your own server
> to correct things and test it. Any
> answers/replies would be GREATLY appreciated!
> Thankyou
>
> Chris
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
Date: Sun, 29 Oct 2000 04:40:13 GMT
From: spicenews@my-deja.com
Subject: CGI Scripting Errors 'Help'
Message-Id: <8tg9nc$qom$1@nnrp1.deja.com>
Hi! I am only 14 and need some help trying to fix this thing. Please go
to: http://thecgipath.hypermart.net/products/s_hsf.html - Read what the
script is about, then download it. I use a server at
http://www.chilliseeds.com and it doesn't work for me. See if it works
for you. Please tell me what you did to get it to work! All I have done
is uploaded it, I have made NO changes. If that's the problem (I am
sure it is) What are the changes I have to make? It might help if you
upload the script to your own server to correct things and test it. Any
answers/replies would be GREATLY appreciated! Thankyou
Chris
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Sat, 28 Oct 2000 11:22:53 -0500 (CDT)
From: dennis100@webtv.net (BUCK NAKED1)
Subject: Compile Question
Message-Id: <3875-39FAFD5D-34@storefull-241.iap.bryant.webtv.net>
I'm having a problem installing Authen:PAM locally. When I do "perl5
Makefile.PL PREFIX=3D/usr/blah/blah, I get the below dialog, and after
that, "make" and "make install" fail.
Does this mean that I don't have access to my webserver's compiler, or
have I not built/configured the module correctly?
Current Directory:
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0/usr/home/web/d/dbeat/modules/Authen-PAM-0.1=
0
Checking if your kit is complete...
Looks good
creating cache ./config.cache
checking for gcc... cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a
cross-compiler... no
checking whether we are using GNU C... yes checking whether cc accepts
-g... yes
checking how to run the C preprocessor... cc -E
checking do we need -ldl when linking pam programs... yes
checking for environment handling functions... no
checking for RTLD_GLOBAL flag... yes
updating cache ./config.cache
creating ./config.status
creating pam.cfg
creating PAM.pm
Adding a definition 'PREFIX=3D/usr/home/web/d/dbeat/modules' from the
command line
Note (probably harmless): No library found for -lpam Writing Makefile
for Authen::PAM
Thanks,
Dennis
------------------------------
Date: Sun, 29 Oct 2000 00:46:54 -0500 (CDT)
From: dennis100@webtv.net (BUCK NAKED1)
Subject: Re: Compile Question
Message-Id: <1054-39FBB9CE-90@storefull-246.iap.bryant.webtv.net>
FWIW: I asked my free webserver, "What is the Path to your C Compiler?"
THEIR EXACT RESPONSE was: "You'll have to compile your code into a
readable CGI script on your local computer and then upload it in order
to get it to work. The path to the perl translator is /usr/bin/perl "
Well, I knew the path to perl already. Are they saying that the C
Compiler is in the same path?
--Regards,
Dennis
------------------------------
Date: Sun, 29 Oct 2000 19:21:07 +1100
From: mgjv@tradingpost.com.au (Martien Verbruggen)
Subject: Re: Compile Question
Message-Id: <slrn8vnnfj.ac5.mgjv@martien.heliotrope.home>
On Sun, 29 Oct 2000 00:46:54 -0500 (CDT),
BUCK NAKED1 <dennis100@webtv.net> wrote:
> FWIW: I asked my free webserver, "What is the Path to your C Compiler?"
>
> THEIR EXACT RESPONSE was: "You'll have to compile your code into a
> readable CGI script on your local computer and then upload it in order
> to get it to work. The path to the perl translator is /usr/bin/perl "
>
> Well, I knew the path to perl already. Are they saying that the C
> Compiler is in the same path?
No. They are saying that they don't provide a C compiler, I think. They
are telling you to compile programs on your own computer, and copy the
binaries. ou'll have to find out what platform they are running, in a
quite detailed manner.
But talk to your ISP. This is beyond the scope of Perl.
Martien
--
Martien Verbruggen |
Interactive Media Division | That's funny, that plane's dustin'
Commercial Dynamics Pty. Ltd. | crops where there ain't no crops.
NSW, Australia |
------------------------------
Date: Sun, 29 Oct 2000 04:39:45 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Detecting socket closure
Message-Id: <x7vgucjm5p.fsf@home.sysarch.com>
>>>>> "GW" == Garry Williams <garry@ifr.zvolve.net> writes:
GW> The client sends a request to the server expecting to read a reply
GW> when the request can be satisfied. That is, the client is
GW> blocking in a <$socket>. The server cannot produce a reply
GW> immediately, but will be able to in the future so it calls
GW> pause(). Certain events cause the server to be signaled. It is
GW> possible that the server will then be able to satisfy the client's
GW> request and thus write a response on the socket that the client is
GW> blocked on.
what is pause? not a standard perl function that i have ever seen.
GW> How can the server discover that the client interrupted the
GW> blocking read and then closed the socket (exited)? I have tried
GW> using select(), but it always returns that the socket can_write,
GW> even when the client closed and exited long ago.
you always have a socket checked for reading. that is the way to detect
closed sockets. read perlipc for more on this. also the unix man pages
on read have plenty on detecting closed sockets and pipes.
and use IO::Select or Event.pm for this stuff. it will save you a ton of
work.
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: Sun, 29 Oct 2000 04:42:30 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: func (a) func !a! func ~a~ func a .... more?
Message-Id: <x7r950jm14.fsf@home.sysarch.com>
>>>>> "DB" == Dave Brondsema <brondsem@my-deja.com> writes:
DB> print qq(1);
DB> print qq~2~;
DB> print qq!3!;
DB> print qq/4/;
>> those are double quoted strings and not regexes. which book or
DB> education
>> source is leading you to these false beliefs?
DB> The title "Regexp Quote-Like Operators" from perlop
that section never mentions qq. show the section and the quote which
says those forms are all regular expression when none of them are.
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: Sun, 29 Oct 2000 05:13:50 +0000
From: James Taylor <james@NOSPAM.demon.co.uk>
Subject: Re: grep vs. a subroutine to find an occurance of an element in a list
Message-Id: <ant290550209fNdQ@oakseed.demon.co.uk>
Thanks for the references, Tom.
In article <39fb7a01@cs.colorado.edu>, Tom Christiansen
<URL:mailto:tchrist@perl.com> wrote:
>
> In article <ant2900089eefNdQ@oakseed.demon.co.uk>,
> James Taylor <james@demon.co.uk> wrote:
> >(Still don't have perldoc.)
>
> I have no idea what that means. Perl comes with manpages.
It means I'm using the RISC OS port which has neither perldoc nor
manpages included. I'm getting used to reading raw POD instead, but
reading the Camel is much more fun, quicker, and more informative.
> If you don't have them trivially available, then you don't
> have a proper installation
That's arguably the case, but given that I'm using a minority OS
I consider myself extremely lucky to have Perl at all, and the
porter to be some kind of angel of deliverance.
--
James Taylor <james (at) oakseed demon co uk>
PGP key available ID: 3FBE1BF9
Fingerprint: F19D803624ED6FE8 370045159F66FD02
------------------------------
Date: 29 Oct 2000 07:15:14 GMT
From: dha@panix.com (David H. Adler)
Subject: Re: Help with newbie question
Message-Id: <slrn8vnjk2.b0c.dha@panix6.panix.com>
On Wed, 25 Oct 2000 16:07:03 GMT, M. van den Bos <mvdbos@integral.nl>
wrote:
>On Thu, 12 Oct 2000 19:29:00 GMT, Michael Segulja
><michael.segulja@sgi-lsi.com> wrote:
>> else {
>> do_nothing;
>> }
>> }
>
>Maybe this'll work:
>
> else {
> next;
> }
I missed the original post, so maybe there's something here that's
getting by me, but if you want to do nothing when the if() condition
is false, why have an else at all? It's not as though it's required.
dha
--
David H. Adler - <dha@panix.com> - http://www.panix.com/~dha/
"What is this Japanese preoccupation with the name Ken???" - Tom Servo
------------------------------
Date: Fri, 27 Oct 2000 16:51:33 +0200
From: Pavel Hlavnicka <pavel@gingerall.cz>
Subject: Re: how to print to a certian charcter number
Message-Id: <39F99675.6080800@gingerall.cz>
HTH
$myline =~ s/(.{29})N/$1Y/;
frank74@my-deja.com wrote:
> I have a file that I want to print a value to a certain character
> position. Each line in my file is a new record, first I am searching
> through the first five characters of each line to find a match to the
> five characters entered by the user. When a match is found the user is
> directed to the correct web page. At this time I need to print a one
> character value of "Y" to the 30th character of that record(this sets
> my password used flag to yes). The current value in the 30th character
> is "N", any ideas how I can specify to print the "Y" character in the
> 30th character position of the record, and remove the "N". I can't use
> a replace function on the "N" as there may be several "N"'s in the
> record.
>
> Any help would be greatly appreciated,
> Thanks
> Frank
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
--
Pavel Hlavnicka
Ginger Alliance Ltd.
Prague; Czech Republic
------------------------------
Date: 29 Oct 2000 01:45:26 -0500
From: logan@cs.utexas.edu (Logan Shaw)
Subject: Re: How to speedup the following
Message-Id: <8tgh26$ppg$1@provolone.cs.utexas.edu>
In article <m3bsw4xxnn.fsf@solo.david-steuber.com>,
David Steuber <nospam@david-steuber.com> wrote:
>Once, when I needed to parse very large weblog files (>10MB), I found
>regexes to be too slow. At least the way I used them. I ended up
>using index and substring in a very C like way to speed up the
>program.
Actually, you probably (but not definitely) could have sped up the
program just by altering your regular expression. I'll take a guess
and say that non-greedy matching might have helped alot.
For some good information on Perl's regular expressions and why they
behave the way they do, see http://www.plover.com/~mjd/perl/Regex/ ,
particularly the part titled "Why does Perl take so long to match some
patterns?".
- Logan
------------------------------
Date: Sun, 29 Oct 2000 04:06:51 GMT
From: tjla@guvfybir.qlaqaf.bet (Gwyn Judd)
Subject: Re: Keyboard IO?
Message-Id: <slrn8vn8io.d1l.tjla@thislove.dyndns.org>
I was shocked! How could Bob Margulies <rsm@loop.com>
say such a terrible thing:
>I have searched as many FAQs as I could find, but no simple answer comes
>up. I am running perl from (don't laugh) DOS on a PC. What I want to do
>is issue a prompt for input, read a line of text from the keyboard,
>terminate it with "Enter", and then proceed to do something with the
>input.
>
>I can do that in a bunch of other languages, but perl has me stumped.
>AFAK, there's nothing in the Camel or Llama books. Am I wrong? Why is it
>so mysterious? And most of all, how do I do it?
It's hardly mysterious. You use the diamond operator '<>' to read a
line* of text from a file. If you leave out the actual filehandle
argument then it reads from STDIN:
$line = <STDIN>; # is the same as $line = <>;
Now do something with $line.
I hope that helps. See the documentation in 'perldoc perlop' (look for
'I/O Operators').
* for some definition of the word 'line'. See the variable $/ in the
* perlvar manpage
--
Gwyn Judd (print `echo 'tjla@guvfybir.qlaqaf.bet' | rot13`)
I enjoy the time that we spend together.
------------------------------
Date: Sun, 29 Oct 2000 16:25:10 +1100
From: jason <elephant@squirrelgroup.com>
Subject: Re: Keyboard IO?
Message-Id: <MPG.14665fc55623a7b989869@localhost>
Gwyn Judd wrote ..
>I was shocked! How could Bob Margulies <rsm@loop.com>
>say such a terrible thing:
>>I have searched as many FAQs as I could find, but no simple answer comes
>>up. I am running perl from (don't laugh) DOS on a PC. What I want to do
>>is issue a prompt for input, read a line of text from the keyboard,
>>terminate it with "Enter", and then proceed to do something with the
>>input.
>>
>>I can do that in a bunch of other languages, but perl has me stumped.
>>AFAK, there's nothing in the Camel or Llama books. Am I wrong? Why is it
>>so mysterious? And most of all, how do I do it?
>
>It's hardly mysterious. You use the diamond operator '<>' to read a
>line* of text from a file. If you leave out the actual filehandle
>argument then it reads from STDIN:
>
>$line = <STDIN>; # is the same as $line = <>;
oops .. these two are only the same when there are no command-line
arguments .. if there are command-line arguments then those are treated
as filenames and opened and read from with <> (but not with <STDIN>)
--
jason -- elephant@squirrelgroup.com --
------------------------------
Date: Sun, 29 Oct 2000 01:29:38 -0700
From: "Michael Cook" <mikecook@cigarpool.com>
Subject: Re: No such file or directory (NT)
Message-Id: <neRK5.4359$5e2.723414@news.uswest.net>
Use c:/path/to/file...
Michael
--
== CigarPool ==
http://www.cigarpool.com
"Mario" <diab.lito@usa.net> wrote in message
news:8ter3m$ooj$1@nnrp1.deja.com...
> I wrote a script using flat files.It was running properly on a Unix
> server.Now I had to install it on an NT machine.
>
> It gives me the "No such file or directory" error even if the files are
> in the same directory of the script opening it.
>
> I am opening the files in this way:
> open (DB, "nome.dbf")|| die "error";
>
> Is the server working bad or does NT requires something different to
> specify the path?
>
> Thanks anyone,
> Mario
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
Date: 29 Oct 2000 01:19:12 -0500
From: logan@cs.utexas.edu (Logan Shaw)
Subject: Re: OT: Yes there _are_ stupid questions. Anyone collect them?
Message-Id: <8tgfh0$po0$1@provolone.cs.utexas.edu>
In article <m3g0lgxxwg.fsf@solo.david-steuber.com>,
David Steuber <nospam@david-steuber.com> wrote:
>eg. How do I write a Perl script to grab the daily Dilbert cartoons
A friend of mine wrote such a script several years ago[1], and now
there is a page at http://www.cs.rice.edu/~dwallach/dilbert/ about the
experience (including correspondence with United Media).
So if anyone writes a Frequently Asked Stupid Questions document, throw
that link in.
- Logan
[1] It didn't actually grab the images -- it just built "IMG SRC"
(i.e. inline) links to them.
------------------------------
Date: Sun, 29 Oct 2000 06:16:01 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Re: OT: Yes there _are_ stupid questions. Anyone collect them?
Message-Id: <39fbc0a1.543d$344@news.op.net>
In article <m3g0lgxxwg.fsf@solo.david-steuber.com>,
David Steuber <nospam@david-steuber.com> wrote:
>If this is a FAQ, I haven't found it. Has anyone collected really
>stupid questions?
Not precisely, but
http://www.plover.com/~mjd/perl/Questions.html
and following articles may interest you.
------------------------------
Date: Sun, 29 Oct 2000 09:09:04 GMT
From: "Teemu Oksanen" <teemu.oksanen@luukku.com>
Subject: Re: Perl: ICQ Checker
Message-Id: <QORK5.26$j8.1679@read2.inet.fi>
> But why do you want such a thing when ICQ has its own tool for it?
Because I need that information as text. Not as picture! Sorry... =)
-Teemu
------------------------------
Date: Sun, 29 Oct 2000 12:21:06 +0800
From: "»΄δΈ}" <crud_alex@yahoo.com>
Subject: Re: problem of perldoc command
Message-Id: <8tgvh6$5l2$1@imsp026.netvigator.com>
before was the first time that i execute the perldoc and the second time it
shows me these stuff...
jason <elephant@squirrelgroup.com> wrote in message
news:MPG.146656c99be8144b989868@localhost...
: »΄δΈ} wrote ..
: >while i entered "perldoc perldoc"and expect a description,i got this
message
: >instead
: >"invalid command.com"
: >"enter correct name of command interpreter"
: >why is this happening?it works fine before....
:
: when was 'before' ?? .. sounds like your Windows command interpreter is
: broken
:
: --
: jason -- elephant@squirrelgroup.com --
------------------------------
Date: Sun, 29 Oct 2000 18:52:44 +0800
From: "Jason Chung" <jason99992000@yahoo.com>
Subject: regex help
Message-Id: <8tgvha$ac6$1@dahlia.singnet.com.sg>
I need some help with regex.
Kindly point it out to me if it's in the faqs cos I couldn't find it.
$delimiter = "|";
$mystring = "aaaaaa" . $delimiter . "bbbbbbb" . $delimiter . "cccccccc";
I'm trying to get the last part of the string (b4 the delimiter) from
$mystring (ie. cccccccc).
How do I accomplish that with regex?
thks.
Jason.
------------------------------
Date: Sat, 28 Oct 2000 23:07:15 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Set path to perl.exe for Win 98 se
Message-Id: <39FBBE93.2023980C@stomp.stomp.tokyo>
As expected, perl for win failed to install correctly.
Tonight, I tried Perl for Win build 618 and am not
surprised to encounter significant problems even
with using all default choices for this install.
Before I delete Perl from my system and continue
to advise readers to never install Perl for Win,
I'll give you boys a shot at this.
I am unable to establish a path statement to
Perl, regardless of what tricks I try. Most
annoying of all, there is zero documentation
on this problem. Major duh. Seems no matter
how many nor what combinations of paths I set
to Perl, results are zilch. Big surprise.
* rolls eyes *
Perl doc:
in the /eg directory of your Perl install there is a
sample script named example.pl To run it, launch a
console window, make the /eg directory your current
working directory and type:
perl example.pl
You should see:
"Hello from ActivePerl!"
If you do, you've successfully installed ActivePerl!
If not, there's something wrong with your install.
Check to make sure that your Path environment variable
includes the directories to which you installed the Perl
core binaries.
**
Yeah right. What's with this "you've successfully installed...."??
I expect this program to install itself, flawlessly. I did
not install it, Perl for win installed itself. How stupid
to indicate "...you've...installed...."
Anyhow, Perl for win is totally fubar. Nothing works,
again, just as I expected.
One of you boys courtesy enough to post step-by-step
instructions on what should be used to establish a
DOS path statement with hopes of having Perl work?
For now I will be satisfied to simply get this
example.pl to run.
I am exceptionally annoyed Active State mentions
this problem with path statements and offers zero
documention, zero FAQ, zero help on what to do.
This is stupefying. Shoot, Redmond boys do a lot
better than this, I mean a LOT better.
* very annoyed *
Godzilla!
------------------------------
Date: Sun, 29 Oct 2000 00:18:31 -0700
From: "Godzilla!" <godzilla@stomp.stomp.tokyo>
Subject: Re: Set path to perl.exe for Win 98 se
Message-Id: <39FBCF47.31D3A8FC@stomp.stomp.tokyo>
"Godzilla!" wrote:
> As expected, perl for win failed to install correctly.
> Tonight, I tried Perl for Win build 618 and am not
> surprised to encounter significant problems even
> with using all default choices for this install.
Build 618 is totally bogus. This is some of the worst
programming I have encountered.
Sparks, what is wrong with you boy? Most of the links
contained with your html documents lead to nowhere.
They are dead links.
Look at this:
"The ActivePerl Package comes with the newly updated
collection of Frequently Asked Questions about ActivePerl.
The FAQ is a valuable source of distilled wisdom about using
Perl. It is a must read!"
This document doesn't even exist. Your link to your FAQ
is a recursive circle, nothing more. This FAQ document
is not included and nowhere to be found manually. Why
did you do this? Why a big empty promo claim?
Your troubleshooting link within your readme document
goes nowhere. Links followed lead right back where
you started. Christ, you didn't even bother to check
if your links work. They don't.
"What does it Cost?
Per Incident Option
US$195."
You want me to pay you two hundred bucks to ask,
"Why is your install program totally FUBAR?"
* SCREAMS *
Bogus, you Active State people are absolutely bogus.
What I have learned by trying to install build 618,
these problems I have encountered, all these mistakes
in your documentation, your false and misleading
statements, this complete failure of your install
program, sure sheds light on why your package is
free; it's worthless.
Two-hundred friggin bucks to ask a question?
You are f-ing nuts!
Godzilla!
------------------------------
Date: 29 Oct 2000 10:37:11 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: the silly project of Dale's
Message-Id: <8tgukn$jqt$1@orpheus.gellyfish.com>
On Fri, 27 Oct 2000 16:53:34 -0500 mark richards wrote:
> Hello,
> I am interested in a program to parse log files and
> count and categorize the words that exist there and then do the next log
> file, adding the totals and proceeding to the next log file in
> succession. I write in basic and really don't want to learn to write perl
> code for such a seemingly simple job. Is there a perl coded script
> available out there that might do such a silly task? Or, alternatively,
> would someone be willing to write the code for me? I would be eternally
> grateful for any help that I receive on this project.
Firstly, I can see no reason that you can't do this in a programming
language that you already know, of course Perl is probably more suited
for doing stuff like that but any language could do it.
That said if you are looking for a body of reusable code then you should
look at CPAN wherein you will find a number of modules that might help
you do things with logfiles : <http://search.cpan.org> ...
The best way to get help in this group is for you to present a snippet
of the code that you are having difficulty with along with a small sample
of the data you are working with, people are generally disinclined to
help if there is no evidence of your trying to solve the problem yourself.
As to learning Perl I think that once you have made the effort, you will
find that you will identify things that you have previously done with BASIC
that are so much easier done in Perl that you will wonder why you had
never learned it before.
You will find learning enough Perl to carry out this one task is not
particularly onerous given the resources available to you. If you already
have Perl installed on your computer then start by typing :
perldoc perl
at some command prompt. You will probably want to get a good book - I
would recommed you check out <http://www.sysarch.com/cgi-bin/perl_books>
for a summary of the available books.
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|
------------------------------
Date: Sun, 29 Oct 2000 10:07:47 +0100
From: "Pierre Wijkman" <pierre@dsv.su.se>
Subject: TTL in UDP
Message-Id: <8tgp82$m1t$1@news.kth.se>
How do I set TTL in a UDP socket handle?, is it possible?
Sincerely Pierre
------------------------------
Date: Sun, 29 Oct 2000 10:33:14 +0100
From: "Aurelio Balgera" <aurelio@b-soft.com>
Subject: Re: Unpack tamplate
Message-Id: <8tgqbi$ldl$1@fe2.cs.interbusiness.it>
> Doesn't that rather depend on which platform and C++ implementation
> we're talking about? I would expect the size, endianness, and possible
> padding in the structure to vary depending on platform etc. You might
> do better to try unpacking the structure yourself and experimenting
> until you get the template to extract the correct values.
>
> Sorry, I wasn't more helpful.
I'am under Linux on intel platform
------------------------------
Date: Sun, 29 Oct 2000 21:35:24 +1100
From: mgjv@tradingpost.com.au (Martien Verbruggen)
Subject: Re: Unpack tamplate
Message-Id: <slrn8vnvbc.ac5.mgjv@martien.heliotrope.home>
On Sun, 29 Oct 2000 10:33:14 +0100,
Aurelio Balgera <aurelio@b-soft.com> wrote:
> > Doesn't that rather depend on which platform and C++ implementation
> > we're talking about? I would expect the size, endianness, and possible
> > padding in the structure to vary depending on platform etc. You might
> > do better to try unpacking the structure yourself and experimenting
> > until you get the template to extract the correct values.
> >
> > Sorry, I wasn't more helpful.
>
> I'am under Linux on intel platform
You posted this in both clp.misc and clp.modules. You did NOT use the
cross-posting facility of your news reader. hat means that there are now
two separate discussions of this. On clp.modules your question has been
mostly answered. All you need to do is test, and adapt to your needs.
Also, you need to read the documentation:
# perldoc -f pack
And next time you post the same question to two newsgroups, for
everyone's sake, please crosspost. Or even better: you should never
have posted this to clp.modules. It's off-topic there.
Martien
--
Martien Verbruggen | My friend has a baby. I'm writing
Interactive Media Division | down all the noises the baby makes
Commercial Dynamics Pty. Ltd. | so later I can ask him what he meant
NSW, Australia | - Steven Wright
------------------------------
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 V9 Issue 4754
**************************************