[11108] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4708 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jan 21 04:05:53 1999

Date: Thu, 21 Jan 99 01:00:19 -0800
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, 21 Jan 1999     Volume: 8 Number: 4708

Today's topics:
    Re: ActivePerl on Win95 <andrew@foo.cc.nospam>
    Re: chat2.pl and Solaris? <dgris@moiraine.dimensional.com>
    Re: Difficult issues not suitable for this newsgroup? <gellyfish@btinternet.com>
    Re: FAQ for this group? (Ronald J Kimball)
        FastTrack CGI/perl prog. problems <daws9230@students.sou.edu>
    Re: HELP!!! CGI Problem, Cant get it to work. <gellyfish@btinternet.com>
        Matching Numbers from a string. <darko.tunukovic@debis.com>
    Re: memory leak (Perl-odbc-MSSQL) <Richard@WowMe.com>
    Re: minus a pound she exclaimed! (Mark)
    Re: minus a pound she exclaimed! <che@debian.org>
    Re: minus a pound she exclaimed! (Larry Rosler)
    Re: Newbie Perl CGIer needs fast help!  Posting to URL ((//trxby))
    Re: Newbie Perl CGIer needs fast help!  Posting to URL (Abigail)
    Re: Newbie string question,  please help :) <dgris@moiraine.dimensional.com>
    Re: Newbie string question,  please help :) (Larry Rosler)
        Perl programmer needed (Garry D. Qualls)
    Re: perl script error (J|rgen P|nter)
    Re: problem with: use module; <eugene@snailgem.org>
        Problems with ActiveState Perl Modules <Richard@WowMe.com>
    Re: problems with IIS & mime types (Larry Rosler)
    Re: read/write same file <angelo@acsoft.dk>
    Re: Status of Threaded Perl <dgris@moiraine.dimensional.com>
        The Documeantion (was Re: Perl problem :(Offline mode.. <gellyfish@btinternet.com>
    Re: what does this error mean? (J|rgen P|nter)
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 20 Jan 1999 19:08:36 +1100
From: "Andrew" <andrew@foo.cc.nospam>
Subject: Re: ActivePerl on Win95
Message-Id: <786n4b$k0v$1@bomb.dynamite.com.au>

Is the "close on exit" checkbox un-checked in your Program settings for
perl.exe?

Jason Boyd wrote in message <3697BAC3.7DA17D9F@hotmail.com>...
>If anyone knows how I can get ActivePerl (509) to fuction properly on my
>Win95 system, could you please help me?
>
>I can open the perl.exe in Windows, but any scripts I run shut down as
>soon as they have displayed, meaning I can't see the results. When I try
>to open perl from DOS, it tells me "this program doesn't run in DOS
>mode." Yet the docs that come with the build claim it is for Win NT, 95
>and 98 systems.
>
>Any help is appreciated (even the name of another version of perl that
>IS built for Win95).
>
>Jason Boyd




------------------------------

Date: 20 Jan 1999 23:22:01 -0700
From: Daniel Grisinger <dgris@moiraine.dimensional.com>
Subject: Re: chat2.pl and Solaris?
Message-Id: <m3emopw3g6.fsf@moiraine.dimensional.com>

merlyn@stonehenge.com (Randal L. Schwartz) writes:

> chat2.pl *has* been removed from the distribution, I think starting in
> 5.003.

    $ cd perl/
    $ find . -name chat2.pl -print
    ./lib/chat2.pl
    $ head -4 patchlevel.h 
    #ifndef __PATCHLEVEL_H_INCLUDED__
    #define PATCHLEVEL 5
    #undef SUBVERSION     /* OS/390 has a SUBVERSION in a system header */
    #define SUBVERSION 54
    $ 

It's still in there.  And I still see code that require()s it. :-(

dgris
-- 
Daniel Grisinger          dgris@moiraine.dimensional.com
perl -Mre=eval -e'$_=shift;;@[=split//;;$,=qq;\n;;;print 
m;(.{$-}(?{$-++}));,q;;while$-<=@[;;' 'Just Another Perl Hacker'


------------------------------

Date: 20 Jan 1999 18:05:06 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Difficult issues not suitable for this newsgroup?
Message-Id: <7855si$14g$1@gellyfish.btinternet.com>

On Wed, 20 Jan 1999 13:44:05 -0000 James Richardson wrote:
> 
> <BAD MOOD>
> Why oh why is it that only simple questions seem to be asked / answered on
> this newgroup? Innumerable questions about CGI, about paths, about any
> number of things that are immediately knowable from the perl FAQ, or man
> perlfunc, but no interest at all about a reasonably valid question on XS,
> shame, I thought I might have contributed enough answers to this newsgroup
> over the last couple of years to warrant one difficult question.
> </BAD MOOD>
> 

It has been an observation before that questions about XS dont attract the
answers they might - I dont think that this is deliberate on anyones part
more like a consequence of the number of regular readers of this group
who are actively involved in XS work.

I dont think that it is the *difficulty* of your question that is the 
problem per se just the subject matter.  There are often *difficult*
questions posed here and if people are interested in them they are
discussed if they are not lost beneath the noise of FAQs and CGI
questions.

I honestly dont think that there is some 'third force' in this group that
can have the power to decide whether your previous contributions merit
your getting an answer to a question - even if it were possible which it isnt.
For myself I generally skip over questions that have 'XS' in the 
subject header simply because I dont know enough about it to make a valid
contribution on these matters - I cant speak for anyone else in this.

> 
> There are a number of contributors to this newsgroup that tirelessly repeat
> answers to the same old same old questions, and all credit to them, for perl
> should be encouraged. But people should also be encouraged to think for
> themsleves before seeking help (aka ->result with others doing the work for
> them!)
> 

I think that the general ethos of this group (certainly among the more
regular posters ) *is* to encourage people to think for themselves and to
avail themselves of the relevant (non-Usenet) resources in order to solve
their problems.  For myself however I think that some questions do merit
a detailed answer even if the questioner could have worked out the answer
from the documentation (I exclude FAQs from this of course.)  It would not
be right IMHO to assume that everyone has as much programming experience
as oneself in this group and often a small example couple with references
to the appropriate documentation is exactly what is required.

I dont mean to weird but much of the flaming that happens in this group
is as a result of post like yours from people dissatisfied with the
response they have met to some previous posting - especially at a time
like this when it appears that all of the trolls in the world have
descended upon the group and people lose their patience.

/J\
-- 
Jonathan Stowe <jns@btinternet.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: Thu, 21 Jan 1999 00:06:36 -0500
From: rjk@linguist.dartmouth.edu (Ronald J Kimball)
Subject: Re: FAQ for this group?
Message-Id: <1dlydq3.1a8osgdpfaqm8N@bay1-543.quincy.ziplink.net>

Steve <AdvertisementsNotReadJustDeleted@RealAddressBelow.com> wrote:

> Is there a FAQ for this group?
> 
> Where can I get a copy?

Please refer to the post titled
*** FAQ: ANSWERS TO YOUR QUESTIONS! READ FIRST! Posted Twice Weekly ***

-- 
 _ / '  _      /         - aka -          rjk@linguist.dartmouth.edu
( /)//)//)(//)/(     Ronald J Kimball      chipmunk@m-net.arbornet.org
    /                                  http://www.ziplink.net/~rjk/
        "It's funny 'cause it's true ... and vice versa."


------------------------------

Date: Wed, 20 Jan 1999 23:11:33 -0800
From: Jesse <daws9230@students.sou.edu>
Subject: FastTrack CGI/perl prog. problems
Message-Id: <36A6D324.93ECE99A@students.sou.edu>

I'm in the process of debugging a simple CGI script written in perl for
Netscape's FastTrack Server for NetWare.  Really all it's supposed to do
is accept userid and password info, match them with user/password
entries in a text file, and then redirect the user's browser to their
appropriate page.  Everything works but the
    print "Location: $URL\n\n";
redirect command.  For some reason FastTrack doesn't seem to know what
to do with this.  Is there a work around for this?  Also, is there any
way a perl script can use the authentication services available through
FastTrack?  Can you programmatically pass userid and password info. to
FastTrack?  Thanks!



------------------------------

Date: 20 Jan 1999 17:21:55 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: HELP!!! CGI Problem, Cant get it to work.
Message-Id: <7853bk$13n$1@gellyfish.btinternet.com>

In comp.lang.perl.misc D.McCrea <D.McCrea@altall.freeserve.co.uk> wrote:
> Can anyone help me get my counter working.
> I have written it in visual basic ....

And your Perl Question is ?

/J\
-- 
Jonathan Stowe <jns@btinternet.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: Thu, 21 Jan 1999 09:46:17 +0100
From: Darko Tunukovic <darko.tunukovic@debis.com>
Subject: Matching Numbers from a string.
Message-Id: <36A6E959.8C4EF51A@debis.com>

Hallo all,

I have a little problem with matching number from a string.

       Like this:      $pattern = "Test Number: 1";

How can I get only the number from this string ?

Thanks a lot


Bye Darko




------------------------------

Date: Thu, 21 Jan 1999 08:16:12 GMT
From: "Richard" <Richard@WowMe.com>
Subject: Re: memory leak (Perl-odbc-MSSQL)
Message-Id: <gnBp2.1586$cB6.669@news.rdc1.md.home.com>

I've noticed similar, but with IIS and Perl before we added ODBC.  Since
Perl only runs when it is called, my guess is it is an IIS issue and that it
may not even be a leak, per se.  Just that as connections rise, the
operating system doesn't recuperate the resources allocated as efficiently
as it should.
I am not sure of this, but SP4 was supposed to address known leaks.  Not
that it did.

--


jim wrote in message ...
>Hi,
>
>We are running a web site using NT 4.0 with service pack 4 and mssql 6.5.
>We have some perl scripts read and update the database.  We are running
>into some memory leak problems.  If we leave the system running for a
couple
>of days, the IIS server will grabs all the memory in the system and
>eventually
>make the system useless.  We suspect the problem is in the perl or odbc
>since we also use IDC to query the database.  If we turn off perl scripts,
>it is not much a problem.
>
>Has anyone out there experienced the same probem?  Is this a bug in
>perl, odbc, or IIS?  Any pointer will be highly appreciated.
>
>
>Jim
>
>




------------------------------

Date: Thu, 21 Jan 1999 06:38:05 GMT
From: nospam@pleasereplyhere.com (Mark)
Subject: Re: minus a pound she exclaimed!
Message-Id: <36a6ca5e.4177383@news.supernews.com>

On 21 Jan 1999 02:44:31 GMT, sholden@pgrad.cs.usyd.edu.au (Sam Holden)
wrote:

>On Thu, 21 Jan 1999 02:25:59 GMT, Mark <nospam@pleasereplyhere.com> wrote:
>>Howdy;
>>
>>Some people just aren't genetically predisposed  for writing code- I
>>know, I'm one of them. :)
>>
>>I did the faq, did perl for dummies. I still can't get this line:
>>
>>$base =~ s/[&()\s]|\.html//gi;
>>
>>to filter out the following from a given string:
>>
>>- (minus sign)
>># (pound)
>>! (exclamation)
>>+ (plus sign)
>>.cgi 
>
>That would be because it does of those things. Maybe you should try reading
>that documentation...
>

uhhhhh.... it does of those things?

I've read and I haven't been able to get my attempts to work; I
thought I would drop in here to see if someone who's perl savvy and
generous with their skills would help me out. If that's not you, no
problem, please ignore my request.

I have read the documentation, faq, etc and I still can't get it to
work.

Mark




------------------------------

Date: 20 Jan 1999 23:09:57 -0800
From: Ben Gertzfield <che@debian.org>
Subject: Re: minus a pound she exclaimed!
Message-Id: <yttd849xfsq.fsf@gilgamesh.cse.ucsc.edu>

>>>>> "Mark" == Mark  <nospam@pleasereplyhere.com> writes:

    Mark> Howdy; Some people just aren't genetically predisposed for
    Mark> writing code- I know, I'm one of them. :)

    Mark> I did the faq, did perl for dummies. I still can't get this
    Mark> line:

    Mark> $base =~ s/[&()\s]|\.html//gi;

    Mark> to filter out the following from a given string:

    Mark> - (minus sign) # (pound) ! (exclamation) + (plus sign) .cgi

Your problem is that you've told Perl to remove:

&, (, ), whitespace, and the string '.html'

If you want it to remove -, #, !, +, and the string '.cgi', you will
need to tell it to. Perl will not remove things unless you tell it to.

$base =~ s/([&()\s\-#!\+]|\.html|\.cgi)//gi;

Note that the - needs a \ and the + may or may not, but it's nice and
safe to have it there. The parentheses around the whole thing are
necessary, I think.

Ben

-- 
Brought to you by the letters A and J and the number 7.
"Moshimoshi. Kikoemasu ka?" "Kakenaoshimasu kara ne! 1-do kitte kudasai."
Debian GNU/Linux maintainer of Gimp and GTK+ -- http://www.debian.org/
I'm on FurryMUCK as Che, and EFNet/Open Projects IRC as Che_Fox.


------------------------------

Date: Wed, 20 Jan 1999 23:31:44 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: minus a pound she exclaimed!
Message-Id: <MPG.111077afe08e39c9899b5@nntp.hpl.hp.com>

[Posted and a courtesy copy mailed.]

In article <yttd849xfsq.fsf@gilgamesh.cse.ucsc.edu>, Ben Gertzfield 
<che@debian.org> says...
 ...
> $base =~ s/([&()\s\-#!\+]|\.html|\.cgi)//gi;
> 
> Note that the - needs a \ and the + may or may not, but it's nice and
> safe to have it there. The parentheses around the whole thing are
> necessary, I think.

'I think'???  This would be very easy to determine by testing, so I 
presume that you submitted this code without testing it.  That is not 
good policy for this -- or perhaps any -- technical newsgroup.

The '-' needs a '\' unless it is first or last in the character class;  
the '+' doesn't need a '\', and it's noisy to have it in there.  The 
parentheses around the whole thing are not necessary.  But end anchors 
for the filename extensions *are* desirable.

  $base =~ s/[&()\s#!+-]|\.html$|\.cgi$//gi;

-- 
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


------------------------------

Date: Thu, 21 Jan 1999 06:11:26 GMT
From: ttyler@airXXXmail.net ((//trxby))
Subject: Re: Newbie Perl CGIer needs fast help!  Posting to URL
Message-Id: <A673127E68AFABF0.F0A76B6C85199AE7.D69FEE5E3BB22B3B@library-proxy.airnews.net>





This was the first or second time I posted in this newsgroup.  Thanks
for the unwelcome attitude.

I've programmed a long time in other languages and lived in other
programming newsgroups which seem to treat most people asking simple
questions with a lot more respect than you people.  I guess we all
need a mission in life.  Your parents must be proud.

So much for thinking the pompous asshole programmers left the business
a decade ago.  Reality bites!

Mike


------------------------------

Date: 21 Jan 1999 04:33:56 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Newbie Perl CGIer needs fast help!  Posting to URL
Message-Id: <786ank$meu$7@client2.news.psi.net>

Tad McClellan (tadmc@metronet.com) wrote on MCMLXIX September MCMXCIII in
<URL:news:odu587.jsn.ln@magna.metronet.com>:
'' (//trxby) (ttxyxexr@airxmail.net) wrote:
'' 
'' : I am a programmer Abigail.
'' 
'' 
''    What a coincidence!
'' 
''    There is a another programmer Abigail that posts here too  ;-)

Oh? Who is that?



Abigail
-- 
I am not a programmer.


------------------------------

Date: 20 Jan 1999 23:07:46 -0700
From: Daniel Grisinger <dgris@moiraine.dimensional.com>
Subject: Re: Newbie string question,  please help :)
Message-Id: <m3iue1w43x.fsf@moiraine.dimensional.com>

abigail@fnx.com (Abigail) writes:

> Daniel Grisinger (dgris@moiraine.dimensional.com) wrote on MCMLXVIII
> September MCMXCIII in <URL:news:m37luhy2p3.fsf@moiraine.dimensional.com>:

> ^^ for (split //, $input) {
> ^^     if (exists ($dispatch_table{$_}) {
> ^^         &{$dispatch_table{$_}}(@args);
> ^^         next;
> ^^     }
> 
> while ($string =~ /(.)/g) {
>     no strict;
>     &{"do_something_with_$1"} (@args) if defined &{"do_something_with_$1"};
> }

Hmmmm... I hadn't thought of that.  Probably because my personal rule
is that I'm not a good enough programmer to say C<no strict>. :-)


> ^^ for (keys %dispatch_table) {
> ^^     if ($input =~ /$_/) {
> ^^         &{$dispatch_table{$_}}(@args);
> ^^         last;
> ^^     }
> ^^ }

> But that does the things in order of keys(), *not* in the order how
> things appear in the string.

Well, yes.  I thought I had made it clear that that was a different
example of using a dispatch table to handle a conditional.  

dgris
-- 
Daniel Grisinger          dgris@moiraine.dimensional.com
perl -Mre=eval -e'$_=shift;;@[=split//;;$,=qq;\n;;;print 
m;(.{$-}(?{$-++}));,q;;while$-<=@[;;' 'Just Another Perl Hacker'


------------------------------

Date: Wed, 20 Jan 1999 22:47:45 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Newbie string question,  please help :)
Message-Id: <MPG.11106d678143f6be9899b3@nntp.hpl.hp.com>

In article <7867hc$meu$3@client2.news.psi.net>, Abigail <abigail@fnx.com> 
says...
+ Daniel Grisinger (dgris@moiraine.dimensional.com) wrote on MCMLXVIII
+ September MCMXCIII in 
<URL:news:m37luhy2p3.fsf@moiraine.dimensional.com>:
 ...
+ ^^ my %dispatch_table = ( a   => \&do_something_with_a,
+ ^^                        b   => \&do_something_with_b,
+ ^^                      ...
+ ^^                        '*' => \&do_something_with_star );
 ... 
+ while ($string =~ /(.)/g) {
+     no strict;
+     &{"do_something_with_$1"} (@args) if
+           defined &{"do_something_with_$1"};
+ }

That doesn't do very well if $string contains '*' or any other \W, 
though.  The names of functions have to be identifiers.

-- 
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


------------------------------

Date: Thu, 21 Jan 1999 08:32:59 GMT
From: NO-SPAMgqualls@exis.net (Garry D. Qualls)
Subject: Perl programmer needed
Message-Id: <NO-SPAMgqualls-2101990332030001@cx45214-a.nwptn1.va.home.com>

Looking for a solid Perl/CGI programmer to join an ongoing development
project as a NASA contractor. Experience with UNIX, LWP, C/C++, OGL, GD,
ImageMagick, VRML2, HTML, Photoshop, Javascript, or JAVA will help but are
not strictly required.  This is a full-time position.  Job would require
working on-base at NASA's Langley Research Center in Hampton, Virginia. 

An overview page for the project may be seen here: 

  http://vab02.larc.nasa.gov/IDS4

Responsibilities will include, among other things, porting the current
framework capabilities into the MUSE virtual reality environment and
cleaning the CGI scripts up enough for public release under an "open
source" software license.  

replies to:

NO-SPAMgqualls@exis.net

(remove NO-SPAM from that email address to get it to work)


------------------------------

Date: 21 Jan 1999 07:04:20 GMT
From: Juergen.Puenter@materna.de (J|rgen P|nter)
Subject: Re: perl script error
Message-Id: <786jhk$7m4$2@penthesilea.Materna.DE>

In article <784t8v$c6g$1@nnrp1.dejanews.com>, kamez@my-dejanews.com says...

Dear Khalid,

>$name = $ARGV[$1];

is this a typo or do you really mean $ARGV[$1]?

If you want to access ARGV, it should be $ARGV[1].
$1 is a backreference from a pattern match, which
you probably don't want here.


HTH
	Juergen Puenter



------------------------------

Date: Wed, 20 Jan 1999 23:37:05 -0500
From: Eugene Sotirescu <eugene@snailgem.org>
Subject: Re: problem with: use module;
Message-Id: <36A6AEF1.DD49C37@snailgem.org>

Bart Lateur wrote:

> 
> You could also say
> 
>         42
> 
> which would also add some mystery. And it's the answer to the question
> on life, the universe and everything.
> 

I disagree.

-- 

Eugene

 "I have an Apache Web Server that uses CGI forms written in COBOL."
 							Post in clpm


------------------------------

Date: Thu, 21 Jan 1999 08:27:27 GMT
From: "Richard" <Richard@WowMe.com>
Subject: Problems with ActiveState Perl Modules
Message-Id: <PxBp2.1588$cB6.538@news.rdc1.md.home.com>

We are using the newest Active State Perl on NT4 SP4 with IIS 4.  Perl.exe
and perlis.dll both work great but whenever we try to call libraries in the
/lib directory we get junk in return.  Has anyone setup ActiveState Perl for
a similar system that has successfully used the libraries?  If so, please
help.


--






------------------------------

Date: Wed, 20 Jan 1999 23:12:16 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: problems with IIS & mime types
Message-Id: <MPG.111073254cca75f99899b4@nntp.hpl.hp.com>

[Posted and a courtesy copy mailed.]

In article <36aab0cf.15941228@news.bhm.bellsouth.net>, jm 
<David.A.Bradshaw@bridge.bellsouth.com> says...
> The generated web pages are housed on an NT server running IIS.
> The application running on this box will ultimately need to pull files
> down from a unix server in which filenames are case sensitive and
> where NT is not.  
> 
> The problem is the mime type file does not take 2 entries for a
> mime type.  I need for the mime type to take both lower and upper
> case.  For example, application/msword has an extension of doc   I
> want to also give it an extension of DOC.  I can not figure out how to
> make 2 enties on the same line and when I try to add the DOC it says
> the the extension already exist (must be looking at the lower case
> entry).  I want IIS to launch word for both a filename that ends with
> ..doc and a filename that ends with .DOC    Any help would be
> appreciated.

Have you tried and failed with things the way they are?

Even though on Unix systems, foo.doc and foo.DOC are different files, on 
Windows/DOS they are considered to be the same file name (and the same 
file, when loaded fom the Unix box).  So the extension 'doc' in the mime-
type table should work on either file name.

-- 
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


------------------------------

Date: Thu, 21 Jan 1999 08:13:50 +0100
From: Steen Angelo <angelo@acsoft.dk>
Subject: Re: read/write same file
Message-Id: <36A6D3AD.4AD12C27@acsoft.dk>

Hi there.

Thank you Tad and Larry, I'll rush and go get my perl properly installed and
afterwards take a good look of my harddisk, and THEN ask some more questions
;-)

--
Best regards

Steen Angelo

mailto:angelo@acsoft.dk




------------------------------

Date: 20 Jan 1999 23:44:56 -0700
From: Daniel Grisinger <dgris@moiraine.dimensional.com>
Subject: Re: Status of Threaded Perl
Message-Id: <m390exw2dz.fsf@moiraine.dimensional.com>

meowing@banet.net (Fluffy) writes:

<snip Are threads reliable?>

> It's not so much unreliable as unpredictable.

No, it's completely unreliable.  use Thread; is a surefire
way to turn your perl interpreter into an Insta-Matic Core
File Generator (it slices, it dices, it makes thousands of
julienne silicon wafers :-).

>                                                 What works in one
> release may or may not work the same way in the next.  

No, what does coredump in one release may not in the next.

>                                                        If you're
> willing to accept that a script will be tied to a particular perl
> version, threads do work.  

No, if you are willing to hack at an extremely alpha feature, if
you have the knowledge of perl internals necessary to fix problems
that arise, or if you are willing to throw spend some time 
helping the people who _can_ fix the problems then threads are 
something to play with.  But for production code, no way.

> If you want to play with threads, wait for the 5.005_03 release or grab
> one of the prerelease copies for now.  _54 works but leaks memory
> something fierce.

If you want to play with threads you will be happier with _5x than
with _0x (you're more likely to see fixes show up in the dev branch
than in the maint).

dgris
-- 
Daniel Grisinger          dgris@moiraine.dimensional.com
perl -Mre=eval -e'$_=shift;;@[=split//;;$,=qq;\n;;;print 
m;(.{$-}(?{$-++}));,q;;while$-<=@[;;' 'Just Another Perl Hacker'


------------------------------

Date: 20 Jan 1999 17:40:47 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: The Documeantion (was Re: Perl problem :(Offline mode...)
Message-Id: <7854ev$14a$1@gellyfish.btinternet.com>

On Wed, 20 Jan 1999 09:59:42 +0000 Andrew Fry wrote:
> 
> I am well aware of manuals, on-line docs, etc ... but I dont have
> time to plough through lots of manuals/docs (do you ???), and I
> know by experience that one doesnt always find what one is looking for
> in documentation.

I would certainly find time to search the appropriate documentation
thoroughly before I asked a question of anyone.

And what do you get if search for 'debugging' in the CGI.pm manpage ?

> The fact is that I run a small comms/networking consultancy & software
> house ... and we work to very tight deadlines. Having the time to read
> and learn is something of a luxury.

And of course you have plenty of time to post a question to a newsgroup and
wait for perhaps days or perhaps forever for a response.  Even given a
fast newsfeed I doubt if this is more efficient than examining the 
appropriate documentation.

> I appreciate the helpful replies, but frankly, I dont see the point in
> these discussion groups if the reply is just going to be 'read the
> manual'!
> 

I wont rehash the old fishing parable once again but the point is that it
is more efficient to encourage to help themselves rather than rely on the
help of others.  The documentation and the FAQ is there in order to help
people find the answers.  Oh sure people could just sit by their computers
and cut and paste sections of the documentation into their newsreaders in
response to questions but what would that achieve ? If it is answered in the
documentation then it is better to point someone to the appropriate item of
documentation its as simple as that.

/J\


-- 
Jonathan Stowe <jns@btinternet.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: 21 Jan 1999 06:51:14 GMT
From: Juergen.Puenter@materna.de (J|rgen P|nter)
Subject: Re: what does this error mean?
Message-Id: <786ip2$7m4$1@penthesilea.Materna.DE>

In article <76q5jp$ik4$1@nnrp1.dejanews.com>, vivekvp@hotmail.com says...

>Name "main::monitor" used only once: possible typo at menutest.cgi line 45.

Dear ???,

$main::monitor is just the complete name of $monitor. 
Complete in the sense that it contains the name of the 
current package. Aside from this, the message tells you
that $monitor is only used once in your entire script,
i.e. you do nothing with it but:
	$monitor = $input{'monitor'};
Depending on whether this is what you want, you can ignore
the message. Or you could declare $monitor with 'my' and 
thus cause the message to go away.

>using perl -w <filename>
>Can't locate cgi-lib.pl in @INC at menutest.cgi line 6
>1.  where should cgi-lib.pl be located?

Somewhere in your Perl-directory. Anyway, forget about 
cgi-lib.pl and use CGI.pm, which should be included in
your Perl distribution.

>any help - please email!! thanx!!

Nope, post here, read here.


HTH
	Juergen Puenter



------------------------------

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 4708
**************************************

home help back first fref pref prev next nref lref last post