[10420] in Perl-Users-Digest
Perl-Users Digest, Issue: 4013 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Oct 19 20:02:50 1998
Date: Mon, 19 Oct 98 17:00:29 -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 Mon, 19 Oct 1998 Volume: 8 Number: 4013
Today's topics:
Re: Are there any "perl.newbie" group or forum? (Adam Turoff)
CGI & ANCHOR <info@blue.uk.com>
Re: CGI & ANCHOR <info@blue.uk.com>
Re: CGI & ANCHOR <dfc@phys.ufl.edu>
Re: Define: *Process* eugene@vertical.net
Re: Getting Perl to forget - reinitialisation of variab (Martien Verbruggen)
Re: Glob Prob <tchrist@mox.perl.com>
Re: how do you search subdirectories for a file? <rbridal@bcl.net>
Information from another homepage <edward@ch.twi.tudelft.nl>
Re: Overloaded '.' wreaking havoc (Lee Jones)
Re: Overloaded '.' wreaking havoc <uri@camel.fastserv.com>
Re: Overloaded '.' wreaking havoc (Ilya Zakharevich)
Re: Overloaded '.' wreaking havoc (Ilya Zakharevich)
Re: Overloaded '.' wreaking havoc (Lee Jones)
Re: Perl & window.open (Clinton Pierce)
Re: Perl Cookbook - is this the best perl book? eugene@vertical.net
Re: Perl DBI AND Oracle (ORACLE_HOME) (Mark Leighton Fisher)
Re: Perl for Win 3.11 (Martien Verbruggen)
Re: Perl-Users Digest, Issue: 4012 Volume: 8 (Piet Barber)
Re: Raleigh.pm (Raleigh, NC, USA perl mongers) has regi <murrayb@vansel.alcatel.com>
Re: Raleigh.pm (Raleigh, NC, USA perl mongers) has regi <eashton@bbnplanet.com>
Re: Raleigh.pm (Raleigh, NC, USA perl mongers) has regi <uri@camel.fastserv.com>
Re: Raleigh.pm (Raleigh, NC, USA perl mongers) has regi <eashton@bbnplanet.com>
Re: Replacing multiply ":" with a string. <rick.delaney@shaw.wave.ca>
Re: Shell commands (Mark-Jason Dominus)
Re: Sorry (Ben Coleman)
Strict and Global Variables <mgirone@caip.rutgers.edu>
Re: Strict and Global Variables <rick.delaney@shaw.wave.ca>
Re: Tilde delimited parsing <rbridal@bcl.net>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 19 Oct 1998 18:10:37 -0400
From: ziggy@panix.com (Adam Turoff)
Subject: Re: Are there any "perl.newbie" group or forum?
Message-Id: <70gdct$e13@panix.com>
Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com> wrote:
>Adam Turoff wrote:
>
>> Perl has often been pigeonholed into these two areas of strength.
>> Unfortunately, as the visibility of perl increases, it becomes more
>> important to spin it properly.
>
>Spin is perhaps the wrong word here as spin implies manipulation, maybe
>enlighten the masses properly is more a propos. Perl has many uses and
>strengths, which, once known, sell themselves. Except to some of the
>Cobal dinos. ;)
Spin works because it's a marketing term, and it implies manipulation of
the marketing message. Stuff we take for granted is lost on 99 44/100%
of the world, as in 'What do you mean there's no "Intel Inside" my brand
spanking new PowerMac G3? Why not? What gives?'
Perl's strengths will sell themselves to the right audience. It fits
the 'text hacking' slot, the 'sysadmin glue' slot as well as the 'excellent
ROI' slot. Those of us who use perl as duct tape tend not to think in
terms of ROI. Yet it can be equally important in selling all of perl.
Eric Raymond makes a good case in HtN that as [open source] software
matures, the soft factors become more important than the core technology.
Spin is a good example of one such soft factor.
Besides, spinning mostly perfect spheres can be fun! :-)
Z.
------------------------------
Date: Mon, 19 Oct 1998 23:07:23 +0100
From: "Matt" <info@blue.uk.com>
Subject: CGI & ANCHOR
Message-Id: <70gd0m$92d$1@starburst.uk.insnet.net>
I am tyring to write a script that can receive command line information from
an html anchor and receive from data, (not at the same time mind you), is
this possible?
regards matt
------------------------------
Date: Mon, 19 Oct 1998 23:15:33 +0100
From: "Matt" <info@blue.uk.com>
Subject: Re: CGI & ANCHOR
Message-Id: <70gdfg$9cd$1@starburst.uk.insnet.net>
I am tyring to write a script that can receive command line information from
an html anchor and receive form data, (not at the same time mind you), is
this possible?
regards matt
------------------------------
Date: Mon, 19 Oct 1998 19:50:49 -0400
From: "Daniel F. Crisman" <dfc@phys.ufl.edu>
To: Matt <info@blue.uk.com>
Subject: Re: CGI & ANCHOR
Message-Id: <Pine.SOL.3.96.981019194838.4793A-100000@neptune.phys.ufl.edu>
CGI.pm's parse function is able to get data from both a
http://sdfsdf/file.pl?data=stuff and form data.
>
> I am tyring to write a script that can receive command line information from
> an html anchor and receive form data, (not at the same time mind you), is
> this possible?
>
>
> regards matt
>
>
>
>
>
>
>
***********************
Daniel Crisman
dfc@phys.ufl.edu
***********************
------------------------------
Date: Mon, 19 Oct 1998 21:53:53 GMT
From: eugene@vertical.net
Subject: Re: Define: *Process*
Message-Id: <70gcdh$a2d$1@nnrp1.dejanews.com>
That's because processes are operating system related, not Perl specific.
See
http://www.whatis.com/process.htm
but otherwise you need a good UNIX book.
Eugene Sotirescu
In article <tuKW1.13837$n5.11832@news.giganews.com>,
"Main News" <jimyt@yahoo.com> wrote:
> Hi,
> as a relative newbie to Perl I've been trundlin' through 'Learning Perl' and
> 'Programming Perl' with up to now, great success. However I'm having a bit
> of trouble understanding forking and exec. The explanations in both books
> and other material refer to "processes", both child and parent, these are
> the terms that are puzzling me. Could someone give me an explanation of
> exactly what a process is (in layman's terms) with regards to programming.
> Or alternatively point me to some relevant sites.
>
> Much appreciated
> Jim.
>
> PS. Does anybody know of any websites dealing with databases *in general*,
> eg. uses, usefulness, when to use them, advantages over flat-files etc.
>
>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Mon, 19 Oct 1998 22:53:31 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Getting Perl to forget - reinitialisation of variables
Message-Id: <LpPW1.9$6a4.98536@nsw.nnrp.telstra.net>
In article <70abtb$4mv$1@nnrp1.dejanews.com>,
jerh@my-dejanews.com writes:
> I'm processing through many files and generating hashes of hashes on each
> pass and then using these HoHs to generated new data files. My problem is
> that I want the HoH to be blank at the start of each iteration s.t. each new
[snip]
> I've tried putting the stuff into a subroutine and using local but it doesn't
> appear to be working (possible because I'm not using the correct form for a
> HoH to the local fnc.)
What about reinitialising the hash:
%hash = ();
Instead of local(), you're probably would be better off with my(). For
your own convenience, you should be programming with 'use strict' on
anyway :)
Martien
> Also is there anywhere expounds the virtues of Perl and it's various
> elements
The perl code and documentation :) and http://www.perl.com/
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | 75% of the people make up 3/4 of the
Commercial Dynamics Pty. Ltd. | population.
NSW, Australia |
------------------------------
Date: 19 Oct 1998 23:34:55 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Glob Prob
Message-Id: <70giav$qlb$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc, Eric Bohlman <ebohlman@netcom.com> writes:
:What OS is your script running under? Under Unix, that glob means "all
:files with a '.' in their names," since "extensions" have no inherent
:meaning to the filesystem.
Um, the O/S is immaterial. The glob function behaves as a proper
Unix glob even in hostile territory. That way scripts are more
portable.
--tom
--
"Everything should be made as simple as possible, but not simpler."
-- Albert Einstein.
------------------------------
Date: Mon, 19 Oct 1998 16:55:38 -0500
From: Rob Bridal <rbridal@bcl.net>
Subject: Re: how do you search subdirectories for a file?
Message-Id: <362BB559.120328AC@bcl.net>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Make your own recursive thing.
<P>sub PrintDirRec {
<BR> my $file, $dir = $_[0];
<BR> opendir DIR, $dir;
<BR> readdir DIR;
<BR> readdir DIR;
<BR> my @files = readdir DIR;
<BR> closedir DIR;
<BR> foreach $file (@files) {
<BR> if (opendir DIR, $dir."/".$file)
{
<BR>
closedir DIR;
<BR>
PrintDirRec($dir."/".$file)
<BR> } else {
<BR>
print $dir."/".$file."\n";
<BR> };
<BR> };
<BR>};
<P>Now call this function like so:
<BR>PrintDirRec("/web/www/contacts");
<BR>and it will print like so:
<BR>/web/www/contacts/Joe
<BR>/web/www/contacts/Josh
<BR>/web/www/contacts/Bridals/Rob
<BR>/web/www/contacts/Bridals/Ron
<BR>/web/www/contacts/Bridals/Rick
<P>Regards,
<BR>Rob Bridal
<BR>RWB Online
<BR><A HREF="http://rwbonline.com">http://rwbonline.com</A>
<BR>
<P>JaTara Brown wrote:
<BLOCKQUOTE TYPE=CITE>Hi!
<P>My project involves programming in Perl and is actually quite simple:
write
<BR>a script that searches through a directory (INCLUDING subdirectories),
find
<BR>files with certain extensions (say .abc and .xyz), and creates separate
<BR>files that contain a list of those files with certain extensions (abcfiles
<BR>and xyzfiles). Simple, right? Not for me. I wanted
my script to read in
<BR>all files located in that directory including those in subdirectories.
For
<BR>some reason I am unable to do that. I've tried:
<P>opendir (DIR, ".");
<-- this worked only for top level
<BR>
(subdirectories ignored)
<P>opendir (DIR, "/unix/jatarab/"); <-- same thing
<P>opendir (DIR, "/unix/jatarab/*"); <-- does NOT work
<P>opendir (DIR, glob("/unix/jatarab/*")) <-- doesn't work either
<P>I have consulted numerous FAQs, tutorials, and Perl gurus trying to
find a
<BR>solution to this. One said that "opendir" was non-recursive and
wasn't
<BR>capable of doing what I wanted it to do. If that's the case,
are there any
<BR>alternatives I can try? Thanks!
<P>JaTara Brown</BLOCKQUOTE>
</HTML>
------------------------------
Date: Tue, 20 Oct 1998 00:59:26 +0100
From: "Edward van Bilderbeek" <edward@ch.twi.tudelft.nl>
Subject: Information from another homepage
Message-Id: <70gg72$h5a$1@news.news-service.com>
Hi all,
does anyone know how I can get information from another homepage (which
Perl-command(s)). I want to get the temperature in London from a
weatherchannel imported on my side. Is there a way to get the data/HTML
source of such a file to your homepage?
Greetings,
Edward
------------------------------
Date: 19 Oct 1998 22:44:13 GMT
From: leej@diver.engr.sgi.com (Lee Jones)
Subject: Re: Overloaded '.' wreaking havoc
Message-Id: <70gfbt$5a734@fido.engr.sgi.com>
In article <sarpvbonrpo.fsf@camel.fastserv.com>,
Uri Guttman <uri@camel.fastserv.com> wrote:
>>>>>> "LJ" == Lee Jones <leej@diver.engr.sgi.com> writes:
>
> LJ> I've got a class that I'm building for a hardware simulator
> LJ> language, and in it, I've overloaded many of the operators to do
> LJ> multiple state arithmetic. All was going well until I overloaded
> LJ> the '.' operator. Now, code such as:
>
> LJ> print("objA = $objA\n");
>
> LJ> (where $objA has been blessed into the class) causes a call to my
> LJ> concatentation operator, for no apparent reason. I haven't had
> LJ> this problem with (e.g.) the '+' overload. I expect the above
> LJ> code to call my stringify() function, but it doesn't (or hasn't by
> LJ> the time it calls the concatentation operator, with fatal
> LJ> results).
>
> LJ> What am I doing wrong?
>
>not much. but you don't realize that interpolation in perl5 is just done
>with a compilation conversion to a series of . operations. you can work
>around it by doing:
[Snippage]
Thanks - that explains a lot. But doesn't that mean that by overloading
operators, you're very likely subjecting yourself to some nasty recursion?
I mean, what if your particular objects can be very conveniently
concatenated by using '.'? Do you have to avoid using '.' inside your
MyConcatenate() function, else it will recurse right back into MyConcatenate()
and so on and so on? What do people do to stop the recursion? Or do you
simply find Yet Another Way to skin the cat, avoiding the '.' operator
altogether? [1]
Regards, Lee
[1] I suppose finding Yet Another Way is really in the best perl tradition.
--
Lee Jones | "Forget all about that macho sh*t
leej@sgi.com | And learn how to play guitar."
650-933-3356 | -John Mellencamp
http://reality.sgi.com/leej_engr
------------------------------
Date: 19 Oct 1998 18:55:39 -0400
From: Uri Guttman <uri@camel.fastserv.com>
Subject: Re: Overloaded '.' wreaking havoc
Message-Id: <sarogr8nous.fsf@camel.fastserv.com>
>>>>> "LJ" == Lee Jones <leej@diver.engr.sgi.com> writes:
>>
LJ> What am I doing wrong?
>> not much. but you don't realize that interpolation in perl5 is
>> just done with a compilation conversion to a series of
>> . operations. you can work around it by doing:
LJ> [Snippage]
LJ> Thanks - that explains a lot. But doesn't that mean that by
LJ> overloading operators, you're very likely subjecting yourself to
LJ> some nasty recursion? I mean, what if your particular objects can
LJ> be very conveniently concatenated by using '.'? Do you have to
LJ> avoid using '.' inside your MyConcatenate() function, else it will
LJ> recurse right back into MyConcatenate() and so on and so on? What
LJ> do people do to stop the recursion? Or do you simply find Yet
LJ> Another Way to skin the cat, avoiding the '.' operator altogether?
you have reached the limits of my knowledge of overload (which is close
to 0). i just knew that "" used . internally. how to stop recursive
overloading i can't answer. try using the c.l.p.moderated group and you
might reach a better audience who can help.
my weak gut feeling is that if you don't use the overload package in the
module which defines it, you get the builtin operator. otherwise it
would make no sense. read the overload docs for more on that.
uri
--
Uri Guttman Fast Engines -- The Leader in Fast CGI Technology
uri@fastengines.com http://www.fastengines.com
------------------------------
Date: 19 Oct 1998 22:58:32 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Overloaded '.' wreaking havoc
Message-Id: <70gg6o$ji7$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Lee Jones
<leej@diver.engr.sgi.com>],
who wrote in article <70gfbt$5a734@fido.engr.sgi.com>:
> Thanks - that explains a lot. But doesn't that mean that by overloading
> operators, you're very likely subjecting yourself to some nasty recursion?
No, unless you write
use overload '+' => sub {shift + shift};
> I mean, what if your particular objects can be very conveniently
> concatenated by using '.'? Do you have to avoid using '.' inside your
> MyConcatenate() function, else it will recurse right back into MyConcatenate()
> and so on and so on? What do people do to stop the recursion?
I do not follow you. What is a difference of '.' and '+'? You did
not overload '+' as shown above, right? You probably add *contents*
of objects, not the references to objects.
A reasonable way to overload '.' is with (skipping ordering issues)
use overload '+' => sub {my ($a,$b) = @_; "$a" . "$b"};
And you original problem was that you overloaded '.' to *mean*
something else than concatenation. Do not. Preserving meaning *is*
important, as you discovered it yourself.
Ilya
------------------------------
Date: 19 Oct 1998 23:05:17 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Overloaded '.' wreaking havoc
Message-Id: <70ggjd$jrf$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Uri Guttman
<uri@camel.fastserv.com>],
who wrote in article <sarogr8nous.fsf@camel.fastserv.com>:
> my weak gut feeling is that if you don't use the overload package in the
> module which defines it, you get the builtin operator. otherwise it
> would make no sense. read the overload docs for more on that.
Exactly the opposite. `use overload' is not lexically scoped, it
modifies the behaviour of the package=class where it was executed.
Also see my other message.
Ilya
------------------------------
Date: 19 Oct 1998 23:17:55 GMT
From: leej@diver.engr.sgi.com (Lee Jones)
Subject: Re: Overloaded '.' wreaking havoc
Message-Id: <70ghb3$5d4n8@fido.engr.sgi.com>
In article <70gg6o$ji7$1@mathserv.mps.ohio-state.edu>,
Ilya Zakharevich <ilya@math.ohio-state.edu> wrote:
>> Thanks - that explains a lot. But doesn't that mean that by overloading
>> operators, you're very likely subjecting yourself to some nasty recursion?
>
>No, unless you write
>
> use overload '+' => sub {shift + shift};
>> I mean, what if your particular objects can be very conveniently
>> concatenated by using '.'? Do you have to avoid using '.' inside your
>> MyConcatenate() function, else it will recurse right back into MyConcatenate()
>> and so on and so on? What do people do to stop the recursion?
>
>I do not follow you. What is a difference of '.' and '+'?
I probably confused things by bringing '+' into the conversation. I overloaded
'+', and got exactly the behavior I wanted.
>A reasonable way to overload '.' is with (skipping ordering issues)
>
> use overload '+' => sub {my ($a,$b) = @_; "$a" . "$b"};
>
>And you original problem was that you overloaded '.' to *mean*
>something else than concatenation. Do not. Preserving meaning *is*
>important, as you discovered it yourself.
No, I overloaded '.' to mean concatenation. The problem is that the
MyConcatenate() function (which is called by the overloaded '.' ) has
other complexities that caused problems when it was called unexpectedly.
I guess my original confusion was because I thought that operators used
inside the module defining the class would *not* be overloaded themselves.
Or that ones called under the cover wouldn't be overloaded, or something
like that. I think Uri expressed the nature of my problem well, and I'm
now trying to figure out how to work around it.
I do appreciate all the input I've gotten.
Regards, Lee
--
Lee Jones | "Forget all about that macho sh*t
leej@sgi.com | And learn how to play guitar."
650-933-3356 | -John Mellencamp
http://reality.sgi.com/leej_engr
------------------------------
Date: 19 Oct 1998 14:42:37 GMT
From: cpierce1@cp500.fsic.ford.com (Clinton Pierce)
Subject: Re: Perl & window.open
Message-Id: <70fj4t$pib2@eccws1.dearborn.ford.com>
In article <70a9bs$eek$1@toto.tig.com.au>,
"Andrew Scott" <andrewcs@tig.com.au> writes:
>
>Tom Phoenix <rootbeer@teleport.com> wrote in message
>Pine.GSO.4.02A.9810151320520.26848-100000@user2.teleport.com...
>>On Thu, 15 Oct 1998 tomkrowas@my-dejanews.com wrote:
>>
>>> What I am wanting to do is to have a new browser window open when the
>>> URL is clicked.
>>
>>That sounds as if you want to ask a browser to do something. The docs,
>>FAQs, and newsgroups about browsers should be of help to you. Good luck!
>
> You are beginning to sound like a broken record.......
Why? Because he answers an inappropriate, frequently asked question with
a kind pointer to the correct places to seek help?
I thought it was a kind, correct, and helpful answer.
#ifdef flame
Can it be helped that so many lazy morons ask the same dumb questions
over and over again, so that the helpful people giving pointers to the
answers sound repetative?
#endif
--
------------------------------
Date: Mon, 19 Oct 1998 22:03:03 GMT
From: eugene@vertical.net
Subject: Re: Perl Cookbook - is this the best perl book?
Message-Id: <70gcun$b08$1@nnrp1.dejanews.com>
Yes, it is the best Perl book.
"Programming Perl" is also the best Perl book.
So is "Learning Perl"; and "Perl Complete" comes pretty close.
(BTW, since we're at it, "The Crying of Lot 49" is also a pretty damn good
book).
Eugene
In article <6vv8h6$799$1@nnrp1.dejanews.com>,
lqyrms@nottingham.ac.uk wrote:
> Could anybody who has read the Perl Cookbook please tell me if this is the
> best perl book to get. There are a couple of reviews of this book at amazon (
> http://www.amazon.com/exec/obidos/ASIN/1565922433/bibs/ ) , but I would
> appreciate the views of the experts in this newsgroup too.
>
> Many thanks,
>
> --
> Mark.
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Mon, 19 Oct 1998 14:37:30 -0500
From: fisherm@tce.com (Mark Leighton Fisher)
Subject: Re: Perl DBI AND Oracle (ORACLE_HOME)
Message-Id: <MPG.10955f06a03ff1c9896a0@news-indy.indy.tce.com>
In article <slrn72kigq.gf2.adelton@aisa.fi.muni.cz>, adelton@fi.muni.cz
says...
> My answer might not be acurate because I never did an Oracle remote
> access, but: you need some kind of Oracle software on the local
> (client) machine (it's called something like SQL*Net). You cannot
> access the remote Oracle server without it (unless you use DBD::Proxy,
> but that's another story).
This is exactly what you need (actually, you need SQL*Net and Pro*C).
(Be cautious when receiving the Oracle software -- when I installed
Oracle 7.3, my SQL*Net and Pro*C software came on the Oracle server CD,
with *nothing* (on the packing slip or CD-ROM) indicating that either of
these was present -- you just had to know that you were getting the right
stuff.)
==========================================================
Mark Leighton Fisher Thomson Consumer Electronics
fisherm@indy.tce.com Indianapolis, IN
"Browser Torture Specialist, First Class"
------------------------------
Date: Mon, 19 Oct 1998 23:02:11 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Perl for Win 3.11
Message-Id: <TxPW1.13$6a4.98536@nsw.nnrp.telstra.net>
In article <362aafc3.1161444@news.kolumbus.fi>,
cock-a-doodle-doo@copacabana.com (Ei/No) writes:
> Where I can find Perl compiled for Windows 3.11?
That would be perl for MSDOS
Check out CPAN:
http://www.perl.com/CPAN/
http://www.perl.com/CPAN/ports/msdos
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | 75% of the people make up 3/4 of the
Commercial Dynamics Pty. Ltd. | population.
NSW, Australia |
------------------------------
Date: Mon, 19 Oct 1998 18:31:08 -0400 (EDT)
From: pietb@nic.mil (Piet Barber)
Subject: Re: Perl-Users Digest, Issue: 4012 Volume: 8
Message-Id: <Pine.SUN.4.02.9810191824340.14685-100000@ops.nic.mil>
> There's a luvverly little module for this, HTTPD::UserAdmin.
> htpasswd is an abstraction (in this case, a user-interface)
> of an underlying mechanism. And this is what a good perl
> solution should build upon.
Dag, that's a pretty good solution. I'm going to have to visit CPAN
again. Seems there's a module for everything.
So the question arises: How does one keep up with all the new modules that
can solve problems like this?
Ya gotta admit, that to the newbie a "How do FTP in Perl?" question does
not beget "libnet" without lots of research and poking around.
Is there a database of questions with module solutions?
Like:
Question: "How do I do FOO?"
Answer: Use the "HTTP::Foo" Module.
(No, I'm NOT talking about the search enigne on www.perl.com).
(No, I'm NOT talking about the Perl FAQ, either).
------------------------------
Date: 19 Oct 1998 14:59:53 -0700
From: Brad Murray <murrayb@vansel.alcatel.com>
Subject: Re: Raleigh.pm (Raleigh, NC, USA perl mongers) has registered
Message-Id: <uhfx09pra.fsf@vansel.alcatel.com>
John Porter <jdporter@min.net> writes:
> Joergen W. Lang wrote:
> >
> > Which means you are expected to know how to use a fork().
> > (RTFM = "read the forking manual" ?)
>
> And why are we talking about feeding people, anyway?
> Aren't we the ones most vociferously promoting the
> "teach a man to fish" philosophy?
So you're recommending we just let everyone in to a room full of wild
animals with an axe, a lighter, and a bag of briquettes? You're going
to need to supply a lot of cheap beer for that to fly. Actually, maybe
not.
--
Brad J. Murray
Software Analyst "Cogito ergo am."
Alcatel Canada (DRH)
------------------------------
Date: Mon, 19 Oct 1998 22:34:41 GMT
From: Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com>
Subject: Re: Raleigh.pm (Raleigh, NC, USA perl mongers) has registered
Message-Id: <362BBBFB.83EB0E87@bbnplanet.com>
Brad Murray wrote:
> So you're recommending we just let everyone in to a room full of wild
> animals with an axe, a lighter, and a bag of briquettes? You're going
> to need to supply a lot of cheap beer for that to fly. Actually, maybe
> not.
I was thinking about something a bit less Robert Bly :) Fine rare
scotches and around 100 taps, of course, I could stash some Bud for the
heathens.
e.
After all, the cultivated person's first duty is to
always be prepared to rewrite the encyclopedia. - U. Eco -
------------------------------
Date: 19 Oct 1998 19:02:43 -0400
From: Uri Guttman <uri@camel.fastserv.com>
Subject: Re: Raleigh.pm (Raleigh, NC, USA perl mongers) has registered
Message-Id: <sarn26snoj0.fsf@camel.fastserv.com>
>>>>> "BM" == Brad Murray <murrayb@vansel.alcatel.com> writes:
BM> John Porter <jdporter@min.net> writes:
>> Joergen W. Lang wrote: > > Which means you are expected to know how
>> to use a fork(). > (RTFM = "read the forking manual" ?)
>>
>> And why are we talking about feeding people, anyway? Aren't we the
>> ones most vociferously promoting the "teach a man to fish"
>> philosophy?
BM> So you're recommending we just let everyone in to a room full of
BM> wild animals with an axe, a lighter, and a bag of briquettes?
BM> You're going to need to supply a lot of cheap beer for that to
BM> fly. Actually, maybe not.
what about briquettes and LOX?. a professor in the midwest (this is a
well known true story on the web) lit briquettes which had been soaked
in LOX. each briquette had the power of a stick of dynamite. he also
converted a cheap hibachi slag in the order of seconds!
check out http://ghg.ecn.purdue.edu/ for all the gory details! lot's o'
fun!
uri
--
Uri Guttman Fast Engines -- The Leader in Fast CGI Technology
uri@fastengines.com http://www.fastengines.com
------------------------------
Date: Mon, 19 Oct 1998 23:09:59 GMT
From: Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com>
Subject: Re: Raleigh.pm (Raleigh, NC, USA perl mongers) has registered
Message-Id: <362BC441.14F7A52C@bbnplanet.com>
Uri Guttman wrote:
> What about briquettes and LOX?. a professor in the midwest (this is a
> well known true story on the web) lit briquettes which had been soaked
> in LOX. each briquette had the power of a stick of dynamite. he also
And people wonder why chemists are crazy. :) When I was in school we had
fun with all sorts of stuff. There will be no chemists allowed into the
bld.
e.
After all, the cultivated person's first duty is to
always be prepared to rewrite the encyclopedia. - U. Eco -
------------------------------
Date: Mon, 19 Oct 1998 22:51:14 GMT
From: Rick Delaney <rick.delaney@shaw.wave.ca>
Subject: Re: Replacing multiply ":" with a string.
Message-Id: <362BC3ED.AAFFFE2@shaw.wave.ca>
[posted & mailed]
Rob Bridal wrote:
>
> #!/usr/bin/perl5.00404
> $expr = "_";
> $_ = "1:2:3:4:5";
> s/:/$expr/eg;
^
^
That e is unnecessary unless you use single quotes as delimiters.
s':'$expr'eg;# need the e to force eval of right side
s/:/$expr/g; # right side is interpolated
perldoc perlop
Also, please uncheck the box "by default send HTML messages" under
Edit->Preferences->Mail&Groups->Messages in your lame newsreader.
--
Rick Delaney
rick.delaney@shaw.wave.ca
------------------------------
Date: 19 Oct 1998 18:35:11 -0400
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: Shell commands
Message-Id: <70geqv$q11$1@monet.op.net>
In article <362BB3A5.2CD73EEA@min.net>, John Porter <jdporter@min.net> wrote:
>Mark-Jason Dominus wrote:
>>
>> It used to drive me nuts when the Pascal programmers would say primly
>> `That is not a function. It is a subroutine.'
>
>I'm sorry, M-J, but it is a "procedure", not a "subroutine".
Oh, that's right. I knew I didn't have it right but I couldn't
just remember how to say `subroutine' in Dutch.
Thanks for the correction.
------------------------------
Date: Mon, 19 Oct 1998 23:35:20 GMT
From: tnguru@termnetinc.com (Ben Coleman)
Subject: Re: Sorry
Message-Id: <362bcc6d.936713552@news.mindspring.com>
On Fri, 16 Oct 1998 02:08:51 GMT, Lee.Lindley@bigfoot.com wrote:
>Is it ethical for a linguist to make a play on words?
Why not? After all, who's better qualified?
At least he's not pulling SKB's cross-discipline word plays.
Ben
--
Ben Coleman
Senior Systems Analyst
TermNet Merchant Services, Inc.
Atlanta, GA
------------------------------
Date: Mon, 19 Oct 1998 18:56:35 -0400
From: Michael Girone <mgirone@caip.rutgers.edu>
Subject: Strict and Global Variables
Message-Id: <Pine.SUN.3.95.981019184705.18799A-100000@caip.rutgers.edu>
Hello.
I'm trying to write a Perl script that is somewhat optimized for
speed. To this end, I'd like to use global variables. I'd also, however,
like to "use strict".
So, I was wondering if the way to have global variables while
satisfying strict was to both "my" and then "local" every global variable
at the outermost level of code. Like this:
#!/usr/local/bin/perl5 -w
use strict;
my $name; #satisfy strict
local $name; #make the variable visible throughout the entire program
Although globals are usually frowned upon, given that globals will
be used, is this practice acceptible (and will it work)?
Thank you,
Mike
-------------------------------------------
Michael Girone
The Human-Machine Interface Laboratory
CAIP, Rutgers University
http://www.caip.rutgers.edu/vrlab/index.html
------------------------------
Date: Mon, 19 Oct 1998 23:11:28 GMT
From: Rick Delaney <rick.delaney@shaw.wave.ca>
Subject: Re: Strict and Global Variables
Message-Id: <362BC8B4.A2A7BF04@shaw.wave.ca>
[posted & mailed]
Michael Girone wrote:
>
> So, I was wondering if the way to have global variables while
> satisfying strict was to both "my" and then "local" every global
> variable at the outermost level of code.
[untried code snipped]
> Although globals are usually frowned upon, given that globals will
> be used, is this practice acceptible (and will it work)?
What happened when your tried it? (I think this needs to be added as a
standard clpm abbreviation, WHWYTI).
If you want to use globals and also use strict the usual way it is done
is to use vars:
use strict;
use vars qw($put @your %globals $here);
--
Rick Delaney
rick.delaney@shaw.wave.ca
------------------------------
Date: Mon, 19 Oct 1998 16:49:20 -0500
From: Rob Bridal <rbridal@bcl.net>
Subject: Re: Tilde delimited parsing
Message-Id: <362BB3E0.5CF351EE@bcl.net>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
$_ = "REC HEAD~016967~~19980728~SAMPLE INSTRUCTIONS";
<BR>s/\~/\|/g;
<P>This will change all the ~ things to | things.
<P>"Marcus J. Foody" wrote:
<BLOCKQUOTE TYPE=CITE>Hello, I'm trying to parse a tilde delimited text
file into a pipe
<BR>delimited text file. It seems some of the fields contain no value
but
<BR>still need to be accounted for. I'm able to parse the tilde delmited
<BR>text file but once the file is parsed(into the pipe delimited file)
the
<BR>spaces vanish.
<P>Example of tilde delimited text file:
<BR>REC HEAD~016967~~19980728~SAMPLE INSTRUCTIONS
<P>Current result:
<BR>REC HEAD|016967|19980728|SAMPLE INSTRUCTIONS
<P>Possible solution:
<BR>REC HEAD|016967||19980728|SAMPLE INSTRUCTIONS
<P>Can anyone help
<BR>thanks
<BR>marcus</BLOCKQUOTE>
</HTML>
------------------------------
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 4013
**************************************