[12074] in Perl-Users-Digest
Perl-Users Digest, Issue: 5674 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat May 15 16:07:19 1999
Date: Sat, 15 May 99 13:00:18 -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 Sat, 15 May 1999 Volume: 8 Number: 5674
Today's topics:
Access and Web (I'm lost and tried everything: HELP ME! <gerbenhd@nederlands.com>
ANNOUNCE: DocNav 0.02 - Navigating the Perl Documentati (Peter Rowell)
Re: Chdir (cwd) of shell with perl Script (Larry Rosler)
Count number of html files and print it a html file ? <factory@factory.co.kr>
Re: FAQ 4.30: How do I strip blank space from the begin (Larry Rosler)
generated functions and caller (or better way?) (Rand A. Bamberg)
Re: Hash arrays (Tramm Hudson)
Re: Hash arrays (tony summerfelt)
Help - Perl/CGI posts to another script <dales@enhanced-performance.com>
Re: Hlp! XSUBPP has a matter. <okpolis@okpolis.joo.net>
How to create an iterable list on the fly? <brannon@quake.usc.edu>
Re: How to program a shell '#!<program>' statement. <barmar@bbnplanet.com>
Re: htaccess <gellyfish@gellyfish.com>
Re: man pages and FAQs: why posted? (Peter Rowell)
Re: man pages and FAQs: why posted? <tchrist@mox.perl.com>
Re: man pages and FAQs: why posted? (Bart Lateur)
Re: man pages and FAQs: why posted? <tchrist@mox.perl.com>
Re: newbie problems with Perl CGI and Netscape <gellyfish@gellyfish.com>
Re: Off-topic: France (was Re: Perl "constructors") (Andre L.)
Passing references <briggs@texas.net>
Re: Perl "constructors" (Gregory Snow)
Re: Perlscript error <gellyfish@gellyfish.com>
regexp problem <andricm@cs.pdx.edu>
Re: Where is LWP: POP3Client.pm? <gellyfish@gellyfish.com>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 15 May 1999 19:04:03 +0200
From: "Genie" <gerbenhd@nederlands.com>
Subject: Access and Web (I'm lost and tried everything: HELP ME!)
Message-Id: <7hk9k9$9k6$1@news.telekabel.nl>
Hi All,
I've looked for FAQs and instructions on how to do this everywhere, so I'm
not just nagging!
Can someone send me an URL where I can find info about how to link Access
Dbase too web!
Do I have to use SQL? And what is it? (now you will think what a morron, he
should have learned that, well I've read all the stuff, and most programmers
dont even try keeping it simple for newbees).
And how do I use it on my Apache Server?
I'm really new to this
I don't need the full thing
Just a FEW ANSWERS would make me extremely happy.
Thanx in advanced
Gerben H. Dijkstra
gerben@kabelnoord.nl
------------------------------
Date: 15 May 1999 11:13:37 -0700
From: thirdeye@sonic.net (Peter Rowell)
Subject: ANNOUNCE: DocNav 0.02 - Navigating the Perl Documentation
Message-Id: <7hkdgh$c3g@bolt.sonic.net>
TomC mentioned "putting a bullet" through perldoc. DocNav may be a
reasonable first approximation of that bullet.
DocNav rev 0.02 is available for downloading and testing.
>From the file 'docnav/about.html':
DocNav is a program for navigating through large collections
of documentation. It is template-driven and can be customized
for each collection by describing the grouping of the documents,
lists of additional resources, etc. It is intended to be the
one place you need to go to find help, FAQs, tutorials, glossaries
and, of course, the reference manual.
DocNav's search differs from most other systems in that it
works at the paragraph level instead of the document level.
Instead of being told that your hit is some where in a 50-odd
page file, it shows you the matching paragraphs. Clicking on
a result takes you to that point in the master document. Future
versions of DocNav will optionally return results at the
subsection, section or chapter levels.
The first collection DocNav has been applied to is the
documentation for the Perl programming language. This is
appropriate since DocNav is written entirely in Perl. DocNav
has also been applied to other collections such as those for
Java, the Apache server and the FreeBSD version of UN*X.
INSTALLATION
Download either file and unpack it in the desired parent directory.
It will unpack into a new subdirectory named "docnav".
http://www.thirdeye.com/~thirdeye/docnav/docnav.zip
http://www.thirdeye.com/~thirdeye/docnav/docnav.tar.gz
The install instructions are, strangely enough, in install.html.
A simple install for the seriously impatient:
1. Untar/unzip
2. Run "updateperlhtml" (or double-click install.bat)
NOTE: A full build of the Perl HTML from pod/pm files plus
the conversion to paragraph mode can take 5 to 20 minutes
depending on number of modules installed and the system
speed. (When run as a simple update it takes about 30
seconds.)
3. Run "miniserver -v &" (or double-click miniserver.bat)
It will print a message showing the URL it is running at.
Note: Docnav can also run as a CGI script under various
webservers. It has been tested with Apache & Xitami.
5. Enjoy!
Please report any problems, suggestions, etc. to docnav@thirdeye.com.
Peter Rowell
Third Eye Software
peter@thirdeye.com
------------------------------
Date: Sat, 15 May 1999 10:04:52 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Chdir (cwd) of shell with perl Script
Message-Id: <MPG.11a74910411bfbb989a71@nntp.hpl.hp.com>
[Posted and a courtesy copy sent.]
In article <373D8E51.5E63B335@rbg.informatik.tu-darmstadt.de> on Sat, 15
May 1999 17:10:09 +0200, =?iso-8859-1?Q?Bj=F6rn?=
<bwerkman@rbg.informatik.tu-darmstadt.de> says...
> I'm trying to write a perl script, that I call from my csh with a
> abreviation
> for a deep nested directory as parameter, and after termination the csh
> current
> working dir should be the meant directory.
> The problem with this simple task seems to be that changes done with
> chdir or system "cd " are only temporary while the execution of my
> script.
> Is there a possibilty to impinge on the cwd of the shell that calls the
> script using a perl command line option or something else?
perlfaq8: "I {changed directory, modified my environment} in a perl
script. How come the change disappeared when I exited the script? How do
I get my changes to be visible?"
Unix
In the strictest sense, it can't be done -- the script executes as a
different process from the shell it was started from. Changes to a
process are not reflected in its parent, only in its own children
created after the change. There is shell magic that may allow you to
fake it by eval()ing the script's output in your shell; check out the
comp.unix.questions FAQ for details.
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Sun, 16 May 1999 03:31:14 +0900
From: "Yeong Mo/Director Hana co." <factory@factory.co.kr>
Subject: Count number of html files and print it a html file ?
Message-Id: <7hkdtk$fvj$1@news2.kornet.net>
[Q] Count number of html files and print it a html file ?
I have many html files under several directories.
Is it possible to check the number of html files,
and print the numbers at a html file ?
Example;
================================
Directory name || Number of files
================================
dir-1 82 html files
dir-2 50 html files
dir-3 76 html files
.
.
.
dir-25 63 html files
------------------------------
Date: Sat, 15 May 1999 10:35:27 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: FAQ 4.30: How do I strip blank space from the beginning/end of a string?
Message-Id: <MPG.11a750366cd9ba56989a72@nntp.hpl.hp.com>
[Posted and a courtesy copy sent.]
In article <373da0bb@cs.colorado.edu> on 15 May 1999 10:28:43 -0700, Tom
Christiansen <perlfaq-suggestions@perl.com> says...
...
> This is unnecessarily slow, destructive, and fails with embedded
> newlines.
This sentence lacks parallel structure -- adjectival phrase, adjective,
verbal phrase.
> It is much better faster to do this in two steps:
This sentence seems indecisive about which adjective to use, so it uses
both. Adverb adjective adjective?
...
> This idiom takes advantage of the `foreach' loop's aliasing
> behavior to factor out common code. You can do this on several
> strings at once, or arrays, or even the values of a hash if you use
> a slide:
Whee! I love to use a slide.
I certainly agree that these things should be published regularly. They
should also be fixed regularly. :-)
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Sat, 15 May 1999 19:32:27 GMT
From: rand@qualityic.com (Rand A. Bamberg)
Subject: generated functions and caller (or better way?)
Message-Id: <373dcb2c.25903650@news.jump.net>
(I originally posted this question to c.l.p.moderated on
5/7/99, but it's languished there a week without any reply.
This is my second attempt, rephrased somewhat.)
Here's my problem: I want to generate functions on-the-fly
*and* have the generated functions be able to report
errors using C<caller>. (Toy examples below.)
AFAIK there are two ways to generate a function at
run-time: either assign an anonymous closure to a typeglob
as described in the Cookbook p358 (a little exotic), or
assemble the new function as a string and C<eval> it (ick).
I'd be happy with the first method except that C<caller>
doesn't grok what's happening; it returns __ANON__ despite
the fact that Perl obviously understands the mapping.
Is there room for a better way to do this? An extension
to C<sub>, perhaps, that took a name : sub $name { };
Or, if assigning-to-typeglobs will remain the preferred
way to do this, is it possible to enhance C<caller>
to Do What I Mean and figure out when an anonymous
closure is being called through a typeglob as a named
function?
Thanks,
Advice welcome,
Rand Bamberg.
# ------------------------------------------------------- #
no strict 'refs';
for my $color (qw/red blue green/) {
*$color = sub {
my $name = (caller(0))[3];
my $arg = shift or print("USAGE: $name(arg)\n"), return;
print "$name --> $arg\n";
};
}
sub grey {
my $name = (caller(0))[3];
my $arg = shift or print("USAGE: $name(arg)\n"), return;
print "$name --> $arg\n";
}
*crimson = \&red;
*gray = \&grey;
red("dawn"); # prints "main::__ANON__ --> dawn
crimson("tide"); # prints "main::__ANON__ --> tide
gray("day"); # prints "main::grey --> day
blue(); # prints "USAGE: main::__ANON__(arg)
grey(); # prints "USAGE: main::grey(arg)
# ------------------------------------------------------- #
------------------------------
Date: 15 May 1999 11:42:21 -0600
From: hudson@swcp.com (Tramm Hudson)
Subject: Re: Hash arrays
Message-Id: <7hkblt$jrr@llama.swcp.com>
In article <7hjlcv$t2e$1@nnrp1.deja.com>, <armchair@my-dejanews.com> wrote:
[snip]
> Here's a dime old fellow. Get a real computer, get a real newsreader,
> get a good cup of coffee.
Pot, meet Kettle. You are running NT and posting from Deja News with
a web browser -- hardly a real computer or newsreader by anyone's
standards. Don't forget your multiple postings of many articles, poor
line wrapping skills and overall lack of proper follow-up editing.
But don't let that stop you from criticizing one of the most prolific
and well written posters on Usenet as a whole.
Maybe TomC will see this and get a good laugh, although I suspect he has
already kill filed this entire thread.
--
o hudson@swcp.com tbhudso@cs.sandia.gov O___|
/|\ http://www.swcp.com/~hudson/ H 505.266.59.96 /\ \_
<< KC5RNF @ N5YYF.NM.AMPR.ORG W 505.284.24.32 \ \/\_\
0 U \_ |
------------------------------
Date: Sat, 15 May 1999 18:43:28 GMT
From: tsummerfelt1@myspleenhome.com (tony summerfelt)
Subject: Re: Hash arrays
Message-Id: <slrn7jrg18.sj.tsummerfelt1@co146453-a.kico1.wave.home.com>
On Sat, 15 May 1999 11:40:28 GMT, armchair@my-dejanews.com wrote:
> > Then test that. "if (%hash)".
> > It's usually better to learn Perl first.
> I would definitely have to study real hard and long to find out that a
> hash name inside an if test returns 0 if the has is empty.
i dunno. i'm a perl novice and *i* knew that.
i think there's a perl quote somewhere that goes like `if you think
something will work in perl, try it. it usually does.'
that alone has led me to write some stuff while `thinking outside of the box'
--
*--------------------------------------
|
|remove myspleen to email
|
*-----------------------
------------------------------
Date: Sat, 15 May 1999 11:03:35 -0700
From: Dale Sutcliffe <dales@enhanced-performance.com>
Subject: Help - Perl/CGI posts to another script
Message-Id: <373DB6F7.34674EC0@enhanced-performance.com>
I am using sockets to do a post to script on another server.
How do I urlencode data? That is, how do I convert characters (other
than alpha-numeric) into the three-character string "%xy" where xy is
the two-digit hexidecimal representation of the lower 16-bits of the
character? For example, the "@" symbol is represented by %40
Thanks.
------------------------------
Date: Sun, 16 May 1999 02:30:30 +0900
From: =?euc-kr?B?udrBvrq5IChQYXJrLCBKb25nLVBvcmsp?= <okpolis@okpolis.joo.net>
Subject: Re: Hlp! XSUBPP has a matter.
Message-Id: <7hkb5l$b20$1@news2.kornet.net>
c:\www\gad\test\mytest>perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 03) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-object
uname=''
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cl.exe', optimize='-O2 -MD -DNDEBUG -TP -GX', gccversion=
cppflags='-DWIN32'
ccflags ='-O2 -MD -DNDEBUG -TP -GX -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DE
S_FCRYPT -DPERL_OBJECT'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release -machine:x86'
libpth="C:\Perl\lib\Core" "C:\PROGRA~1\MICROS~2\VC98\LIB" "C:\PROGRA~1\MICRO
S~2\VC98\MFC\LIB" ""
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.
lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock
32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib PerlCRT.lib
libc=C:\Perl\lib\core\PerlCRT.lib, so=dll, useshrplib=yes, libperl=perlcore.
lib
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release -machine:x86'
Characteristics of this binary (from libperl):
Locally applied patches:
ActivePerl Build 515
Built under MSWin32
Compiled at Apr 9 1999 19:53:14
@INC:
C:\PERL\lib
C:\PERL\site\lib
.
c:\www\gad\test\mytest>perl Makefile.PL
Checking if your kit is complete...
Looks good
Usage: xsubpp [-v] [-C++] [-except] [-prototypes] [-noversioncheck] [-nolinenumb
ers] [-s pattern] [-typemap typemap]... file.xs
ARGV is temp000 2
Writing Makefile for Mytest
c:\www\gad\test\mytest>ver
Take Command/32 2.02B Windows 98 4.10
c:\www\gad\test\mytest>dir
Volume in drive C is OKC1 C Serial number is 0F47:17D8
Directory of C:\www\gad\test\Mytest\*
99-05-15 8:09p <DIR> .
99-05-15 8:09p <DIR> ..
99-05-16 2:29a 0 &1
99-05-15 11:54p 0 'Mytest',
99-05-15 8:09p 124 Changes
99-05-16 2:29a 22,034 Makefile
99-05-15 11:52p 22,013 Makefile.old
99-05-15 8:09p 383 Makefile.PL
99-05-15 8:09p 63 MANIFEST
99-05-15 8:09p 1,072 Mytest.pm
99-05-15 8:09p 102 Mytest.xs
99-05-15 8:09p 671 test.pl
46,462 bytes in 10 files and 2 dirs 73,728 bytes allocated
157,241,344 bytes free
c:\www\gad\test\mytest>
------------------------------
Date: 15 May 1999 12:33:24 -0700
From: tbrannon <brannon@quake.usc.edu>
Subject: How to create an iterable list on the fly?
Message-Id: <ysizbtfm6scd.fsf@nunki.usc.edu>
I want to create a simple list of strings which I sort dereference,
but, I can't seem to create the list on the fly:
$num=10;
$den=22;
for (split "num den") {
print "$$_\n";
}
for qw(num den) {
print "$$_\n";
}
--
Terrence Brannon * brannon@lnc.usc.edu * http://lnc.usc.edu/~brannon
(213) 740-3397 [office] (323) 294-3028 [home]
------------------------------
Date: Sat, 15 May 1999 17:10:16 GMT
From: Barry Margolin <barmar@bbnplanet.com>
Subject: Re: How to program a shell '#!<program>' statement.
Message-Id: <YTh%2.765$jw4.51828@burlma1-snr2>
In article <7hjvsn$9gh$1@news1.cableinet.co.uk>,
Neil Rutherford <neil_rutherford@cableinet.co.uk> wrote:
>I'm not trying to rewrite a shell, just a simple program to handle the input
>from the
>remainder of the file. As you know, the #! instructs the shell you are
>using to
>pass the remainder of the statements (lines) that follow to your
>interpruter.
As someone else pointed out, it instructs the *kernel*. The shell simply
calls execv(pathname, argv), and the kernel determines how to run the
program named in pathname. #! was implemented by very early shells, but it
was moved into kernels over a decade ago.
>Does anyone know how the shell interacts with a program in 'C'?
>for example, how do i have myprog pick up what's being passed... i've tried
>pipes and even stdin.
The pathname of the script file is passed as the last argument to the
interpreter named in the #! line. If it were passed as stdin, how would a
script read the stdin that was originally passed to it by the user?
--
Barry Margolin, barmar@bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
------------------------------
Date: 15 May 1999 18:51:34 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: htaccess
Message-Id: <7hkfnm$2a0$1@gellyfish.btinternet.com>
On Fri, 14 May 1999 18:41:07 -0700 Eric Umehara wrote:
> Hi,
>
> I've been working on a series of Perl scripts for a simple registration
> program for web browsers. I want to create a restricted area through which
> you get to through the pop-up password dialoge box used through htaccess.
> The problem I have is that I can't figure out how to find out which user is
> requesting a page. I have thought about this problem and have come up with
> couple soulutions that I'm a bit uneasy to implement. The first is to assign
> each person a unique number or key. Have this be passed in the
> $ENV{'QUERY_STRING'} variable and match it up with a name. Another solution
> is to use cookies which I want to steer away from because the user needs to
> be able to safely log into the registration program from any computer.
> This program is intended for a small audience, perhaps fifty people and
> at most four hundred, so I don't need anything seriously complex.
>
Sorry, but I'm not sure what your question is.
However you will be glad to know that this type of question is
addressed in the CGI FAQ at:
<http://www.webthing.com/tutorials/cgifaq.html>
I'm sure that once you have read this you will realize that this is not
actually a Perl question at all.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 15 May 1999 11:23:57 -0700
From: thirdeye@sonic.net (Peter Rowell)
Subject: Re: man pages and FAQs: why posted?
Message-Id: <7hke3t$ck5@bolt.sonic.net>
In article <373CBDE4.6A89FADB@mail.cor.epa.gov>,
David L. Cassell <cassell@mail.cor.epa.gov> wrote:
>That's why, now that Perlmonth is on the web, I have started
>pointing sufficiently clue-challenged people to Dave Cross's
>article there on using perldoc etc. to read the docs in the
>first place.
>
>What more than that would you suggest?
I just posted an announcement about DocNav 0.02. It may help alleviate
some of the problems that newbies (and oldbies) have find things in the
"friendly" documentation. Simply put, it is a simple search engine
for documentation.
One of the pages for each collection is a Resources page. I want
to collect URLs and/or search forms for all of the main nexi of
the Perl world so that people are never more than one or two
clicks away from finding what they want. I will add Perlmonth
to the resources page in the next rev.
Please check out the posting and/or the site at:
http://www.thirdeye.com/~thirdeye/docnav
Peter Rowell
Third Eye Software
peter@thirdeye.com
------------------------------
Date: 15 May 1999 12:29:57 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: man pages and FAQs: why posted?
Message-Id: <373dbd25@cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc, "Matthew O. Persico" <mpersico@erols.com> writes:
:And what, pray tell, if anything, are you intending to replace it with?
% man ucfirst
which on toy systems, or confused ones, would merely be a wrapper around
% perl -Man ucfirst
--tom
--
> This made me wonder, suddenly: can telnet be written in perl?
Of course it can be written in Perl. Now if you'd said nroff,
that would be more challenging... --Larry Wall
------------------------------
Date: Sat, 15 May 1999 19:28:40 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: man pages and FAQs: why posted?
Message-Id: <373dc7d6.8882361@news.skynet.be>
Tom Christiansen wrote:
> % perl -Man ucfirst
You mean the module name is "an"? How awkward.
Bart.
------------------------------
Date: 15 May 1999 13:47:15 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: man pages and FAQs: why posted?
Message-Id: <373dcf43@cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
bart.lateur@skynet.be (Bart Lateur) writes:
:> % perl -Man ucfirst
:
:You mean the module name is "an"? How awkward.
Au contraire. Recall, if you would
troff -man foo.1
troff -ms foo.ms
troff -me foo.me
troff -mandoc foo.1
Those are of course /usr/lib/tmac/tmac.an, /usr/lib/tmac/tmac.s,
/usr/lib/tmac/tmac.e, and and /usr/lib/tmac/tmac.andoc respectively.
Consider also
perl -MO=B
perl -MO=C
perl -MO=CC
In which we access the module store in O.pm, importing B, C,
and CC respectively.
I suppose I could instead use
perl -Man=lcfirst
--tom
--
"If you don't ask, you already know the answer". --me
------------------------------
Date: 15 May 1999 19:02:15 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: newbie problems with Perl CGI and Netscape
Message-Id: <7hkgbn$2a5$1@gellyfish.btinternet.com>
On Fri, 14 May 1999 22:08:05 -0400 Drifter wrote:
> When I print out html code in my cgi script it works great in IE but in
> Netscape,
> all i get is a listing of the code and not the web page.
>
> i have tried using print "Content-type: text/html";
>
> tried cgi-lib.pm
>
I have never heard of cgi-lib.pm (sounds like someone got silly with
pl2pm on cgi-lib.pl to me )
> &PrintHeader;
>
> &HtmlTop;
> .
> .
> html code
> .
> .
>
> &HtmlBot;
>
> everything works great in IE, but nothing works in Netscape!
>
> Can neone help me?
>
I have never heard of 'neone' - it sounds like something derived from
a rare gas.
Alternatively:
Yes I am sure that the vendors of one of these broken browser will
be very happy to assist you with your problem.
Or:
The problem is with your server - you will find an answer if you ask this
question in a newsgroup that is interested in these matters.
Or:
You would experience this problem whatever language you had chosen to
write your program - you will have a better chance of solving this if
you spent some time in determining what it was that actually caused the
results that you were experiencing.
Because whatever way you might put it it has nothing whatsoever to do
with Perl.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sat, 15 May 1999 13:46:24 -0500
From: alecler@cam.org (Andre L.)
Subject: Re: Off-topic: France (was Re: Perl "constructors")
Message-Id: <alecler-1505991346240001@dialup-542.hip.cam.org>
In article <x3yg14zo7rn.fsf@tigre.matrox.com>, Ala Qumsieh
<aqumsieh@matrox.com> wrote:
> Scratchie <upsetter@ziplink.net> writes:
>
> > I once went to France with an (American) friend who couldn't understand
> > why supermarkets sold bread in plastic bags that had little holes in them.
> > "It would stay fresh a lot longer if they'd use a regular bag", he
> > lamented.
>
> I hope I am not being stupid here, but why do the bags have little
> holes in them?
To allow the humidity from the bread to evaporate. This keeps it crusty,
and actually fresher.
Andre
------------------------------
Date: Sat, 15 May 1999 13:19:14 +0000
From: Briggs Reschke <briggs@texas.net>
Subject: Passing references
Message-Id: <373D6642.1796DE6F@texas.net>
I am trying to do something like, in C, passing a pointer to an array of
structures to a subroutine and I'm getting nowhere. The docs that I've
come across are just confusing me more.
Any help would be much appreciated.
--
(
/\___/\ _ /
( o o ) /
oO ( o ) Oo
` oO U Oo
---------------------------------
Briggs Reschke - briggs@texas.net
http://lonestar.texas.net/~briggs
------------------------------
Date: 15 May 1999 17:15:41 GMT
From: snow@biostat.washington.edu (Gregory Snow)
Subject: Re: Perl "constructors"
Message-Id: <7hka3t$16n8$1@nntp6.u.washington.edu>
In article <7hjhv6$r17$1@nnrp1.deja.com>, <armchair@my-dejanews.com> wrote:
[snip]
>Hmmm, lacking knowledge, or showing poor judgement regarding program
>speed. That's an easy one - I don't know Perl. How does access of hashes
>compare to arrays performance-wise?? And does the size of the hash key
>string affect it?
[snip]
>Actualy, I haven't left C++. Would I be correct in surmising that the
>slogan of this newsgroup is not "everybody join in".
I think the slogan is more like "Do your homework"
If you had started out by asking why or how, instead of saying what
was wrong without trying to understand why many consider it right, you
would have received a much more positive response.
--
-------------------------------------------------------------------------------
Gregory L. Snow | MATZ'S RULE REGARDING MEDICATIONS:
(Greg) | A drug is that substance which, when injected
snow@biostat.washington.edu | into a rat, will produce a scientific report.
------------------------------
Date: 15 May 1999 19:25:06 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perlscript error
Message-Id: <7hkhmi$2aa$1@gellyfish.btinternet.com>
On Thu, 13 May 1999 16:50:59 GMT sureshvv@hotmail.com wrote:
> I recently downloaded Perlscript from ActiveState
> on my windows-nt server.
Nah. You downloaded Perl. The ActiveState Win32 port also
installs an OLE scripting engine.
> When I load the plhello.htm
> example, it appears fine on the screen. But when I hit the
> PerlScript button, I get an error saying:
>
> Cannot call method "Text1" on an undefined value at line 4...
>
Your OLE object provider is broken - this is probably more to with
your windows setup rather than Perl I'm afraid. You probably had
some application open when you installed Perl that prevented the
necessary changes being made - I would ask in some microsoft group
or alternatively in one of the mailing-lists that can be found out
about from the ActiveState site.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sat, 15 May 1999 12:28:14 -0700
From: Mile Andric <andricm@cs.pdx.edu>
Subject: regexp problem
Message-Id: <373DCACE.156C1DF0@cs.pdx.edu>
I have a string of words that might have an apostrophe (') in them.
However, I just need to extract words that have one or more consonants
in the beginning of the word and that don't have apostrophe in the body
of the word.
For example in line: "this isn't a word", I need first and fourth word,
but not second or third.
So far I tried various combinations but it seems that greedy property is
what is preventing
me from match. Here is one (of many) versions of regexp I tried:
$text=~s/\b([b-df-hj-np-tv-z]+)([^\']*)/$2$3$1/gi ;
$text contains the entire line, the first cluster of consonants is
supposed to be find with
[b-df-hj-np-tv-z]+ followed by zero or more characters that are not an
apostrophe (')
Yet for the words such as isn't that have a vowel in the beginning this
doesn't work.
Perl somehow matches that apostrophe and consonant after it as a new
word, I think.
I don't understand why is this happening and how to avoid words that
have a special character (such as apostrophe) in the body of the word.
Please help.
------------------------------
Date: 15 May 1999 18:43:01 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Where is LWP: POP3Client.pm?
Message-Id: <7hkf7l$29c$1@gellyfish.btinternet.com>
On Sat, 15 May 1999 09:17:41 GMT Toby Poynder wrote:
> On Sat, 01 May 1999 11:08:37 GMT, alastair@calliope.demon.co.uk
> (Alastair) wrote:
>
>>.........
>>Install the same way as any module ;
>>
>>perl Makefile.PL
>>make
>>make install
>>
> I'm trying to install the module on Red Hat 5.2 and the make install
> step fails with the error message:
>
> /bin/sh:
> /var/tmp/perl-root/usr/lib/perl5/lib/i386-linux/5.00401/perllocal.pod:
> No such file or directory
> make:***[doc_site_install] Error 1
>
> Any advice?
>
You wont like the advice - upgrade your Perl to something more recent ...
Specifically - your Config.pm doesnt concur with your current installation.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 5674
**************************************