[6806] in Perl-Users-Digest
Perl-Users Digest, Issue: 431 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon May 5 09:17:22 1997
Date: Mon, 5 May 97 06:00:36 -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, 5 May 1997 Volume: 8 Number: 431
Today's topics:
Building shared perl lib on FreeBSD 2.1.6 (Simon Lindgren)
Re: Dbm, using Btrees (Chris Schleicher)
Re: How plausible is it to make 'foo' in perl? <seay@absyss.fr>
How to run Perl scripts directly from netscape on a loc <E.G.J.Paardekooper@Syntegra.net>
Re: I/O on serial device? <jwz@netscape.com>
is there perl for the NeXT (3.3) OS <phlippy@bellatlantic.net>
Re: moderation <seay@absyss.fr>
Modules/Packages in Perl <neil@iphil.net>
Re: Modules/Packages in Perl <stephen+usenet@farrell.org>
Re: need help with a simple (i hope) question. (David Alan Black)
Re: Newbie confused by all those slashes (Tad McClellan)
Re: Newbie confused by all those slashes (Abigail)
Re: output format <stephen+usenet@farrell.org>
Re: Perl auto-replier <seay@absyss.fr>
Perl CGI error (C. Scott Miller)
Re: Perl CGI error <gordon.leslie.mcdorman@sap-ag.de>
Re: Perl on NT Servers (Tad McClellan)
Re: Perl on Win95? <billc@tibinc.com>
Perl script crashes under taint checking (Jeremy Anderson)
Re: Perl, Cookies, Location (Abigail)
Re: PERL::ODBC (Betty Kainz)
Re: pre-RFD: comp.lang.perl.{data-structure,inter-proce (Mik)
Re: Server needed for Win95? <gordon.leslie.mcdorman@sap-ag.de>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 04 May 1997 09:47:06 GMT
From: lindgren@sn.no (Simon Lindgren)
Subject: Building shared perl lib on FreeBSD 2.1.6
Message-Id: <336c5a43.135829777@news.global-one.no>
I'm building perl 5.004_99 on my FreeBSD 2.1.6 system, and would like
it to be a shared library for various reasons. I've successfully
configured it to be such (the "yes" to the question in config should
see to that) - but "make" provides me with the following error:
cc -L/usr/local/lib
-Wl,-R/usr/local/lib/perl5/i386-freebsd/5.00399/CORE -o perl
perlmain.o lib/auto/DynaLoader/DynaLoader.a -lperl `cat ext.libs` -lm
-lc -lcrypt
ld: invalid command option
`-R/usr/local/lib/perl5/i386-freebsd/5.00399/CORE'
*** Error code 1
I have added the current working directory to the LD_LIBRARY_PATH env
var.
What am I doing wrong?
Simon Lindgren
lindgren@istudio.no
------------------------------
Date: 4 May 1997 11:08:16 -0700
From: chrissch@cs.uoregon.edu (Chris Schleicher)
Subject: Re: Dbm, using Btrees
Message-Id: <5kijag$ddv@psychotix.cs.uoregon.edu>
In article <5kg53s$q7o@camel3.mindspring.com>,
Steve Kohler <skohler@mindspring.com> wrote:
>I need some help in finding references on using
>btree dbm files. If you know where I should start,
>your help is greatly appreciated.
I'd suggest the btree manpage (which comes with the Berkeley DB
distribution) in conjunction with the DB_File module (which comes with
the standard perl distribution).
Hope this helps,
--Chris
--
Chris Schleicher Office: 541/346-3998
Univ of Oregon CIS GTF email: chrissch@cs.uoregon.edu
URL: http://www.cs.uoregon.edu/~chrissch/
------------------------------
Date: Mon, 05 May 1997 11:31:31 +0100
From: Douglas Seay <seay@absyss.fr>
Subject: Re: How plausible is it to make 'foo' in perl?
Message-Id: <336DB703.7F26F19B@absyss.fr>
Jahwan Kim wrote:
> (8) a word processor (OK, OK, I'll stop it here.)
What do you want from a word processor? nvi (one of the modern vi
programs) has a perl mode that lets you use perl as its macro language.
Five minutes with alta vista should be good enough for you to find the
source.
As I-hate-cyber-promo@man.ac.uk (A.Deckers) pointed out, most of the
functionality for these already exist as modules in CPAN, you just have
to glue them together into working programs.
- doug
------------------------------
Date: Sun, 04 May 1997 13:03:45 +0200
From: Erik Paardekooper <E.G.J.Paardekooper@Syntegra.net>
Subject: How to run Perl scripts directly from netscape on a local PC ?
Message-Id: <336C6D11.3894@Syntegra.net>
On my work I create Perl programs, which I can directly access with my
internet browser.
Now I want to do this the same at home on my local Windows95 PC. The
only way to look at the output with my browser, is to redirect the
output of the Perl program to a HTML file and read this file into my
browser.
They told me I needed a webserver environment to do this (and work with
partitions). Who can supply me with information how to do this ?
Thanks !
Erik from Lisse - Holland
------------------------------
Date: Sat, 03 May 1997 23:56:14 -0700
From: Jamie Zawinski <jwz@netscape.com>
Subject: Re: I/O on serial device?
Message-Id: <336C330E.47A7D10D@netscape.com>
Thanks for all the suggestions; I tried a number of things, including
using Comm and doing various POSIX::Termios hacks, but the only thing
I've found so far that works is the following; it's a bit gross, but
it does the job...
sub open_modem {
use IPC::Open2;
my $stty = `/bin/stty -g`;
open2( \*MODEM_IN, \*MODEM_OUT, "cu -l$modem_device -s2400 2>&1");
# starting cu fucks with /dev/tty's stty settings, even when it has
# been opened on a pipe...
system("/bin/stty $stty");
$_ = <MODEM_IN>;
chop;
if ( !m/^Connected/ ) {
print STDERR "$0: cu printed `$_' instead of `Connected'\n";
}
}
--
Jamie Zawinski jwz@netscape.com http://www.netscape.com/people/jwz/
What the world needs now is killfiles that actually kill. -Craig Dickson
------------------------------
Date: Sun, 04 May 1997 16:56:07 +0100
From: Phlip <phlippy@bellatlantic.net>
Subject: is there perl for the NeXT (3.3) OS
Message-Id: <336CB197.4ADE@bellatlantic.net>
is there perl for the NeXT (3.3) OS?
if so, where do I go to download it.
please email me at phlippy@bellatlantic.net
thanks.
------------------------------
Date: Mon, 05 May 1997 10:45:01 +0100
From: Douglas Seay <seay@absyss.fr>
Subject: Re: moderation
Message-Id: <336DAC1D.2C2CE7F9@absyss.fr>
Steffen Beyer wrote:
>
> Douglas Seay <seay@absyss.fr> wrote:
>
> > Would it be possible to build an auto-moderating robot that looks at the
> > sender's address and if the sender is on the "approved" list, allow the
> > post, otherwise send a copy of the FAQ and forward the post to the human
> > moderator(s).
>
> I think this is better than the authoring.cgi-newsgroup policy that just
> sends you the FAQ the first time you post, and then gives you free access:
> that wouldn't reduce the high noise/signal ratio, IMHO.
I don't follow many robo-moderated groups, but just sending a FAQ and
still posting wouldn't seem to do much. Automatically allowing a second
posting would allow someone to repost the same thing twice to ensure
that one of them actually made it.
> > The human(s) could then accept or reject the post
> > depending upon content, complexity, phase of the moon, personal whim,
> > whatever. As for this "approved" list, it isn't be in our best
> > interests to keep this a closed, good-ol-boy network, so this list
> > should be fairly open. If someone has been approved for posting by the
> > human moderator(s) 3 times, they are on the list.
>
> Sounds very good. 3 times is a good number! :-)
Someone (Eli the Bearded, I think, my server has already expired the
article) commented that he moderated a group and if something was
vaguely on-topic, he allowed. This is what I want. I just want to
weed-out a few off-topic posts (CGI stuff is almost always off-topic, as
is Make Money Fast). A robot might be able to do this, but hopefully by
doing more than just simply looking for words.
Another strange idea: would it be good for a moderator (human or
otherwise) allow everything to be posted to comp.lang.perl.misc and if
someone is on the approved list, automatically cross post to
comp.lang.perl.filtered? The approved list now wouldn't say who could
post, but who would be cross-posted. Using this scheme it would be
possible for those who want to look at everything to do so, but for
those of us who want a "lean-n-trim" perl discussion to follow the
highlights on c.l.p.filtered? I wouldn't think that this would increase
the network load for the perl newsgroups, but it might require a bit
more bookkeeping by the newsservers.
> > Maybe also build some
> > sort of Perl test, and if someone can score well enough (knows the
> > basics), then let them on the list.
>
> Frankly, I think this is a bad idea.
Why? My idea was that if someone knew the basics of Perl, let 'em post
without bothering the moderator(s). The rule for being on the "approved
list" would be to pass this test _OR_ have a moderator approve three
posts.
- doug
------------------------------
Date: Mon, 05 May 1997 14:20:52 +0800
From: "Neil D. Quiogue" <neil@iphil.net>
Subject: Modules/Packages in Perl
Message-Id: <336D7C44.1C7E330C@iphil.net>
Greetings,
I have this problem when creating packages in Perl. Actually, it's
using
perl object-orientedly through packages.
I've read that one needs to use the Exporter module for other modules to
properly access the module/object. I am using different subdirectories
for
each module defined in a configuration file. Each subdirectory is then
placed in a variable (e.g., $HOME). I've used the following methods to
try and make this error gone but I'm not sure if I'm doing it
correctly. Note that I've used
inheritance that is why ISA has the super class of the current object.
The Error is:
Can't locate SuperClass.pm in @INC at SubClass.pl line 29.
BEGIN failed--compilation aborted at SubClass.pl line 29.
1. use the BEGIN - require combo.
use Exporter;
@ISA = (Exporter SuperClass);
BEGIN {
require "/somedirectory/myConf.conf";
require "$HOME/SuperClass.pm";
}
2. INC
use Exporter;
@ISA = (Exporter SuperClass);
require "/somedirectory/myConf.conf";
$INC{'$HOME/SuperClass.pm'} = 1;
I've tried with and without and SuperClass if that goes for something.
Note that I've checked the name of the packages and everything
syntactically.
I'm sorry if this has been answered before but I've looked around and
haven't
found an answer.
Thanks.
--
+------------------------------------+-------------------------------------+
| Neil D. Quiogue | Disclaimer: My views may not be
the |
| IPhil Communications Network, Inc. | same as that of my
employer. |
| e-mail: neil@iphil.net
| |
+------------------------------------+-------------------------------------+
------------------------------
Date: Mon, 5 May 1997 08:23:43 GMT
From: stephen farrell <stephen+usenet@farrell.org>
Subject: Re: Modules/Packages in Perl
Message-Id: <87u3ki5nu8.fsf@phaedrus.uchicago.edu>
"Neil D. Quiogue" <neil@iphil.net> writes:
> Greetings,
>
> I have this problem when creating packages in Perl. Actually, it's
> using
> perl object-orientedly through packages.
>
> I've read that one needs to use the Exporter module for other modules to
> properly access the module/object. I am using different
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
??
> subdirectories for
> each module defined in a configuration file.
ok...
> Each subdirectory is then
> placed in a variable (e.g., $HOME).
...
> I've used the following methods to
> try and make this error gone but I'm not sure if I'm doing it
> correctly. Note that I've used
> inheritance that is why ISA has the super class of the current object.
>
> The Error is:
>
> Can't locate SuperClass.pm in @INC at SubClass.pl line 29.
> BEGIN failed--compilation aborted at SubClass.pl line 29.
>
> 1. use the BEGIN - require combo.
>
> use Exporter;
>
> @ISA = (Exporter SuperClass);
>
> BEGIN {
^^^^^
??
> require "/somedirectory/myConf.conf";
> require "$HOME/SuperClass.pm";
> }
>
ok... Off the bat I'm not sure that you're actually getting the value
for $HOME you're looking for. But there are a lot of other
things... this is more of what you want:
package SubClass;
# if SuperClass.pm is in a sub directory "SubDir", then you can refer
# to it as follows:
use SubDir::SuperClass;
# require is ok, perhaps, but you might want to stick with "use" -- e.g.:
#
# use MyConf;
#
# (where there is a file in this or aforementioned dir
# called MyConf.pm... *this* file would probably want to use Exporter(*)
# to export the config variables. "use" will "import" those variables.
require "/somedirectory/myConf.conf";
@ISA = qw(SubDir::SuperClass);
# ^^ n.b.
# now, assuming SuperClass has a new(), you might use it like:
my $sc = new SubDir::SuperClass();
# or, as TC would prefer
my $sc = SubDir::SuperClass->new();
# if you want to share data with the superclass, you can do:
sub new {
my ($class) = @_;
my $self = new SubDir::SuperClass();
bless $self, $class;
return $self;
}
# But please look at the perlobj manpage(**) for more descriptions of
# constructors... they're somewhat subtle.
> 2. INC
>
> use Exporter;
>
> @ISA = (Exporter SuperClass);
>
> require "/somedirectory/myConf.conf";
>
> $INC{'$HOME/SuperClass.pm'} = 1;
yow. Don't do this with @INC because (a) it is--or *was*, rather;)--
an array, not a hash (b) it's weird. Use
use lib "dir/ectory";
instead, or else the way I mentioned above.
>
> I've tried with and without and SuperClass if that goes for something.
>
> Note that I've checked the name of the packages and everything
> syntactically.
> I'm sorry if this has been answered before but I've looked around and
> haven't
> found an answer.
You need to read the perlobj manpage(**) better!
(*) perldoc Exporter (use Exporter; @ISA=qw(Exporter); @EXPORT=qw($var1,...))
(**) perldoc perlobj -or- http://www.aisd.com/technology/perl/man/perlobj.shtml#perlobj_name_0
>
> Thanks.
>
no problem
-- steve farrell
> --
> +------------------------------------+-------------------------------------+
> | Neil D. Quiogue | Disclaimer: My views may not be
> the |
> | IPhil Communications Network, Inc. | same as that of my
> employer. |
> | e-mail: neil@iphil.net
> | |
> +------------------------------------+-------------------------------------+
------------------------------
Date: 5 May 1997 00:44:07 GMT
From: dblack@icarus.shu.edu (David Alan Black)
Subject: Re: need help with a simple (i hope) question.
Message-Id: <5kjagn$4i6@pirate.shu.edu>
Hello -
jordyn@bestweb.net (Jordyn A. Buchanan) writes:
>"Christer A. Wittusen" <christer@dtc.se> wrote:
>> Hi.
>> I' m trying to write a message board, but now I got stuck on one line.
>> I would be greatfull if someone could help me out and let me know whats
>> wrong.
>> I get Illegal item (LEXPR) as lvalue in file aktietavlan.pl at line 296,
>> next 2 tokens ");"
>>
>> here is some is the code.
>[snip]
>> ---->line 296 (undef, $subject, undef, $message_file) =
>> split(/::/);
>You are trying to set the value of undef, which won't work. Although undef
>has the undefined value, that value can't be changed and perl will complain
>if you try. This isn't really the reason you're getting the error message
>you describe, but it will still prevent the code from working. If you
>really want to just ignore the first and third fields, try something like
>this:
> ($junk, $subject, $junk, $message_file) =
> split(/::/);
> undef $junk;
This is our second go-round with Christer's question (your server may
be a bit slow on the uptake, Jordyn :-) The first time, I gave an
answer similar to yours, as well as (split(/::/))[1,3]. Tom Phoenix
pointed out that actually recent versions of Perl *do* allow undef
to be used in the way Christer was using it:
$string = "0a1a2a3a4a";
(undef, $one, undef, $three) = split /a/, $string;
print $one, $three;
^D
13
perl -v
This is perl, version 5.003_91
I'm not sure when this support was added. However, since I don't see the
"Illegal item" error message in the blue Camel, I'd guess that Christer
is using Perl 4.
David Black
dblack@icarus.shu.edu
------------------------------
Date: Sun, 4 May 1997 00:37:16 -0500
From: tadmc@flash.net (Tad McClellan)
Subject: Re: Newbie confused by all those slashes
Message-Id: <ca7hk5.rv3.ln@localhost>
Tad McClellan (tadmc@flash.net) wrote:
: Eric Bohlman (ebohlman@netcom.com) wrote:
: : Tad McClellan (tadmc@flash.net) wrote:
: : : I'm most certainly not a Perl guru, but I'll answer it anyway ;-)
: : : if ( $values[2] =~ /$prodname/ ) ...
: : Surely you meant
: : if ( $values[2] =~ /\Q$prodname\E/ ) ...
: : so that a query for "Microsoft Visual P++" would match properly.
: If it was meant to be production code, rather than teaching code,
: then I would have used:
: if ( $values[2] =~ /\b\Q$prodname\E\b/ )
(oh yeah. The production code then would *also not match* if you were
searching for 'P++', but the "requirements specification" that the
code was written to did not specify any special characters in either
the pattern or string. If it's not specified, don't count on
getting it ;-)
--
Tad McClellan SGML Consulting
Tag And Document Consulting Perl programming
tadmc@flash.net
------------------------------
Date: Sun, 4 May 1997 10:46:15 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Newbie confused by all those slashes
Message-Id: <E9nKL3.72A@nonexistent.com>
On Fri, 02 May 1997 23:51:51 +0100, Amias Channer wrote in
comp.lang.perl.misc URL: news:336A7007.66A5@amias.prestel.co.uk:
++ I am having a problem trying to get a true response after searching a
++ string for a keyword and finding it . I have read the documentation of
++ Perl 5 that came with the NT version i'm using and couldn't make head
++ nor tale of the endless slashing and pointy bracketing .
++ The code i have tried and failed with is as follows
++
++ if ($prodname eq qw{$values[2]}){
++ do stuff
++ }
++
++ where prodname is a string containg the keyword i wish to find in
++ values[2] wich contains a description of something e.g. 'large wolly
++ jumper with hole in it' . I have checked the variable contents and they
++ contain what they should .
I guess what you want is:
if ($values [2] =~ /\b$prodname\b/) {
do stuff;
}
However, if you often compare with $values [2], you might want to do:
# Put all words of $values [2] in a hash.
%vals = map {($_ => 1);} split / /, $values [2];
# Which is equivalent to:
foreach (split (/ /, $values [2])) {$vals {$_} = 1;}
# Later in the program:
if ($vals {$prodname}) {
do stuff;
}
Hope this help,
Abigail
------------------------------
Date: Sun, 4 May 1997 08:37:17 GMT
From: stephen farrell <stephen+usenet@farrell.org>
Subject: Re: output format
Message-Id: <87207nhbuq.fsf@phaedrus.uchicago.edu>
Max Kull <mkull@io.com> writes:
> Question from a new user. I'm trying to print out baseball batting
> averages...... .305, .274, etc. I can't figure out in Perl how to
> suppress the leading zero (0.305, 0.274, etc.). Suggestions would be
> appreciated.
You want to look at the printf functions -- they work just like as in
C.
hmm... Just for the heck of it I just checked it out, and the
following doesn't work as expected:
printf("%0.3f", $x);
I'd expect "0" to mean "0", not "1"... =(
Well, there's always the following, though rather annoying:
$s = sprintf("%0.3f", $x);
print substr($s, 1);
--steve farrell
------------------------------
Date: Mon, 05 May 1997 11:57:04 +0100
From: Douglas Seay <seay@absyss.fr>
To: Chipmunk <Ronald.J.Kimball@dartmouth.edu>
Subject: Re: Perl auto-replier
Message-Id: <336DBD00.91D7A60@absyss.fr>
Chipmunk wrote:
>
> In article <fl_aggie-ya02408000R2904971553110001@news.fsu.edu>
> fl_aggie@hotmail.com (I R A Aggie) writes:
>
> > Next time I'm inclined to be snide, I'll just drop the post on the
> > floor and ignore the question.
> >
> > And that gains us what, exactly? Especially if a question goes unanswered?
>
> Apparently you see two options:
> 1) Respond rudely
> 2) Ignore the question
>
> There is a rather obvious third option which you've somehow managed to
> overlook, which is:
> 3) Reply politely
If someone has tried and couldn't find the information, I try to be
polite. But if someone has the "do my work for me" attitude, I open up
with both barrels. I try to point them to the right information while
being rude, so there is a transfer of information.
A few times I've been unjustly rude, and I've said "sorry", most
recently to Kim Kiat Tan <kktan@concentric.net>. This is an unfortunate
risk of my "rude, first and foremost" policy, for which I take
responsability.
> > Then the clueless poster may whine about how s/he posted here and didn't
> > get an answer and that its the newsgroup (and the inhabitants thereof)
> > RESPONSIBILITY to answer questions.
> >
> > Its better to be snide, or even rude, if the clueless *LEARN* something.
> > Condescendsion is typically resented. Maybe the next time, they'll try
> > to avoid it and ACTUALLY USE THE FINE MANUAL and LEARN SOMETHING ON THEIR
> > OWN!
>
> Now you assume that they will only learn something if you reply rudely.
> Perhaps if you politely directed them to the documentation or the
> appropriate newsgroup?
No, but I don't want c.l.p.misc to be the first option for learning
information. While some Usenet groups are for learning the basics,
comp.lang.perl.misc is not one of them. To post in c.l.p.m, one should
have already read (or at least grep'ed) the wonderful manpages that come
with the distribution. Anything less than that is insulting to those of
us who respond. I'm using Pavlov style methods for saying "there must
be an easier way".
> Your argument seems analogous to this one:
> If someone bumps into me on the street, I should punch them. Sure,
> it's rude, but at least they'll learn not to bump into me anymore.
If someone bumps me because they are injured or stumbled, I help them.
If they rudely walk into me, I will be rude back to them. As with most
everything in life, it is a case-by-case choice.
> The ends don't justify the means.
Hurrah! Please repeat this loudly to those folks whose "means" are
usenet and whose "ends" are getting simple questions answered with as
little work and thought as possible.
I don't want to say that rudeness is the only way, but the hordes of
unread newbies grows old quick. I was sick of this when I was a lurker,
now that I try to give a helping hand from time to time, it is even
worse. Maybe just because I read more articles, maybe because I see
questions I answered a few days ago being reasked. Dunno the reason,
but it is frustrating.
- doug
------------------------------
Date: 4 May 1997 17:09:14 GMT
From: theseus@wam.umd.edu (C. Scott Miller)
Subject: Perl CGI error
Message-Id: <5kifrq$rk6@dailyplanet.wam.umd.edu>
I am trying to write a perl script to interact with my web page. I am
getting a 'Forbidden' error from my browser when my page references the
perl cgi script. I have already chmodded the cgi script so that it can
be read and executed by everyone. Why is this happening and what can be
done to correct it?
Here is the page I am constructing:
www.wam.umd.edu/~theseus/home.html
-Theseus (theseus@wam.umd.edu)
------------------------------
Date: Mon, 5 May 1997 08:37:16 GMT
From: Gordon McDorman <gordon.leslie.mcdorman@sap-ag.de>
To: theseus@wam.umd.edu
Subject: Re: Perl CGI error
Message-Id: <u911uuxfn.fsf@sap-ag.de>
theseus@wam.umd.edu (C. Scott Miller) writes:
> I am trying to write a perl script to interact with my web page. I am
> getting a 'Forbidden' error from my browser when my page references the
> perl cgi script.
Contact your system administrator. This problem concerns your
system/web server configuration, not Perl.
--
--------------------------------------------------------------
The opinions expressed above are mine, not my employer's.
gordon.leslie.mcdorman@sap-ag.de
------------------------------
Date: Sun, 4 May 1997 00:45:33 -0500
From: tadmc@flash.net (Tad McClellan)
Subject: Re: Perl on NT Servers
Message-Id: <tp7hk5.i04.ln@localhost>
John Giblin (giblin@mail.idt.net) wrote:
: I just moved from a unix to a NT Server.
You have my sympathy ;-)
: I have change the ext. to .pl,
: but when I hit the submit button it asks me where to save the script.
^^^^^^^^^^^^^^^^^^^^^^^
That sounds like some kind of CGI thing or something.
(It is. Your server is misconfigured).
c.l.p.m is not for the discussion of server configuration, nor for
purely CGI related questions.
: Do I have to do anything else?
Posting to the appropriate newsgroup maybe?
Such as one of:
comp.infosystems.www.servers.ms-windows
comp.infosystems.www.authoring.cgi
(or, as this is most probably a FAQ for one of the CGI groups, search
around in the CGI groups with Dejanews)
--
Tad McClellan SGML Consulting
Tag And Document Consulting Perl programming
tadmc@flash.net
------------------------------
Date: Mon, 05 May 1997 02:27:20 -0400
From: Bill Cowan <billc@tibinc.com>
To: peter@webcanada.com
Subject: Re: Perl on Win95?
Message-Id: <336D7DC8.1092@tibinc.com>
Peter wrote:
>
> Hello..
>
> I'm trying to see if I can install PERL to run under Windows 95...
>
> I would like to correspond with people who have experience installing
> it, particularily to help *with* the install (ie. how to do it<G>) and
> any small problems that may come up.
>
> Appreciate all e-mail replies (peter@webcanada.com).
>
> Thanks,
> Peter.
Evangelo's Frequently Asked Questions (FAQ) has a good discussion of
installation (and other topcis for Win32):
http://www.endcontsw.com/people/evangelo/Perl_for_Win32_FAQ.html
-- Bill
-----------------------------------------------------------------------
Bill Cowan <billc@tibinc.com> Voice:919-490-0034 Fax:919-490-0143
Tiburon, Inc./3333 Durham-Chapel Hill Blvd Suite E-100/Durham, NC 27707
------------------------------
Date: 5 May 1997 09:21:30 GMT
From: jeremy+jindaolese@blackbox.ylasia.com.tw (Jeremy Anderson)
Subject: Perl script crashes under taint checking
Message-Id: <5kk8qq$t4m@netnews.hinet.net>
I have a small, fairly straightforward Perl script which reads in data, stores
said data in a largish (2 MB) associative array, then prints the data out to
text or HTML files. Really boring stuff.
This script runs fabulously, unless taint checking is turned on, in which case
perl puts out a segmentation fault about 2 minutes into the execution of the
script. I want the script to run as the backend of a CGI program one of these
days, and I don't see any good way to get around taint checking.
I am running Perl 5.003 on two machines, one being Linux 1.2.8, the other being
Linux 2.0.29. Both machines have 32MB of memory, ~70MB of swap space, and
don't appear to be getting pushed terribly hard for memory when the system
runs on either.
Does anyone know what could be causing this problem?
All replies are rewarded with eternal gratitude and
a modest 10-course Chinese dinner if you have the good(?)
luck of finding yourself in Taipei.
Jeremy Anderson
------------------------------
Date: Mon, 5 May 1997 04:14:54 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Perl, Cookies, Location
Message-Id: <E9ox4u.60M@nonexistent.com>
On Sun, 04 May 1997 22:46:16 GMT, edz@raw.net wrote in
comp.lang.perl.misc URL: news:336d112c.192895705@nntp.ix.netcom.com:
++ After my script sets cookies, I can't get it to throw "Location:
++ http://www.your.com" to the browser... Any ideas?
Sure, I've lots of ideas.
Abigail
------------------------------
Date: 04 May 1997 10:08:00 +0100
From: midimani@site88.ping.at (Betty Kainz)
Subject: Re: PERL::ODBC
Message-Id: <6WE$ylrSdNB@site88.ping.at>
Hi Brian !
On 03 May 97 brian@shepmark.com wrote :
> The problem is with the insert into. It is not inserting the
> value into the table. I have checked the database locally for data.
> $x = 'testing';
> $o-> sql("insert into temptable values ($x)");
It works for me like in the line you see below:
$O->Sql("insert into $dbtable (Lastname, Firstname, Telefone, Roomnumber,
Workgroup) values ( '$lastname', '$firstname', '$telefone', '$roomnumber',
'$workgroup')");
First of all, you're missing the single quotes on the VALUES variable.
(On the other hand, the table-name variable works without them.)
Except that, I also noticed that your SQL command doesn't include the
field names, to specify into WHICH fields the value(s) should be inserted.
Hope it helps ! :-)
Betty
------------------------------
Date: Sun, 04 May 1997 16:46:46 GMT
From: mfiresto@mindspring.com (Mik)
Subject: Re: pre-RFD: comp.lang.perl.{data-structure,inter-process,porters,regex}
Message-Id: <336dbafe.6734222@news.mindspring.com>
On 3 May 1997 10:10:38 GMT, I-hate-cyber-promo@man.ac.uk (A.Deckers)
wrote:
>
>Well, the moderation model I proposed is specifically designed to, and
>would, overcome this limitation. In fact, the proposed moderation model
>would *speed up* propagation compared to the current situation of clp.*
>groups, so that really wouldn't be a problem. Anyone who had the means
>and motive to do so could have near instantaneous access to submitted
>articles.
Just a few questions ( or maybe concerns ) about the moderation rules.
First, would there be a set of guidelines so those who would like to
post to the moderated group can make sure their posting will be
accepted?
Second, if a posting is rejected, will there be notification that it
was rejected? Speaking for myself, if I did not see the post in a
reasonable amount of time, I would be more likely to assume my news
service had lost it than it had been rejected ( probably an
ego-centric assumption ).
Finally, if a post has been rejected, would there be anything telling
me why it had been rejected? In light of some of the criteria (
ration of quoted to unquoted text, HTML posts, sig length, etc ), an
article may be rejected fr reasons other than its content. An
explantion of that would at least allow me the chance to recast the
article into an acceptable form.
Other than these concerns, I would definitely support a ( single )
moderated Perl group - especially if it meant we could entice some of
the wizards back.
Mik
Evil Overlord Rule #8:When I've captured my adversary and he says,
"Look, before you kill me, will you at least tell me what this is
all about?"I'll shoot him, and then say "No".
------------------------------
Date: Mon, 5 May 1997 08:29:37 GMT
From: Gordon McDorman <gordon.leslie.mcdorman@sap-ag.de>
Subject: Re: Server needed for Win95?
Message-Id: <uafmauxse.fsf@sap-ag.de>
Dennis <zonycat@flash.net> writes:
> Looks, more and more like I must have someserver to run my CGI scripts
> from my local PC. I vae perl scripts and CGI scripts on my PC and just
> want to test them without putting them on a WEB page on the network.
There is free server software available for you to test your
scripts. See the following newsgroups for further information:
comp.infosystems.www.authoring.tools
comp.infosystems.www.authoring.cgi
--
--------------------------------------------------------------
The opinions expressed above are mine, not my employer's.
gordon.leslie.mcdorman@sap-ag.de
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
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 431
*************************************