[9942] in Perl-Users-Digest
Perl-Users Digest, Issue: 3535 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 25 11:02:39 1998
Date: Tue, 25 Aug 98 08:00:21 -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, 25 Aug 1998 Volume: 8 Number: 3535
Today's topics:
Re: #!usr/bin/perl is ignored, WHY? <jpm@iti-oh.com>
Re: Bug, or mental block? <jgoldberg@dial_put-a-decimal-here_pipex.com>
Re: CGI Question, (brian d foy)
Re: core dump from perl. Don't know why... <Tony.Curtis+usenet@vcpc.univie.ac.at>
database / perl <nigell@nigellboulton.webfusion.net>
Re: database / perl (Honza Pazdziora)
Re: Exporting Methods (brian d foy)
Re: Exporting Methods dave@mag-sol.com
IO::Socket <veerle@NOSPAM.dns.be>
Re: new and with a lot of questions huntersean@hotmail.com
Re: new and with a lot of questions <dgris@rand.dimensional.com>
Re: Packages must be installed using ppm.pl <clbower@kodak.com>
Re: Perl compiler <lily@tigr.org>
Re: Perl compiler <tchrist@mox.perl.com>
Re: Perl compiler <dean_darlison@dial.pipex.com>
Re: Perl compiler <lily@tigr.org>
Re: Perl compiler (Norman UNsoliciteds)
Re: Perl compiler (Honza Pazdziora)
Re: Perl compiler <bbense+comp.lang.perl.modules.comp.lang.perl.misc.Aug.25.98@telemark.stanford.edu>
Re: Perl documentation <tchrist@mox.perl.com>
Re: Perl documentation <tchrist@mox.perl.com>
Re: PERL environment/shell execution? dave@mag-sol.com
Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFO (Patrick Timmins)
Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFO (I R A Aggie)
Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFO (I R A Aggie)
Re: Where to find Net::Domain? (Michael Fuhr)
Re: Y2K Date Support <Christopher.Marquis@fairchildsemi.com>
Re: Yes, someone else in need of PERL help (Bob Trieger)
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 25 Aug 1998 09:23:10 -0400
From: Joshua Marotti <jpm@iti-oh.com>
Subject: Re: #!usr/bin/perl is ignored, WHY?
Message-Id: <35E2BABE.6DFD5ADB@iti-oh.com>
Believe it or not, I had this trouble, and the solution was wierd. If you make
the script on an NT/Win95 box, and then ftp it to linux/unix, you need to make
sure that you are either saving the file as a unix file, or ftp'ing it in
ASCII. This fixed the problem.
--
Regards,
Josh Marotti
===============================================
Computer Engineer
International TechneGroup Inc.
"Black holes are where God divided by zero"
-----------------------------------------------
"Do you expect me to talk, Goldfinger?"
"No, Mr. Bond, I expect you to die."
>From the James Bond movie 'Goldfinger'
===============================================
------------------------------
Date: Tue, 25 Aug 1998 15:08:14 +0100
From: "Jeremy Goldberg" <jgoldberg@dial_put-a-decimal-here_pipex.com>
Subject: Re: Bug, or mental block?
Message-Id: <6rugga$cmd$1@plug.news.pipex.net>
>if( exists( $checksums{"a"} ) && $checksums{"a"}->[1] == $status[9] )
> { print $status[7], "Q\n"; }
Is the real code...
>The problem might be that the uninitialized value is in the block you
>run after that if. What's in there?
Damn, you're right - I guess it was just a mental block after all, the error
was inside the block rather than the if() line it reported it on...
Thanks.
------------------------------
Date: Tue, 25 Aug 1998 09:02:23 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: CGI Question,
Message-Id: <comdog-ya02408000R2508980902230001@news.panix.com>
Keywords: from just another new york perl hacker
In article <6rtn53$j00$1@earth.superlink.net>, Alex Peng <peng7072@cs.nyu.edu> posted:
>How to send two different outputs, a binary file and html page?
in some method that does not depend on the language used. perhaps
you wanted comp.infosystems.www.authoring.cgi? :)
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
Comprehensive Perl Archive Network (CPAN) <URL:http://www.perl.com>
Perl Mongers needs volunteers! <URL:http://www.pm.org/to-do.html>
------------------------------
Date: 25 Aug 1998 15:15:09 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: core dump from perl. Don't know why...
Message-Id: <7xyasd9p9e.fsf@salome.vcpc.univie.ac.at>
Re: core dump from perl. Don't know why..., dow
<dow.jones@home.se> said:
dow> Hi, I've got a program that is run from
dow> Internet. Sometimes it generates a large (4 Mb) 'core'
dow> file. I have tried with the -w flag but I don't get any
dow> errors at all.
dow> Is it possible to look at the core-file to see what the
dow> problem was?
Sure it's actually a core from perl? Use the command "file
core" to find out how the core was generated. If yes then
you'll have to post lots more info regarding the
circumstances that cause this problem.
If not, then there's something else going on.
--
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, 25 Aug 1998 15:17:13 +0100
From: "Nigell Boulton" <nigell@nigellboulton.webfusion.net>
Subject: database / perl
Message-Id: <6ruh3h$t8i$1@plutonium.btinternet.com>
i want to connect a csv type file to a web site to allow people to search
for information within this file.
Doe anyone have a script that can do this and allow me to customise it to
suit what i want.
thanks
nigell boulton
------------------------------
Date: Tue, 25 Aug 1998 14:32:23 GMT
From: adelton@fi.muni.cz (Honza Pazdziora)
Subject: Re: database / perl
Message-Id: <slrn6u5inm.o0i.adelton@aisa.fi.muni.cz>
On Tue, 25 Aug 1998 15:17:13 +0100, Nigell Boulton <nigell@nigellboulton.webfusion.net> wrote:
> i want to connect a csv type file to a web site to allow people to search
> for information within this file.
You can use DBD::CSV DBI driver.
Hope this helps,
--
------------------------------------------------------------------------
Honza Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/
I can take or leave it if I please
------------------------------------------------------------------------
------------------------------
Date: Tue, 25 Aug 1998 09:10:53 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: Exporting Methods
Message-Id: <comdog-ya02408000R2508980910530001@news.panix.com>
Keywords: from just another new york perl hacker
In article <r790kdjqbg.fsf@rimbey.cs.ualberta.ca>, Wade Holst <wade@cs.ualberta.ca> posted:
>Mark Simonetti <se96ms@english.iielr.dmu.ac.uk> writes:
>
>> I'm currently writing a Perl script which uses classes. Reading a book on
>> Perl tells me I need to export methods to use them.. yet I don't seem
>> to have to ? Am I missunderstanding something ? It says I need to use
>> "Exporter" !
>
>You need to 'use Exporter;' because all classes need to have
>Exporter as a superclass.
well, not all classes necessarily need Exporter. a class needs it
if it intends to export something though. :)
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
Comprehensive Perl Archive Network (CPAN) <URL:http://www.perl.com>
Perl Mongers needs volunteers! <URL:http://www.pm.org/to-do.html>
------------------------------
Date: Tue, 25 Aug 1998 13:50:18 GMT
From: dave@mag-sol.com
Subject: Re: Exporting Methods
Message-Id: <6rufer$u0t$1@nnrp1.dejanews.com>
In article <Pine.OSF.3.96.980825095132.26215B-100000@english.iielr.dmu.ac.uk>,
Mark Simonetti <se96ms@english.iielr.dmu.ac.uk> wrote:
> I'm currently writing a Perl script which uses classes. Reading a book on
> Perl tells me I need to export methods to use them.. yet I don't seem
> to have to ? Am I missunderstanding something ? It says I need to use
> "Exporter" !
Either your book is wrong or you're misunderstanding the difference between
objects and modules.
If you're writing a Perl object (defining a 'new' method, calling 'bless' on
an anonymous hash - those sort of things are the clues) then you don't need
to export any methods as they're always called thru the object interface
(i.e. Object->method). If you're jsut bundling a group of useful functions
together in a module then they'll need to be exported into the callers
namespace.
hth,
Dave...
--
dave@mag-sol.com
London Perl M[ou]ngers: <http://www.mag-sol.com/London.pm/>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 25 Aug 1998 15:30:06 +0200
From: Veerle Ternier <veerle@NOSPAM.dns.be>
Subject: IO::Socket
Message-Id: <35E2BC5E.F8C6EA48@NOSPAM.dns.be>
HI,
I would like some documentation/examples for the use of IO::Socket.
A link would be great.
Regards,
Veerle
------------------------------
Date: Tue, 25 Aug 1998 12:59:59 GMT
From: huntersean@hotmail.com
Subject: Re: new and with a lot of questions
Message-Id: <6rucgg$qfd$1@nnrp1.dejanews.com>
In article <35E24D86.24690141@hotmail.com>,
hopeandprayers@hotmail.com wrote:
> I've never used a usnet group before so beware fumbling steps. just got
> Linus v5, and perl 5 for dummies. i need some info to use group and my
> software,especially my perl v4 already resident in Linux and the perl 5
> that i've just aquired. help!!!!
>
>
I presume by "Linus v5" you mean RedHat Linux 5.0 (or 5.1). They both
include perl 5 (not perl 4), so you don't need to install anything else. To
learn perl, get "Learning Perl", (the so-called "llama book") by Randal L.
Schwartz and Tom Christiansen (two of the most brilliant perl hackers, and
frequent contributors to this group). It is published by O'Reilly &
Associates and is ISBN 1-56592-284-0.
Read, experiment and enjoy. "For dummies" books may not help you, as perl is
primarily a tool for smart folks. ;->
For a general linux book, I would heartily recommend "Running Linux" (also
published by O'Reilly and Associates). I don't have my copy here, or I'd
credit the author. RedHat comes with a full set of HowTos and manpages,
however. Open up netscape and follow the links on the default homepage.
Once you get started at perl, you will buy the infamous blue camel book
("Programming Perl" by Larry Wall, Randal Schwartz and Tom Christiansen). You
will have no choice. By that stage your free will will have drained away, you
will be telling your friends how cool perl is and thinking up perl regexs in
your sleep. You have been warned...
Sean Hunter
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 25 Aug 1998 13:45:36 GMT
From: Daniel Grisinger <dgris@rand.dimensional.com>
Subject: Re: new and with a lot of questions
Message-Id: <6ruebs$8t8$1@rand.dimensional.com>
[posted to comp.lang.perl.misc and mailed to the cited author]
In article <35E24D86.24690141@hotmail.com>
hopeandprayers@hotmail.com wrote:
>I've never used a usnet group before so beware fumbling steps. just got
>Linus v5,
^^^^^
Yayyyy! Linus has been upgraded to version 5 :-) (I know it was a typo,
but it was amusing).
> and perl 5 for dummies. i need some info to use group and my
>software,especially my perl v4 already resident in Linux and the perl 5
>that i've just aquired. help!!!!
Ok, I'm guessing that you just installed the new RedHat and need some
help. It's hard to do much without a more specific question, but the
first thing that I'd recommend you do is start reading the contents
of /usr/doc. There's a lot there, but after you finally make it
through you should have made it past most of the initial learning
curve.
For newsreading and perl, specifically, try man trn and man perl
from your command prompt. I'd also recommend picking up a copy
of `Running Linux' as well as a copy of `Learning Perl'.
You have a fairly steep learning curve ahead of you, but it will
be worth it after you make it through.
Good luck.
dgris
--
Daniel Grisinger dgris@perrin.dimensional.com
"No kings, no presidents, just a rough consensus and
running code."
Dave Clark
------------------------------
Date: Tue, 25 Aug 1998 14:48:15 +0100
From: Chris Bower <clbower@kodak.com>
Subject: Re: Packages must be installed using ppm.pl
Message-Id: <35E2C09F.DADDEF98@kodak.com>
I have recently installed ActivePer,l build 5.005_02, on a PC running NT Server 4.0.
I cannot use ppm.pl through our corporate firewall, so how am I supposed to install
new modules? Would I have any more joy using VPM, if so how do I get a copy?
Anyone got any bright ideas - (aside from trashing my NT box and buying a UNIX
machine)
Chris
------------------------------
Date: Tue, 25 Aug 1998 09:49:16 -0400
From: "Lily Y. Fu" <lily@tigr.org>
Subject: Re: Perl compiler
Message-Id: <35E2C0DC.7F19@tigr.org>
Your accuse was completely wrong and groudless.
I didn't want them to read the text, simply
because I have password embedded in the program
in clear text.
I would appreciate you guys help me out
on "protecting the password" issue...
I downloaded a "Perl Compiler"
but had some difficulty to make it work.
thanks,
Lily
Tom Christiansen wrote:
>
> [courtesy cc of this posting sent to cited author via email]
>
> In comp.lang.perl.misc, "Lily Y. Fu" <lily@tigr.org> writes:
> :I have a perl program, I want to compiler it into binary
> :so that users of the program will not be able to
> :read it as clean text.
> :
> :How can I do it?
>
> You simply don't give them the program. Then they can't read it.
>
> I just don't understand this culture of hoarding and obfuscation.
> Your program is almost certainly worth nothing anyway -- is it now?
> What's so great about it anyway? So just give it away. Or put an
> explicit copyright on it and a restriction that says it can't be used
> for profit or some such.
>
> But why are you trying to stop others from learning? That's *evil*.
> Let's just burn books instead. Or take away Perl unless you pay for it.
> Or restrict access to its documentation. Is that what you'd like
> to see the world come to? What you're talking about is anti-science,
> anti-usenet, and anti-perl. That is the spirit that gives us fleeceware
> in all its wicknessless, not the spirit that gave us the open freeware
> that runs the net.
>
> You lose karma points by withholding. You gain prestige not by what
> you sell nor by what you buy, but rather by what you freely give away
> to others, and how beautiful and useful that thing is. While you are
> certainly under no obligation to do so, neither are we under any sort of
> obligation to help you in your embarrassing pursuit of shameful hoarding.
> I do not wish you luck, because I am morally opposed to the choice you
> are attempting to make.
>
> Just give it away, Lily, and become famous if it's a wonderful program.
>
> --tom
> --
> As far as the laws of mathematics refer to reality, they are not
> certain; and as far as they are certain, they do not refer to reality.
> --Albert Einstein
--
Lily Fu
The Institute for Genomic Research
Voice Mail: (301) 838-3557
Email: lily@tigr.org
------------------------------
Date: 25 Aug 1998 14:13:21 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl compiler
Message-Id: <6rugq1$qfb$3@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.modules, "Lily Y. Fu" <lily@tigr.org> writes:
:Your accuse was completely wrong and groudless.
:I didn't want them to read the text, simply
:because I have password embedded in the program
:in clear text.
You put passwords in a program!? Hello? Didn't anyone ever tell you
never to do that? If you're going to do that, just shoot yourself
now. It's not as though a ``compiled binary'' would be proof against
exploitation should this be the case. You want only the hollow illusion
of security. This is a dangerous desire.
--tom
--
"After three days without programming, life becomes meaningless."
------------------------------
Date: Tue, 25 Aug 1998 15:23:01 +0100
From: Dean Darlison <dean_darlison@dial.pipex.com>
Subject: Re: Perl compiler
Message-Id: <35E2C8C5.6E49C1C4@dial.pipex.com>
Lily Y. Fu wrote:
> Your accuse was completely wrong and groudless.
> I didn't want them to read the text, simply
> because I have password embedded in the program
> in clear text.
>
> I would appreciate you guys help me out
> on "protecting the password" issue...
>
> I downloaded a "Perl Compiler"
> but had some difficulty to make it work.
>
> thanks,
>
> Lily
>
Whoops !!! password in plain text !!!!
compiling the perl script would be no help as the password would still be
readable
using strings for instance !
I'm afraid the inclusion of the password is the mistake, tell the group what
you are really trying to
do and I'm sure they'll help
Cheers,
Dean.
------------------------------
Date: Tue, 25 Aug 1998 10:21:40 -0400
From: "Lily Y. Fu" <lily@tigr.org>
Subject: Re: Perl compiler
Message-Id: <35E2C874.4994@tigr.org>
Thank you Tom, after being on this news group one day,
I got nothing but a taste of your personnality.
That is plenty.
Lily
============
Tom Christiansen wrote:
>
> [courtesy cc of this posting sent to cited author via email]
>
> In comp.lang.perl.modules, "Lily Y. Fu" <lily@tigr.org> writes:
> :Your accuse was completely wrong and groudless.
> :I didn't want them to read the text, simply
> :because I have password embedded in the program
> :in clear text.
>
> You put passwords in a program!? Hello? Didn't anyone ever tell you
> never to do that? If you're going to do that, just shoot yourself
> now. It's not as though a ``compiled binary'' would be proof against
> exploitation should this be the case. You want only the hollow illusion
> of security. This is a dangerous desire.
>
> --tom
> --
> "After three days without programming, life becomes meaningless."
------------------------------
Date: Tue, 25 Aug 1998 23:50:37 +0900
From: No.unsoiliciteds@dead.end (Norman UNsoliciteds)
Subject: Re: Perl compiler
Message-Id: <No.unsoiliciteds-2508982350370001@cs11k39.ppp.infoweb.or.jp>
In article <35E2C0DC.7F19@tigr.org>, "Lily Y. Fu" <lily@tigr.org> wrote:
> Your accuse was completely wrong and groudless.
> I didn't want them to read the text, simply
> because I have password embedded in the program
> in clear text.
Oh dear looks like a clear case of "shoot first, ask questions later". Bad
karma man.
--
Science:
The Dinosaurs were so stupid, they couldn't
even devise the means of thier own extinction,
they had to wait for Nature to do it for them.
------------------------------
Date: Tue, 25 Aug 1998 14:47:04 GMT
From: adelton@fi.muni.cz (Honza Pazdziora)
Subject: Re: Perl compiler
Message-Id: <slrn6u5jj8.o0i.adelton@aisa.fi.muni.cz>
On Tue, 25 Aug 1998 10:21:40 -0400, Lily Y. Fu <lily@tigr.org> wrote:
> Thank you Tom, after being on this news group one day,
> I got nothing but a taste of your personnality.
> That is plenty.
Not true. You got very reasonable answer, saying that if your only
reason for compiling scripts is hiding a plaintext password in the
binary (on Un*x, we have strings command), do not do that. The
underlying reason is that if you are going to do this kind of
things, the newsgroup doesn't have much initiative to help you with
rather advanced topic like compiling. Sorry, but it looks like
waste of time and efford on both our and your side.
--adelton, who is generally far less radical than tomc, but
understands his overall reasons.
--
------------------------------------------------------------------------
Honza Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/
I can take or leave it if I please
------------------------------------------------------------------------
------------------------------
Date: 25 Aug 1998 14:41:56 GMT
From: <bbense+comp.lang.perl.modules.comp.lang.perl.misc.Aug.25.98@telemark.stanford.edu> ;
Subject: Re: Perl compiler
Message-Id: <6ruifk$85p$1@nntp.Stanford.EDU>
In article <35E2C0DC.7F19@tigr.org>, Lily Y. Fu <lily@tigr.org> wrote:
>Your accuse was completely wrong and groudless.
>I didn't want them to read the text, simply
>because I have password embedded in the program
>in clear text.
>
>I would appreciate you guys help me out
>on "protecting the password" issue...
>
- - Give up now.... There is no way to "protect" a password
embedded in a program. Security through obscurity just doesn't
work. If the data is that important, use a real security model.
If you can't justify the cost, then your data is not that important.
- - The perl compiler won't help you in this situation, all the data
items are available in the executable.
strings executable
will show all the constant strings in program. You can play games
with building the password dynamically, but then I can simply run
trace on the resulting executable and watch the I/O.
- - The only way a password can safely be "imbedded" in a program is
to not allow the user read access to the executable file. There
are two common ways to do this.
1. Make the executable setuid and put the password in a file readable
only by the setuid.
2. Provide the program via some kind of network interface. (i.e.
captured accounts, cgi scripts) You need to use some other
authentication system in order for this to work correctly.
- - Both these solutions can be defeated by the sufficiently motivated.
- - Booker c. Bense
Version: 2.6.2
iQCVAwUBNeLNLQD83u1ILnWNAQH2MAP+OfElzUhf4wUj0EmU+xtwIXffiDtl36El
L4ToW9yg5a+RElggGWL69gnCWc1BH/iZ6421QXp4Nl/wgPybb2b6w8Z3pPmfiOlw
rS4YjsY3mOgL0M4590+u+4IXFjwzwvBnisntPBybzNAeEG8GooiA8YOqu5dog878
Jt1jDuEiVgE=
=zfN3
-----END PGP SIGNATURE-----
------------------------------
Date: 25 Aug 1998 13:45:33 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl documentation
Message-Id: <6ruf5t$qfb$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
"Daniel Adams" <dan@fearsome.net> writes:
:remember I said that I support address munging, not
:address exclusion - I mean that making your from: and reply-to: addresses
:danCUTME@ReMoVE.fearsome.net is acceptable because it foils or at least
:slows spammers whislt anybody trying to send you a message will see in their
:"bounced" message that the mail was sent to danCUTME@etc -
You shouldn't make people work to take things private. Since that's
not a legal address, some news servers can, should, and shall drop
such articles on the floor as a form a spam protection on their part.
We already see it happening with sendmail (hurray!!) and this treatment
is only going to grow more popular. Forged addresses are dead addresses.
:>*shrug* I'm only getting 10-20 spam messages a week and you're getting
:>ten times that. I'm doing *something* right. ;)
:Not arithmetic! There's not ten days in every week! ;-)
I don't even get one a day. In fact, I'm always surprised when
one makes it through. Only a handful (not more than five, if that)
make it through to me per *week*. Considering that I receive upwards
of three hundred messages per *day*, this is inconsequential noise
at about one tiny quarter of one small percent.
--tom
--
"... an initial underscore already conveys strong feelings of
magicalness to a C programmer."
--Larry Wall in <1992Nov9.195250.23584@netlabs.com>
------------------------------
Date: 25 Aug 1998 13:53:12 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Perl documentation
Message-Id: <6rufk8$qfb$2@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
david.hawker@cableol.co.uk writes:
:I *could* have been more thorough and searched everything in the perldoc
:directory tree for "foreach" but then there'd have been less activity in
:this bustling newsgroup, one less question that may have answered the query
:of a thousand newbies reading the group.
Everyone should be familiar with the pointers in the top-level
manpage. I've starred the ones most important to beginners.
** perl Perl overview (this section)
perldelta Perl changes since previous version
** perlfaq Perl frequently asked questions
perltoc Perl documentation table of contents
* perldata Perl data structures
* perlsyn Perl syntax
* perlop Perl operators and precedence
* perlre Perl regular expressions
* perlrun Perl execution and options
* perlfunc Perl builtin functions
* perlvar Perl predefined variables
* perlsub Perl subroutines
perlmod Perl modules: how they work
perlmodlib Perl modules: how to write and use
perlmodinstall Perl modules: how to install from CPAN
perlform Perl formats
perllocale Perl locale support
perlref Perl references
perldsc Perl data structures intro
perllol Perl data structures: lists of lists
perltoot Perl OO tutorial
perlobj Perl objects
perltie Perl objects hidden behind simple variables
perlbot Perl OO tricks and examples
perlipc Perl interprocess communication
* perldebug Perl debugging
perldiag Perl diagnostic messages
If you first consult this list when you want to find something
whose whereabouts you're unfamiliar with, I'll bet you'll go far.
--tom
--
Emacs is a fine programming language, but I still prefer perl.
------------------------------
Date: Tue, 25 Aug 1998 13:39:53 GMT
From: dave@mag-sol.com
Subject: Re: PERL environment/shell execution?
Message-Id: <6ruer9$t9m$1@nnrp1.dejanews.com>
In article <35E26FFE.FA1AC2A@exlibris.co.il>,
Daphna <daphna@exlibris.co.il> wrote:
> Hi all,
>
> I was wondering if it is possible to run PERL as an "environment"
> much like CShell on UNIX. Can I enter a PERL "session" and from
> that point on proceed to enter PERL commands/statements interactively ?
Perhaps 'perl -de 0' is something like what you want?
Dave... .. .
--
dave@mag-sol.com
London Perl M[ou]ngers: <http://www.mag-sol.com/London.pm/>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 25 Aug 1998 14:44:36 GMT
From: ptimmins@netserv.unmc.edu (Patrick Timmins)
Subject: Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFORE POSTING
Message-Id: <6ruikk$28j$1@nnrp1.dejanews.com>
In article <35E26F13.BDD63DDC@dead.end.com>,
no.uce@dead.mailbox.com wrote:
> Ronald J Kimball wrote:
>
> > But darnit if those newbies don't persist in being crass and arrogant.
> > Ah well, what can you do?
>
> I think if we apply legal principles to being crass and arrogant and
> substitute the phrase "crass and arrogant" for the word "muder" (and for those
[snip]
Hello muder.
Hello fodder. (Not a typo)
Patrick Timmins
U. Nebraska Medical Center
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 25 Aug 1998 10:48:55 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFORE POSTING
Message-Id: <fl_aggie-2508981048550001@aggie.coaps.fsu.edu>
In article <35E22CCD.F9E374A7@mediaone.net>, "Michael D. Schleif"
<mds-resource@mediaone.net> wrote:
+ Yet, isn't it just a tad bit odd that several Perl _gods_ continue to
+ lurk herein, notwithstanding the _mediocre_ questions posted?
+
+ Maybe, this should be re-labeled the _S_M_ forum ???
No, more like comp.lang.perl.dungeon.torture.newbies...
James
------------------------------
Date: Tue, 25 Aug 1998 10:47:06 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFORE POSTING
Message-Id: <fl_aggie-2508981047060001@aggie.coaps.fsu.edu>
In article <35E2776B.AB2B96F7@dead.end.com>, no.uce@dead.mailbox.com wrote:
+ O right, so by being misogenist
I know speling flames are lame, but you're using the wrong term here.
'misanthropy' is what you want, unless you know the sex of the poster,
in which case it can be subdivided further.
+ towards new member to the comunity you create a sense of belonging?
Take a look at the threads 'PERL environment/shell execution?' and
'new and with a lot of questions'. The one asked 'is there a perl shell'
and got polite responses, and the other 'hey, I'm new, what do I do now?'
and also got polite responses.
+ I mean do you feel close to someone that breates you in public?
You mean like my father, when I did something dunderheaded? no, I didn't
like getting chewed out in public. Did I do the same thing again? no.
Why? because I was embarrassed. I understood that *I* had crossed the
line, and that it was up to me to learn from it and avoid it.
Something you seem to have a problem grasping.
+ guess what a lot of those new users don't even know how to programme.
Then they should learn how first, don't you think? I mean before jumping
into perl, and *especially* before putting stuff in /cgi-bin/. Or do you
not care if their slip-shod programming practices (because they don't
know any better, and haven't seen the CGI Security FAQ) may compromise
your web server's security?
James
------------------------------
Date: Tue, 25 Aug 1998 14:41:57 GMT
From: mfuhr@dimensional.com (Michael Fuhr)
Subject: Re: Where to find Net::Domain?
Message-Id: <6ruif7$12p@flatland.dimensional.com>
8\(F&@ <versace@gianni.com> writes:
> Tried CPAN but no luck. Help Please!
Net::Domain is part of libnet.
--
Michael Fuhr
http://www.fuhr.net/~mfuhr/
------------------------------
Date: Tue, 25 Aug 1998 09:06:51 -0400
From: Christopher Marquis <Christopher.Marquis@fairchildsemi.com>
Subject: Re: Y2K Date Support
Message-Id: <35E2B6EA.CD1AE3CE@fairchildsemi.com>
I saw alot of read the man pages and documentation for answers, I hope I don't get flamed for actually answering
your question. It's the year minus 1900...
$year = $year + 1900;
Have a nice day...
Mike wrote:
> How do you get the date and allow it to support the Year 2000? I have
> been using the following code but it only goes to 1999.
>
> @days =
> ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
> @months =
> ('January','February','March','April','May','June','July','August','September','October','November','December');
> ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
> if ($hour < 10) { $hour = "0$hour"; }
> if ($min < 10) { $min = "0$min"; }
> if ($sec < 10) { $sec = "0$sec"; }
> $date = "$days[$wday], $months[$mon] $mday, 19$year at
> $hour\:$min\:$sec";
------------------------------
Date: Tue, 25 Aug 1998 13:19:25 GMT
From: sowmaster@juicepigs.com (Bob Trieger)
Subject: Re: Yes, someone else in need of PERL help
Message-Id: <6rudr0$do7$1@ligarius.ultra.net>
[ posted and mailed ]
GREGORY GILLELAND <gregory@bit.csc.lsu.edu> wrote:
-> I have read a majority of the last 400 posts, I have searched the internet
-> and found numerous FAQs and tutorials, and I have tried for 5 hours to
-> implement this myself... that being said, I need help.
-> If you would like to email me suggestions, I would appreciate it
-> immensely. If you would like to vent your daily frustrations on me or
-> inflate your monstrous ego, then so-be-it. But do it on the forum so the
-> nice people can see your generous comments (dont junk my box with it).
That last line is a little rude for somebody in need don't you think?
-> Ok,
-> I would have thought this very easy but it isn't working out that way.
-> I want to perform the following task using PERL:
->
-> --open up a predefined file, read in the 3rd line, close the file.
-> --check that string to another predefined string
-> --if the strings ARE equal then <do something... (i can do this)>
untested:
#!/usr/local/bin/perl -w
use strict;
my $foo = 'whatever';
open FH,"</dir/file" or die "Can't open file: $!";
@bar = <FH>;
chomp $bar[2];
if ($bar[2] eq $foo) { do something }
-> Everything is properly working. No server errors. I got the file to open
-> and close, I have read in the predefined string from a FORM (and tested it
-> by printing to file), but I cant get the reading of the third line to work
-> or subsequently the string comparison. If you need more info, please
I'll lay 2 to 1 odds that your problem is that you aren't removing the new
line character from the line that you are reading from the file. Your variable
from the form doesn't end in a new line therefore they don't match.
HTH
Bob Trieger
sowmaster@juicepigs.com
" Cost a spammer some cash: Call 1-800-400-1972
Ext: 1949 and let the jerk that answers know
that his toll free number was sent as spam. "
------------------------------
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 3535
**************************************