[12438] in Perl-Users-Digest
Perl-Users Digest, Issue: 6038 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jun 18 01:07:22 1999
Date: Thu, 17 Jun 99 22:00:21 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Thu, 17 Jun 1999 Volume: 8 Number: 6038
Today's topics:
'use' not working on ISP's NT server (Jeff D)
Re: /usr/bin/ld: cannot open -lgdbm: no file or directo <danielrod@nts.co.jp>
Re: @INC question (Tad McClellan)
Re: a thread on threads (the skinny on the schedule) (Abigail)
Re: a thread on threads (Ronald J Kimball)
Re: Afraid to ask about Y2K! (Abigail)
Re: Bandwidth <Russell_Schulz@locutus.ofB.ORG>
Re: email owner name (Tad McClellan)
Re: Having trouble making this work... (Tad McClellan)
Re: Hex to Decimal?? (Tad McClellan)
Re: including another variable into an array <crt@highvision.com>
Re: Inclusive Split (Ronald J Kimball)
Re: Mysterious segmentation fault in mod_perl hovinen@my-deja.com
Re: need a server that supports perl(cgi) (Filip M. Gieszczykiewicz)
Re: Newbie Array Question (Tad McClellan)
Re: newbie learning "my" declarations (Ronald J Kimball)
newbie jvavatara@my-deja.com
Re: pattern matching question (Ronald J Kimball)
Re: pattern matching question (Abigail)
PERL programmer needed for contract job... <webmaster@kingsnake.com>
Re: PERL programmer needed for contract job... zenin@bawdycaste.org
Re: Recommend a simple Online database? (Jeff D)
Simple Questions rt_daemon@yahoo.com
Re: this charecter @ ruined my day!! zenin@bawdycaste.org
Re: this charecter @ ruined my day!! <revjack@radix.net>
Using Perl on MS PWS <johnernst@netoffice2000.com>
Using Perl on MS PWS <johnernst@netoffice2000.com>
Re: What is functional difference between .pm and .pl? (Abigail)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 17 Jun 1999 20:34:46 PDT
From: argnon@argnon.com (Jeff D)
Subject: 'use' not working on ISP's NT server
Message-Id: <376abdc9.10855616@news.concentric.net>
Trying to port some unix perl scripts for NT.
NT box is at an ISP so I can't control its setup.
I'd like some way of knowing if I'm doing something wrong here or
the ISP has setup issues (I start off assuming the former).
--------------------------------------
Here's the code snippet:
# test perl script.
use strict ;
my $MyCGITextHeader = "Content-type: text/plain\n\n";
print $MyCGITextHeader;
# Print something
print "Banana Exists\n\n";
# Check Perl version
print "$]\n\n";
# Check @INC
print "@INC\n\n";
--------------------------------------
Here's what shows up in the browser:
CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:
Can't locate strict.pm in @INC at
C:\export\pneumaticvalves\cgi-bin\test.pl line 4.
BEGIN failed--compilation aborted at
C:\export\pneumaticvalves\cgi-bin\test.pl line 4.
--------------------------------------
If I comment out the 'use strict ;' line I get:
Banana Exists
5.00307
C:\PERL5\lib\i386-win32
C:\PERL5\lib
.
Is it me or them?
Please advise.
Thanks,
Jeff DeFreitas
StarWeb Enterprises
------------------------------
Date: Fri, 18 Jun 1999 02:30:51 GMT
From: Daniel <danielrod@nts.co.jp>
Subject: Re: /usr/bin/ld: cannot open -lgdbm: no file or directory
Message-Id: <7kcb0r$59d$1@nnrp1.deja.com>
I have downloaded gdbm-1.7.1-1.7.2.diff.gz and did a
"gunzip gdbm1.7.1-1.7.2.diff.gz"
I ended up with gdbm1.7.1-1.7.2.diff, but don't know what to do with it
as I couldn't find any installation instructions.
But, I have also since learned that my distribution (TL1.0, kernel
2.036) installs gdbm 1.7.3 by default.
When I do a "locate gdbm" I get:
/usr/lib/libgdbm.so.2
/usr/lib/libgdbm.so.2.0.0
/usr/src/perl5.004_04/t/lib/gdbm.t
Does this mean that gdbm is already installed? If so, how can I
correct my orginal problem with the error message:
/usr/bin/ld: cannot open -lgdbm: no file or directory
Is lgdbm the same thing as gdbm?
Please be kind as I am still new to Linux in these particular aspects.
Thank you.
--Daniel
In article <3768bb4b@newsread3.dircon.co.uk>,
Jonathan Stowe <gellyfish@gellyfish.com> wrote:
> Daniel <danielrod@nts.co.jp> wrote:
> > I am trying to install Perl 5.00404, but when I do "sh Configure -
d" I get the error
> > message:
> > /usr/bin/ld: cannot open -lgdbm: no file or directory
> >
> > Can someone tell me how this problem can be corrected?
> >
>
> Download and build gdbm from
<http://www.gnu.org/software/gdbm/gdbm.html>
>
> You might consider getting Perl 5.00503 while you're at it.
>
> /J\
> --
> "Is there no demand for mechanical pussies?" - Mrs Slocombe
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Thu, 17 Jun 1999 18:28:10 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: @INC question
Message-Id: <qpsbk7.kfk.ln@magna.metronet.com>
cool_water420@my-deja.com wrote:
: The path where i have kept them is c:\perl\lib.
: But still when i run my program i get the error
: cant locate DBI.pm in @INC.
: Any suggestions????????????????
use lib 'c:/perl/lib';
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: 17 Jun 1999 20:52:34 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: a thread on threads (the skinny on the schedule)
Message-Id: <slrn7mj9iv.fl5.abigail@alexandra.delanet.com>
Tom Christiansen (tchrist@mox.perl.com) wrote on MMCXVI September
MCMXCIII in <URL:news:37695d80@cs.colorado.edu>:
<> [courtesy cc of this posting mailed to cited author]
<>
<> In comp.lang.perl.misc, Eric The Read <emschwar@rmi.net> writes:
<> :Tom Christiansen <tchrist@mox.perl.com> writes:
<> :> Also, the LW part of LWP is definitely overvalued these days. Linux
<> :> "threads" are still faster than NT "processes".
<> :
<> :Er, unless I'm reading that wrong, your second sentence is contradicting
<> :the first. Did you switch Linux and NT there, or was there some other
<> :point I'm being too dense right now to catch?
<>
<> No, it's not contradicting itself. I'm saying that NT light-weight
<> processes (threads) are slow, and that Linux non-shared threads (processes)
<> are fast. Or maybe I'm only reading what I think I'm reading instead
<> of what's there.
I think you wanted to write:
Also, the LW part of LWP is definitely overvalued these days. Linux
"processes" are still faster than NT "threads".
Abigail
--
perl -wleprint -eqq-@{[ -eqw+ -eJust -eanother -ePerl -eHacker -e+]}-
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Thu, 17 Jun 1999 22:50:24 -0400
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: a thread on threads
Message-Id: <1dtkco3.ojzd3x8x4hw2N@p97.block2.tc1.state.ma.tiac.com>
Uri Guttman <uri@sysarch.com> wrote:
> >>>>> "GB" == Greg Bartels <gbartels@xli.com> writes:
>
> GB> state-machines I understand very well, but in verilog or vhdl.
> GB> could you point me to an example in perl that uses sub refs and
> GB> hash tables?
>
> there was a thread on this back in april. here is a link:
>
> http://x36.deja.com/[ST_rn=ps]/viewthread.xp?AN=465687493&search=thread&sv
> cclass=dnold&ST=PS&CONTEXT=929592672.1547501712&HIT_CONTEXT=929592672.1547
> 501712&HIT_NUM=0&recnum=%3c371232C1.F32055D1@email.mot.com%3e%231/1&group=
> comp.lang.perl.misc&frpage=getdoc.xp&back=clarinet
>
> (BTW how do some of you get a shorter deja link?)
>
http://www.deja.com/viewthread.xp?search=thread&recnum=%3c371232C1.F32055D1@email.mot.com%3e%231/1
I took the URL you gave above, and removed all the unnecessary crap.
With a bit of experimentation, it appears that the above is the shortest
legal URL for viewing a thread on DejaNews. (search and recnum appear
to be the only required fields.)
P.S. The new Deja site sucks for using the newsgroup archives.
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: 17 Jun 1999 20:46:46 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Afraid to ask about Y2K!
Message-Id: <slrn7mj984.fl5.abigail@alexandra.delanet.com>
finsol@ts.co.nz (finsol@ts.co.nz) wrote on MMCXVI September MCMXCIII in
<URL:news:7kbp4i$v46$1@nnrp1.deja.com>:
&&
&& For more Y2K problems that may affect Perl code, you may want to check
&& out this URL:
&& http://www.idg.co.nz/WWWfeat/Y2000/ja190499.htm
None of this hasn't been known for at least a decade, none of this is
Perl specific, and it starts with a statement I challenge you to prove.
If you can't prove it, will you quit posting in this newsgroup?
Abigail
--
perl -we '$_ = q ;4a75737420616e6f74686572205065726c204861636b65720as;;
for (s;s;s;s;s;s;s;s;s;s;s;s)
{s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Thu, 17 Jun 1999 23:11:20 -0400
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Subject: Re: Bandwidth
Message-Id: <19990617.231120.5K9.rnr.w164w_-_@locutus.ofB.ORG>
[ followups set ]
stanley@skyking.OCE.ORST.EDU (John Stanley) writes:
>>>> in this group... So if the bandwidth is going to be used anyways, it
>>>> might as well be used on something like the FAQs.
>>>
>>> Invalid assumption.
>>
>> Unfortunately, you cut the part that made it a plausibly valid
>> assumption. You know, the part about `newbies asking the
>> FAQs'. Yeah, that part.
>
> But you are wrong anyway. "That part" that was being used to support the
> assumption was the posting of binaries in alt.*.
According to dejanews, I am not wrong. For some reason, I gave you the
benefit of the doubt and checked.
Why don't you just quit incompetently trimming the quotes to take things
out of context (like you've done to me also) so we could all see, instead
of us having to second-guess you all the time?
(Probable answer: it's your own perverse pleasure. There are worse
antisocial activities. But there are also better ways to behave.)
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: Thu, 17 Jun 1999 18:32:17 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: email owner name
Message-Id: <h1tbk7.kfk.ln@magna.metronet.com>
Keerthi K Arutla (arutla@csee.wvu.edu) wrote:
: I need to find the name of a person given his email-id. Can anybody tell me
: how to do that, can atleast provide some useful hints.
What is your Perl question?
There are newsgroups for discussing email you know.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Thu, 17 Jun 1999 18:48:53 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Having trouble making this work...
Message-Id: <l0ubk7.kfk.ln@magna.metronet.com>
Mitch (portboy@home.com) wrote:
: it should check to see if /foo/bar1 is a directory, and
: if it isn't - create it.
: However, I can't seem to get it to create the subdirectory /bar?.
: So, can someone tell me what I need to do to make this happen or give me
: some pointers? Also, Let's say that my config will now look something
: like this:
: sub slurp_config
[snip]
: my ($var, $value) = split ' ', $_, 2;
: $$var = $value;
^^^^^
^^^^^
Symbolic references are evil. One day they will cost you hours
and hours of troubleshooting.
Better to not use them, and not be susceptible to such pain.
http://www.plover.com/~mjd/perl/varvarname.html
Use a hash instead:
$config{$var} = $value;
: if (/^==(.*)/) {
: my $dir = $1;
But the contents of $dir is not a directory.
That's a confusing choice of variable name.
$dir is the full path to a file.
You need to trim off the filename part if you want to test
for the existence of the directory.
Since you didn't trim it, you are testing for the existence
of the _file_.
The File::Basename module might help with the trimming.
: #if(! -d $dir) { system("mkdir $dir"); }
1) you should check the return value from system() calls:
if(! -d $dir) { system("mkdir $dir") && die "system() failed $?";
2) Perl has a builtin function for making directories you
do not need to use the shell's via system().
It is named, oddly enough, mkdir() :-)
unless (-d $dir) {
mkdir $dir or die "could not create '$dir' $!";
}
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Thu, 17 Jun 1999 18:50:10 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Hex to Decimal??
Message-Id: <23ubk7.kfk.ln@magna.metronet.com>
seong joon bae (seongbae@students.uiuc.edu) wrote:
: How would you write a little script that converts hex to dec...?
I would use an editor, such as vi or emacs, for writing scripts.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Thu, 17 Jun 1999 23:10:32 -0400
From: "Casey Tweten" <crt@highvision.com>
Subject: Re: including another variable into an array
Message-Id: <7kcdt4$211@news.icubed.com>
he he... breathe...
push @array, $var;
keep going... you're doing well...
--
+-----------------+
| Casey R. Tweten |
+--------------+--------+--------+--------------+
| * KiskiNet ISP | HighVision Associates |
| * HighVision Studio | Web Developer |
| * ISP-ProServices | www.highvision.com |
| * CityBuilder.com | crt@highvision.com |
+-----------------------+-----------------------+
| <joke>This is 100% virus free code</joke> |
+-----------------------------------------------+
Lee <rlb@intrinsix.ca> wrote in message
news:B38DB2FD96683ADF3@204.112.166.88...
: In article <slrn7mfd6i.do2.abigail@alexandra.delanet.com>,
: abigail@delanet.com (Abigail) wrote:
:
: >Matt (splinter@monmouth.com) wrote on MMCXV September MCMXCIII in
: ><URL:news:7k6skk$q34$1@news.monmouth.com>:
: >{} Hey,
: >{}
: >{} Very simple question.
: >{}
: >{} I have an array. I have a variable. I want the variable appended
onto that
: >{} array.
: >{}
: >{} Obviously I can't just do
: >{}
: >{}
: >{} @array .= $variable
: >{}
: >{} So what should I do?
: >
: >
: >push
:
: breathe!
:
: Don't you remember anything from the Lamaze classes?
:
: Lee
:
:
------------------------------
Date: Thu, 17 Jun 1999 22:50:26 -0400
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: Inclusive Split
Message-Id: <1dtkdpi.em3z0t34q7ggN@p97.block2.tc1.state.ma.tiac.com>
Mark-Jason Dominus <mjd@op.net> wrote:
> In article <Pine.GSO.4.02A.9906161929210.26850-100000@user1.teleport.com>,
> Tom Phoenix <rootbeer@redcat.com> wrote:
> > while ($item_string =~
> > m{
> > \G # From where we left off, find...
>
> \G is superfluous there; it will match starting at the place it left
> off last time whether or not you put in \G. \G is for when you have
> two regexes and you want the *second* one to start looking at the
> place where the *first* one left off.
Er, that's not quite accurate. \G *anchors* the match to the place
where the previous one left off. Just like a regex without \G starts
looking at the beginning of the string, but ^ anchors the match to the
beginning of the string.
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
perl -e'$_="\012534`!./4(%2`\cp%2,`(!#+%2j";s/\G./"print\"\\c$&\""/gees'
------------------------------
Date: Fri, 18 Jun 1999 01:03:09 GMT
From: hovinen@my-deja.com
Subject: Re: Mysterious segmentation fault in mod_perl
Message-Id: <7kc5s7$3n8$1@nnrp1.deja.com>
In article <376959D4.98DCAB47@mathworks.com>,
Craig Ciquera <craig@mathworks.com> wrote:
> What platform is all of this taking place on and what is the exact
error
> message
> that you receive.
It's Red Hat Linux 6.0. The error message, as viewed in Apache's
error_log, is just the segmentation fault. The copies of Perl, Apache,
and mod_perl were taken directly off of the installation CD for Red Hat
Linux.
> NOTE: I know that you cannot run Apache, mod_perl and the
ActiveState Perl
> and expect it to work. In this case you would need to get Perl from
the
> Apache web site.
>
> Craig
>
> hovinen@my-deja.com wrote:
>
> > Hello
> >
> > I have a script and a bunch of modules that I'm trying to run under
> > mod_perl. Whenever I try to run the script, it parses through and
> > executes the code in all of the modules and then mysteriously
segfaults.
> > I have been trying for several hours and still cannot locate the
exact
> > point where the segmentation fault occurs. Running the script
manually
> > does not cause this problem, and the Perl interpreter reports no
> > warnings when run with `perl -w -T'.
> >
> > Any help in solving this problem would be appreciated. I'm running
Perl
> > 5.00503, Apache 1.36, and mod_perl 1.19.
> >
> > Sent via Deja.com http://www.deja.com/
> > Share what you know. Learn what you don't.
>
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 18 Jun 1999 04:02:55 GMT
From: fmgst+@pitt.edu (Filip M. Gieszczykiewicz)
Subject: Re: need a server that supports perl(cgi)
Message-Id: <7kcgdf$n8j$1@usenet01.srv.cis.pitt.edu>
In Article <7k1op3$7vm$1@autumn.news.rcn.net>, through puissant locution, "Leonid Goltser" <leonid76@erols.com> soliloquized:
>Can anybody suggest a server, where I can upload my perl(cgi) scripts?
386sx16 with 4MB RAM and 100MB HD - slap base Linux on it with latest
perl and apache. That will run you a whooping $50 if you're thrifty.
:-)
--
Filip "I'll buy a vowel" Gieszczykiewicz | http://www.repairfaq.org/
Always and everything for the better!
Now exploring whatever, life, and the meaning of it all... and 'not' :-)
------------------------------
Date: Thu, 17 Jun 1999 14:24:58 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Newbie Array Question
Message-Id: <qhebk7.d9k.ln@magna.metronet.com>
hojo (hojo@i-tel.com) wrote:
: >
: > simply scop it as such:
: > my @array = (0..3) #for empty array length 4 (0,1,2,3)
: > Remember though, with perl this array is dynamic so you can increase
: the size at any given time!
: Well, this is my bad as it actually fills the array. This will make an
: array with all elements as undef.
You bad is now badder, since it does not make an array with
all elements undef!
Stop while you're behind.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Thu, 17 Jun 1999 22:50:27 -0400
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: newbie learning "my" declarations
Message-Id: <1dtke5i.rpilzq19fh7nuN@p97.block2.tc1.state.ma.tiac.com>
Lee <rlb@intrinsix.ca> wrote:
> In article <376a9027.2971003@news.skynet.be>,
> bart.lateur@skynet.be (Bart Lateur) wrote:
>
> >>It's nasty when your script breaks because you change $me++ to $me += 2.
> >
> >It doesn't break. "+=" is warning immune if the target is undef, just
> >the same as with "++".
>
> Hmmmm. So it is. But I have had scripts break (warning + CGI = broken, when
> done badly), so I suppose I must publicly confess to having had the supreme
> bad taste to write $me = $me + 2; in a poorly designed CGI script or two.
Actually, you might have encountered this in an earlier version of Perl.
In 5.002, $x++ did not give a warning if $x was undef, but $x+=2 did.
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
perl -le 'print "Just another \u$^X hacker"'
------------------------------
Date: Fri, 18 Jun 1999 03:40:30 GMT
From: jvavatara@my-deja.com
Subject: newbie
Message-Id: <7kcf3d$6fr$1@nnrp1.deja.com>
I'm curious, I am just getting into web programming. I'm a vb
programmer by trade so I was going to approach the things by learning
asp, javascript, and vbscript (html is a given).
Is javascript easy to implement on the client for both browsers? Do I
need to know any C or Perl??
Is java overtaking perl?
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Thu, 17 Jun 1999 22:50:41 -0400
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: pattern matching question
Message-Id: <1dtkegs.1q4khfcktfpwqN@p97.block2.tc1.state.ma.tiac.com>
Abigail <abigail@delanet.com> wrote:
> Eric The Read (emschwar@rmi.net) wrote on MMCXV September MCMXCIII in
> <URL:news:xkfemjblvx0.fsf@valdemar.col.hp.com>:
> '' gbacon@itsc.uah.edu (Greg Bacon) writes:
> '' > If you're determined to use a regular expression
> '' >
> '' > ($path = $url) =~ s,^.*?//.*?/,,;
> ''
> '' It's entirely possible that those are the ugliest delimiters I've ever
> '' seen for s///.
>
>
> Oh, you like this better?
>
> s s^.*?//.*?.ss;
How about:
s s^.*?//.*?.sss;
Just in case the URLs are split over multiple lines. Yeah, that's it.
--
_ / ' _ / - aka -
( /)//)//)(//)/( Ronald J Kimball rjk@linguist.dartmouth.edu
/ http://www.tiac.net/users/chipmunk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: 17 Jun 1999 20:31:37 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: pattern matching question
Message-Id: <slrn7mj8bn.fl5.abigail@alexandra.delanet.com>
Bart Lateur (bart.lateur@skynet.be) wrote on MMCXVI September MCMXCIII in
<URL:news:376c935c.3792022@news.skynet.be>:
:: Eric The Read wrote:
::
:: >> ($path = $url) =~ s,^.*?//.*?/,,;
:: >
:: >It's entirely possible that those are the ugliest delimiters I've ever
:: >seen for s///.
::
:: Oh yeah?
::
:: ($path = $url) =~ s;^.*?//.*?/;;;
; are cute delimiters. It allows you to write loops like:
for (s;s;s;s;s;s;s;s;s;s;s;s) { }
Abigail
--
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Thu, 17 Jun 1999 21:27:08 -0500
From: Jeff Barringer <webmaster@kingsnake.com>
Subject: PERL programmer needed for contract job...
Message-Id: <3769AE7C.79733914@kingsnake.com>
I need a PERL programmer who can build and implement
a username password system into an existing matt's wwwboard script
system. Will pay by hour or by job.
The script needs to be built into the existing CGI script.
Yes I have seen Get Scripts WWW protection feature and it won't
work for what I need done. Please contact me ASAP
by email or telephone at (512)990-1092
--
Jeff Barringer
kingsnake.com publications
home of ...
http://www.kingsnake.com
http://www.fishhobbyist.com
http://www.birdhobbyist.com
------------------------------
Date: 18 Jun 1999 02:44:03 GMT
From: zenin@bawdycaste.org
Subject: Re: PERL programmer needed for contract job...
Message-Id: <929674042.206629@thrush.omix.com>
Jeff Barringer <webmaster@kingsnake.com> wrote:
: I need a PERL programmer who can build and implement a username password
: system into an existing matt's wwwboard script system. Will pay by hour or
: by job. The script needs to be built into the existing CGI script. Yes I
: have seen Get Scripts WWW protection feature and it won't
: work for what I need done. Please contact me ASAP
: by email or telephone at (512)990-1092
$ cat .htaccess
AuthType Basic
AuthName "Joe's Web Server Board"
AuthUserFile /usr/local/apache/htdocs/wwwboard/.htpasswd
<Limit GET>
require valid-user
</Limit>
That will be a min one hour charge, at a rate of one pound of Peet's
Coffee per hour. See `whois zenin@archive.rhps.org' for contact
info. Thanks. :-)
--
-Zenin (zenin@archive.rhps.org) "Hey, are you one of those Linux coders?"
"Nyet. Linux coder in next office."
"Good man. Ignore the screams."
--www.userfriendly.org
------------------------------
Date: 17 Jun 1999 21:33:04 PDT
From: argnon@argnon.com (Jeff D)
Subject: Re: Recommend a simple Online database?
Message-Id: <376bc128.11718346@news.concentric.net>
A few months ago in my off time, I've attempted to do just what you
are doing.
Unfortunately from my perspective, there will be nothing simple about
what you are about to embark on so plan on it taking a long while due
to the learning curves involved.
Of course this all depends on your backround.
The first and second learning curves.
I'm coming from a dos/windows/os2 programming world and you won't
believe how much documentation, no matter how well it is written, has
assumptions about unix knowledge.
I'm sure this is not intentional. Unix is just so ingrained in this
world that people don't realize the expectations they're putting on
the reader. I'm sure I could talk about windows stuff at a basic
level and still not realize I'm glossing over something a unix person
wouldn't be familiar with.
So even though I've been learning Perl, I've also been learning unix.
That's just a fact of life right now for me. So you can see how that
slows the learning curve. If you're coming from a unix environment,
you'll get up to speed that much faster. I sincerely look forward to
the day when documentation is more balanced for all readers.
The third learning curve.
Now there are all kinds of Perl modules out there but I've found them
very difficult to use because my Perl is relatively weak (but getting
stronger). I've gotten to the point where I have a btree database
with only one key working right now. I started writing my own flat
file database code on my own and slowly advanced to the point where I
can use some modules. I know there are more advance modules out there
that do what I and you want but not until I reach them on the learning
curve. I'm sure the experts would think what you want to achieve is
simple. But they're experts which means they've already invested a
lot of time and energy to obtain the facilities they have.
The fourth learning curve.
The last point I'd like to make is the ISP issue. I too am also
writing code for a variety of external ISPs. This is a double-edged
sword. I'm sure administering your own webserver is by no means easy.
But having no control over the server is no piece of pie either. You
have to learn all the nuances of the ISP and what things they allow
and what things they don't allow. Some provide certain database
support while others provide different or none. This just leads to a
whole new level of complexity to reaching our goals.
In summary and in hindsight, I've found that I really had to cut back
my expectations and realize that I have to take this one small step at
a time and it's going to take much longer than expected because there
really is a lot involved. I have a huge appreciation now for what
goes into any database site and also for these mega ISPs and sites
with servers farms, databases, redundancy support.
This is not meant to sway you one way or another. I just wanted to
share my experience. Take from it what you will. If I can help you I
will. Good luck on your journey.
Jeff DeFreitas
On 17 Jun 1999 18:34:16 PST, Neil <neil@pacifier.com> wrote:
>I am looking for Online database options. flatfile will work fine.
>
>The intn'l trade organization I work for has a Virtual Server
>running on a UNIX box at our ISP.
>
>We want to have a simple database that would consist of companies
>Each company provides from 1 to a maximum of 15 services.
>
>We want visitors to the Web page to, using a form, query the database
>based on services. Maybe a checkbox next to each service, and the user
>can check those services he or she wants and then click submit and the
>database would return companies that provide the services selected. The
>output would just be a simple table with basic information and a hyperlink
>if more information about a specific company is desired.
>
>I am looking for a recommendation on perl scripts that would be good for
>this simple Online database.
>
>On another topic, I am happy to report that I have ordered the Ram and
>am looking forward to learning some Perl. My learning strategy will be
>to read, program, and lurk in this group. Thanks.
>
>Neil
------------------------------
Date: Fri, 18 Jun 1999 02:24:36 GMT
From: rt_daemon@yahoo.com
Subject: Simple Questions
Message-Id: <7kcaks$552$1@nnrp1.deja.com>
Greetings,
1. Is there a way to prevent the script being executed twice when
someone's double click on the submit that makes the cgi script to write
into a file.
2. How to take 3-4 lines from a certain file and then write it into
another with a Perl Script ?
I really need help !!
Daemon
rt_daemon@yahoo.com
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 18 Jun 1999 02:18:43 GMT
From: zenin@bawdycaste.org
Subject: Re: this charecter @ ruined my day!!
Message-Id: <929672522.332308@thrush.omix.com>
Eire Elliot <revjack@radix.net> wrote:
: zenin@bawdycaste.org explains it all:
>snip<
: There don't seem to be any modules available to perl on this server - at
: least, not that the CGI user can see. Am I missing something?
Yes, you are. You're missing a working perl install. Perl without
modules is not perl. If part of your providers contract is a
"working perl installation", then they have broken the contract.
There is absolutely nothing perl can do to help you.
>snip<
: : This:
: : Edit->FTP->Reload->Guess at reason for error->Edit->FTP...
: : Is no way for anyone to code, much less someone doing it for pay as
: : you're at least wasting your time and likely your client's as well.
:
: Of course. I'm not suggesting otherwise. I'm suggesting that
: sometimes you have to:
:
: Edit
: |
: FTP
: |
: Reload
: |
: Read the informative error code from the error-handling subroutine that
: you wrote
: |
: Repeat till it's right
The "informative error code from the error-handling subroutine" has
already been written, as CGI::Carp. If you do not have CGI::Carp in
a modern perl install, your perl is *broken*. GIVE UP NOW! THERE
IS *NO* HOPE TO USE PERL ON THIS MACHINE UNTIL THE MORONIC ADMIN
FIXES HIS/HER *&@#!ED UP INSTALL!
You might as well make /usr/local/bin/perl a link to /bin/false,
because that's about as useful as it's going to be.
: Also:
:
: Suppose the application talks to Oracle, or pipes to sendmail. How to
: replicate that on my Win3.1 box?
Easy; Install a real OS (eg, FreeBSD or Linux).
I run FreeBSD on my laptop, running Apache+mod_perl and talking to a
local copy of Oracle and/or PostgreSQL.
: PREBUTTAL:
:
: I'm not arguing against local development! That is in fact how I do it,
: when I can.
:
: I'm saying that sometimes you can't develop locally, but you *can* still
: develop, debug, etc. remotely.
But not if your remote perl is fundamentally *broken*.
If you can not telnet to the server or at the very least have access
to your own error logs, and you can not replicate the development
remotely, give up. Get a new provider. I'd *highly* recommend
Best, Inc (www.best.com) where you get all that and then some,
cheaply.
--
-Zenin (zenin@archive.rhps.org) "Hey, are you one of those Linux coders?"
"Nyet. Linux coder in next office."
"Good man. Ignore the screams."
--www.userfriendly.org
------------------------------
Date: 18 Jun 1999 03:54:04 GMT
From: Pocono Eire <revjack@radix.net>
Subject: Re: this charecter @ ruined my day!!
Message-Id: <7kcfss$lvu$1@news1.Radix.Net>
Keywords: Hexapodia as the key insight
zenin@bawdycaste.org explains it all:
:Eire Elliot <revjack@radix.net> wrote:
:: zenin@bawdycaste.org explains it all:
: >snip<
:: There don't seem to be any modules available to perl on this server - at
:: least, not that the CGI user can see. Am I missing something?
: Yes, you are. You're missing a working perl install. Perl without
: modules is not perl. If part of your providers contract is a
: "working perl installation", then they have broken the contract.
I'm not talking about my provider - I wouldn't put up with that. I'm
talking about the client's provider, which is always a crap shoot.
Your point is well taken, I'm embarrassed to say that I've never
stipulated a fully working perl installation in any contract yet.
Thanks for pointing that out, seriously.
: You might as well make /usr/local/bin/perl a link to /bin/false,
: because that's about as useful as it's going to be.
You'd be surprised at how much you can get done without using any modules,
if you really want to.
:: I'm saying that sometimes you can't develop locally, but you *can* still
:: develop, debug, etc. remotely.
: But not if your remote perl is fundamentally *broken*.
Can too. :)
: If you can not telnet to the server or at the very least have access
: to your own error logs, and you can not replicate the development
: remotely, give up.
Never.
------------------------------
Date: Thu, 17 Jun 1999 23:36:38 -0500
From: John Ernst <johnernst@netoffice2000.com>
Subject: Using Perl on MS PWS
Message-Id: <3769CCD5.B422AEF6@netoffice2000.com>
I have installed MS PWS onto my local machine from my Win98 disk and I
have installed ActivePerl and the PDK. I have registered string values
in the Windows registry for .pl, .cgi and .plx. However when I try to
run even a simple cgi script from MS PWS it seems to choke and hang. I
then seem to have problems with PWS and Front Page seeing even seeing
the files in the directory. I have installed MS PWS and uninstalled it
twice now. Would me problem be in MS PWS or would it be in another
place.
Many Thanks to any input from someone that has made this work.
John Ernst
Net Office 2000, Inc.
------------------------------
Date: Thu, 17 Jun 1999 23:41:17 -0500
From: John Ernst <johnernst@netoffice2000.com>
Subject: Using Perl on MS PWS
Message-Id: <3769CDED.56650D06@netoffice2000.com>
I have installed MS PWS onto my local machine from my Win98 disk and I
have installed ActivePerl and the PDK. I have registered string values
in the Windows registry for .pl, .cgi and .plx. However when I try to
run even a simple cgi script from MS PWS it seems to choke and hang. I
then seem to have problems with PWS and Front Page seeing even seeing
the files in the directory. I have installed MS PWS and uninstalled it
twice now. Would me problem be in MS PWS or would it be in another
place.
Many Thanks to any input from someone that has made this work.
John Ernst
Net Office 2000, Inc.
------------------------------
Date: 17 Jun 1999 20:34:07 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: What is functional difference between .pm and .pl?
Message-Id: <slrn7mj8gd.fl5.abigail@alexandra.delanet.com>
Bart Lateur (bart.lateur@skynet.be) wrote on MMCXVI September MCMXCIII in
<URL:news:376b912b.3230743@news.skynet.be>:
[] Abigail wrote:
[]
[] >|| >I use .pl because that makes my editor jump into the appropriate mode. :)
[]
[] >|| You did write, some while ago, that you "refused to program a christmas
[] >|| tree" (my paraphrase), didn't you?
[] >
[] >
[] >Yes, I did. What's your point?
[]
[] Er, "syntax highlighting"?
Where did I say my editor does syntax highlighting? I don't need that.
I know what I type.
Abigail
--
perl -wle 'print "Prime" if (1 x shift) !~ /^1?$|^(11+?)\1+$/'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
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 6038
**************************************