[14241] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1650 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Dec 13 12:25:54 1999

Date: Mon, 13 Dec 1999 09:05:16 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <945104716-v9-i1650@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Mon, 13 Dec 1999     Volume: 9 Number: 1650

Today's topics:
    Re: [Q] How can I go back to the caller after SIG{ALRM} (Anno Siegel)
    Re: [Q] How can I go back to the caller after SIG{ALRM} (Bart Lateur)
    Re: displaying image to browser <robin.g.sowton@usa.alcatel.com>
    Re: displaying image to browser <robin.g.sowton@usa.alcatel.com>
    Re: Embedding Perl in a DLL <rrindels@arkansas.net>
    Re: Extracting HTML <fabrizioiozzi@compuserve.com>
    Re: Fail to copy a LONG datatype in Oracle to another t <egauthie@capgemini.fr.nospam>
    Re: Fail to copy a LONG datatype in Oracle to another t <seeling@kzvth.ef.uunet.de>
    Re: file size limit <tom.kralidis@ccrs.nrcanDOTgc.ca>
    Re: Login forms to different directories <tony_curtis32@yahoo.com>
        netiquete was [Re: Problem with Search script] lee.lindley@bigfoot.com
        New posters to comp.lang.perl.misc <gbacon@cs.uah.edu>
    Re: Perl and PWS4 <gellyfish@gellyfish.com>
    Re: Perl and PWS4 <mirkoruegheimer@my-deja.com>
        Perl to Ref an image for a <IMG> tag <aprice@imaginet.co.uk>
        Perl/CGI script wont run <mbickham@photographics.co.uk>
    Re: Perl/CGI script wont run <rrindels@arkansas.net>
    Re: Problem with Search script haps13@my-deja.com
        Select pipes and nt <steph@duboi.com>
    Re: Sendmail and perl: broken pipe error mdjukic@my-deja.com
    Re: Sendmail and perl: broken pipe error mdjukic@my-deja.com
    Re: split with ", $, #, @, %, ( .. (Bart Lateur)
    Re: split with ", $, #, @, %, ( .. lee.lindley@bigfoot.com
    Re: split with ", $, #, @, %, ( .. <uri@sysarch.com>
        Statistics for comp.lang.perl.misc <gbacon@cs.uah.edu>
        updating IO::Select module <SternSZ@gmx.de>
        Visual Diagram of Sub Routines <samay1NOsaSPAM@hotmail.com.invalid>
        Why do non-blocking reads block? <red_orc@my-deja.com>
    Re: Why do non-blocking reads block? <red_orc@my-deja.com>
    Re: Working with Large Data File (Greg Bacon)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: 13 Dec 1999 15:30:38 -0000
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: [Q] How can I go back to the caller after SIG{ALRM} ?
Message-Id: <8333eu$b1a$1@lublin.zrz.tu-berlin.de>

Ini Chung <neochi@chollian.net> wrote in comp.lang.perl.misc:
>Hi,
>
>I want to go back to the 'caller' subroutine
>but 'goto' the MARK in the other subroutine is not allowed.
>I don't want to die in the sig_handler().
>I want to continue the loop.
>
>How can I solve this problem?
>Any help would be appreciated.
>
>
>sub caller{
>
>   $SIG{ALRM} = &sig_handler();
>
>    while (loop) {

Please don't post pseudocode.  Pseudocode is fine when you have an
algorithm that works and you want to keep details out of the way
of an explanation.  It is only confusing if you are unsure if the
algorithms is correct.

>        alarm 60;
>        &do_it();
>
>MARK:
>        alarm 0;
>    }
>}
>
>sub sig_handler() {
>    print STDERR " time out ";
>    goto MARK;
>}

You will want to use a variable that can be set in the sig_handler
and periodically checked in do_it.  Then bail out of do_it when
the signal arrives.  Don't forget to reset the variable.

Anno


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

Date: Mon, 13 Dec 1999 15:41:56 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: [Q] How can I go back to the caller after SIG{ALRM} ?
Message-Id: <38561330.31796082@news.skynet.be>

Ini Chung wrote:

>I want to go back to the 'caller' subroutine
>but 'goto' the MARK in the other subroutine is not allowed.
>I don't want to die in the sig_handler().
>I want to continue the loop.
>
>How can I solve this problem?
>Any help would be appreciated.

You should put the code you want to exit, into an eval BLOCK. die() in
$SIG{ALARM} will then simply exit that eval BLOCK, and just continue
with the next statement follwing it. You can have more than one of those
code blocks.

-- 
	Bart.


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

Date: Mon, 13 Dec 1999 08:55:37 -0600
From: Robin Sowton <robin.g.sowton@usa.alcatel.com>
Subject: Re: displaying image to browser
Message-Id: <385508E9.9008E84F@usa.alcatel.com>

Thanks. I'll check out the CGI module. Also, my URL path was coded
correctly in HTML. It has the slashes(\)s for preventing the cgi script
from tripping over the embedded quotation marks. Normally in an HTML
doc, the code would be: <IMG SRC="review.gif" WIDTH="179" HEIGHT="103"
BORDER="0" ALIGN"LEFT"> Also, when I had trouble getting the script to
find the review.gif file, I thought I would try using an absolute path
which works with my counter scripts.

Robin


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

Date: Mon, 13 Dec 1999 08:59:09 -0600
From: Robin Sowton <robin.g.sowton@usa.alcatel.com>
Subject: Re: displaying image to browser
Message-Id: <385509BD.1698D428@usa.alcatel.com>

Oops! I mean: 

<IMG SRC="review.gif" WIDTH="179" HEIGHT="103" BORDER="0" ALIGN="LEFT">

;-)


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

Date: Mon, 13 Dec 1999 10:18:39 -0600
From: "Rodney Rindels" <rrindels@arkansas.net>
Subject: Re: Embedding Perl in a DLL
Message-Id: <S0954.4725$5e3.375842@typ11.nn.bcandid.com>

Have you checked out PerlEz on the activestate installation of Perl? There
is a compiled DLL and source code . PerlEz.dll ? usually found in
perl\lib\CORE\. The dll is fairly well documented in the HTML reference
pages.

Good Luck,

Rodney


barry a byrne <bab@daimyo.demon.co.uk> wrote in message
news:38542377.5732@daimyo.demon.co.uk...
> Is it possible to embed a Perl Interpreter in Windows (9*/NT) DLL?
>
> If it is, what compiler settings do I need?
> I certainly haven't found them by trial-and-error.
>
>                      Thanks for any help
>                                         Barry A Byrne
> bab@daimyo.demon.co.uk




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

Date: Mon, 13 Dec 1999 15:55:08 +0100
From: Fabrizio Iozzi <fabrizioiozzi@compuserve.com>
Subject: Re: Extracting HTML
Message-Id: <385508CB.E0C591B1@compuserve.com>

Thanks to all! In fact, the XMl file will contain questions and answers for an
automated testing application. Eric pointed the need for 'entification' (?) of
forbidden chars, and this could be a problem for the people who will write the
questions. Now, this is done in Access and one can input each kind of data (even
accented chars which are tipical of Italian alphabet - BTW anyone knows some
tools to intercept non ASCII char and entify them?).

But this is another subject 8-) I'll return on it within a few days. Now for the
parser!

Bye and thks again!

Fabrizio




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

Date: Mon, 13 Dec 1999 15:55:53 +0100
From: Etienne Gauthier <egauthie@capgemini.fr.nospam>
Subject: Re: Fail to copy a LONG datatype in Oracle to another table
Message-Id: <385508F9.103A0BFE@capgemini.fr>

Rich Tsui wrote:
> 
> Hi Oracle gurus,
> 
>   I have trouble in copying a LONG datatype column of data to another
> table via
> "INSERT INTO tableA (A_col_NUM, A_col_LONG)
>    SELECT B_col_NUM, B_col_LONG FROM tableB", where the A_col_LONG and
> B_col_LONG represent the LONG datatype.
> 
> The error message I got from the sqlplus is:
> ORA-00997: illegal use of LONG datatype
> 

  Read the Oracle Doc. AFAIK, you can't use LONG datatype in sub
queries. Here, you'll have to do a loop yourself.

Etienne


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

Date: Mon, 13 Dec 1999 16:17:54 +0100
From: "Bernhard Seeling" <seeling@kzvth.ef.uunet.de>
Subject: Re: Fail to copy a LONG datatype in Oracle to another table
Message-Id: <8332rc$9le$1@newsread.do.de.uu.net>

you can use the SQL*Plus command   COPY !

mfG Bernhard


Rich Tsui schrieb in Nachricht <3851AD8B.AE32946@cbmi.upmc.edu>...
>Hi Oracle gurus,
>
>  I have trouble in copying a LONG datatype column of data to another
>table via
>"INSERT INTO tableA (A_col_NUM, A_col_LONG)
>   SELECT B_col_NUM, B_col_LONG FROM tableB", where the A_col_LONG and
>B_col_LONG represent the LONG datatype.
>
>The error message I got from the sqlplus is:
>ORA-00997: illegal use of LONG datatype
>
>I suspect it's a bug in Oracle 8.0.4.  If you know how to solve this
>problem, please let me know.  Thank you in advance.
>
>Additionally, I even tried to use DBI in PERL to read a LONG datatype,
>and it also ended up with the following error message,
>DBD::Oracle::st fetchrow failed: ORA-24345: A Truncation or null fetch
>error occurred (DBD ERROR: ORA-01406 error on field 1 of 1, ora_type 8)
>at cp_table.pl line 25.  (Line 25 has the command $sth->fetchrow())
>
>Here is the basic information,
>Server: Oracle 8.0.4.0.0
>OS:     Solaris 2.5
>Box:    Sun's enterprise 10K
>PERL:   5.00403
>
>Rich




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

Date: Mon, 13 Dec 1999 09:49:46 -0500
From: Tom Kralidis <tom.kralidis@ccrs.nrcanDOTgc.ca>
Subject: Re: file size limit
Message-Id: <3855078A.D5732560@ccrs.nrcanDOTgc.ca>

Martien Verbruggen wrote:
> 
> On Sat, 11 Dec 1999 16:06:02 -0500,
>         Tom Kralidis <tom.kralidis@ccrs.nrcanDOTgc.ca> wrote:
> > Why is this happening?  I want to return a file size of a huge file.
> 
> > my $i = (-s $file);
> 
> -s uses stat, and perl just uses your system's stat. What does the man
> page of your system's stat have to say about large files?
> 
> Martien
> --
> Martien Verbruggen              |
> Interactive Media Division      | In the fight between you and the
> Commercial Dynamics Pty. Ltd.   | world, back the world - Franz Kafka
> NSW, Australia                  |

my system's stat returns the correct file size when working in the
shell.  When I use Perl's stat, I get the same incorrect file size. 
When I use a system("stat $file") in the perl script it returns the
correct file size.

Result: the system's stat is fine, Perl's is not.

Now what?

 ..Tom
-- 
=================================
Tom Kralidis
Geo-Spatial Developer
Canada Centre for Remote Sensing
Tel: (613) 947-1828
Fax: (613) 947-1408
http://www.ccrs.nrcan.gc.ca
=================================


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

Date: 13 Dec 1999 14:09:00 +0000
From: Tony Curtis <tony_curtis32@yahoo.com>
Subject: Re: Login forms to different directories
Message-Id: <wk7lijq6f7.fsf@yahoo.com>

Sauron <sauron@innotts.co.uk> writes:

>     I'm currently trying to write a login form consisting of username
> and password boxes. So far I've managed this with Php3, but there seems

HTTP has a standard mechanism for this too.

> Since the destination of the form is set before anyone enters anything
> into the forms fields (i.e. ACTION="......."), I currently have to pass
> the username to another page which then constructs a link to the users
> directory. But I want the user to be taken directly to their directory
> on pressing submit.

Yuk.

> At the moment I have give the user a page with the following link after
> they login:
> 
> echo "Login successful, click <a
> href=\"./$username/index.html\">here</a> to continue.";
> 
> (apologies for posting this in php)

It's just outputting HTML.  Looks more like /bin/sh
to me :-)

> I would have posted this to a PHP group, but alas I couldn't find one,
> so if anyone here could give me a solution in Perl or php I'd be most
> grateful, thanks.

perldoc CGI     The "redirect" method is what you want.

Generation of HTTP headers and HTML isn't what this
group is about, so unless you have more
perl-specific things to ask, your life will be much
easier if you use the appropriate group...

If you're using apache you can probably plug in a
module to do this, but again that's not a perl issue.

hth
tony


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

Date: 13 Dec 1999 16:08:31 GMT
From: lee.lindley@bigfoot.com
Subject: netiquete was [Re: Problem with Search script]
Message-Id: <8335lv$ckg$1@rguxd.viasystems.com>

haps13@my-deja.com wrote:

:>                                                        I take pleasure
:>in helping out others.  If only to encourage another into a pursuit
:>that you seem to enjoy.  But to scald someone who doesn't want to do
:>the lazy thing and use MS frontpage extensions.  I on the other hand
:>like to share what I know.  If you ever have questions on servers,
:>WANs, cisco switches, or process control equipment then I'd be happy to
:>help without the insults and sarcasm.

I know a little bit about netiquete (sp?) and I am happy to share it
with you without insults or sarcasm.

You should lurk in c.l.p.misc (or any newsgroup for that matter) for
a while before you post.  As with any gathering of people there are
cultural dynamics at work in usenet groups.  You need to learn them
and modify your behavior accordingly or you could be shunned.

-- 
// Lee.Lindley   /// I used to think that being right was everything.
// @bigfoot.com  ///  Then I matured into the realization that getting
////////////////////   along was more important.  Except on usenet.


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

Date: 13 Dec 1999 14:57:01 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: New posters to comp.lang.perl.misc
Message-Id: <8331ft$1rq$2@info2.uah.edu>

Following is a summary of articles from new posters spanning a 7 day
period, beginning at 06 Dec 1999 14:47:09 GMT and ending at
13 Dec 1999 07:40:33 GMT.

Notes
=====

    - A line in the body of a post is considered to be original if it
      does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
    - All text after the last cut line (/^-- $/) in the body is
      considered to be the author's signature.
    - The scanner prefers the Reply-To: header over the From: header
      in determining the "real" email address and name.
    - Original Content Rating (OCR) is the ratio of the original content
      volume to the total body volume.
    - Find the News-Scan distribution on the CPAN!
      <URL:http://www.perl.com/CPAN/modules/by-module/News/>
    - Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
    - Copyright (c) 1999 Greg Bacon.
      Verbatim copying and redistribution is permitted without royalty;
      alteration is not permitted.  Redistribution and/or use for any
      commercial purpose is prohibited.

Totals
======

Posters:  242 (48.8% of all posters)
Articles: 353 (19.1% of all articles)
Volume generated: 590.1 kb (18.8% of total volume)
    - headers:    263.6 kb (5,512 lines)
    - bodies:     323.5 kb (11,352 lines)
    - original:   256.1 kb (9,300 lines)
    - signatures: 2.7 kb (65 lines)

Original Content Rating: 0.792

Averages
========

Posts per poster: 1.5
    median: 1.0 post
    mode:   1 post - 179 posters
    s:      1.9 posts
Message size: 1711.8 bytes
    - header:     764.6 bytes (15.6 lines)
    - body:       938.5 bytes (32.2 lines)
    - original:   743.0 bytes (26.3 lines)
    - signature:  7.8 bytes (0.2 lines)

Top 10 Posters by Number of Posts
=================================

         (kb)   (kb)  (kb)  (kb)
Posts  Volume (  hdr/ body/ orig)  Address
-----  --------------------------  -------

    8    11.0 (  5.2/  5.8/  4.2)  daphipps@charlotte.infi.net
    7    10.7 (  6.0/  4.7/  2.7)  "Indy Singh" <indy@nospamdynamicstate.com>
    6    10.5 (  4.3/  6.3/  4.0)  jlericson@my-deja.com
    6     6.2 (  3.5/  2.7/  0.9)  "Lassi Hautakangas" <lhauta@yritys.tpo.fi>
    5     5.5 (  4.4/  1.1/  1.1)  Phil <spam_and_pvoris_don't_agree@earthlink.net>
    5     7.4 (  4.6/  2.8/  2.0)  "@DrieN" <info.freelance@bluewin.ch>
    4     6.7 (  3.1/  3.5/  2.7)  listig@my-deja.com
    4    31.9 (  3.7/ 26.9/ 26.2)  Daniel Ortmann <ortmann@rchland.ibm.com>
    4     7.8 (  3.1/  4.7/  3.1)  "Steven Van Poeck" <steven.van-poeck@wanadoo.com>
    4     5.0 (  2.8/  2.2/  0.8)  "Ross M. Greenberg" <greenber@catskill.net>

These posters accounted for 2.9% of all articles.

Top 10 Posters by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Address
--------------------------  -----  -------

  31.9 (  3.7/ 26.9/ 26.2)      4  Daniel Ortmann <ortmann@rchland.ibm.com>
  19.7 (  1.2/ 18.5/ 16.6)      2  alembic@runware.com (Alembic)
  16.7 (  0.8/ 15.9/ 15.8)      1  jiegao@mail.usyd.edu.au (Jie Gao)
  12.1 (  0.9/ 11.2/ 11.0)      1  Hrvoje Niksic <hniksic@iskon.hr>
  11.0 (  5.2/  5.8/  4.2)      8  daphipps@charlotte.infi.net
  10.7 (  6.0/  4.7/  2.7)      7  "Indy Singh" <indy@nospamdynamicstate.com>
  10.5 (  4.3/  6.3/  4.0)      6  jlericson@my-deja.com
   8.6 (  2.5/  6.1/  2.6)      4  "Steven Szabo" <szabost@cig.mot.com>
   8.0 (  1.2/  6.8/  6.6)      2  "Akira Kiyomiya" <akira.kiyomiya@autodesk.com>
   7.8 (  3.1/  4.7/  3.1)      4  "Steven Van Poeck" <steven.van-poeck@wanadoo.com>

These posters accounted for 4.4% of the total volume.

Top 10 Posters by OCR (minimum of three posts)
==============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

1.000  (  1.0 /  1.0)      3  ianmetaxa <7starNO7sSPAM@ianmetaxa.co.uk.invalid>
1.000  (  1.1 /  1.1)      5  Phil <spam_and_pvoris_don't_agree@earthlink.net>
1.000  (  2.2 /  2.2)      3  "Robert Shen" <lshen@sc.mcel.mot.com>
0.974  ( 26.2 / 26.9)      4  Daniel Ortmann <ortmann@rchland.ibm.com>
0.810  (  1.0 /  1.2)      3  "Ulf Berger" <ulf.berger@fernuni-hagen.de>
0.748  (  2.7 /  3.5)      4  listig@my-deja.com
0.728  (  4.2 /  5.8)      8  daphipps@charlotte.infi.net
0.703  (  2.0 /  2.8)      5  "@DrieN" <info.freelance@bluewin.ch>
0.663  (  3.1 /  4.7)      4  "Steven Van Poeck" <steven.van-poeck@wanadoo.com>
0.652  (  2.1 /  3.2)      4  gogorek360@my-deja.com

Bottom 10 Posters by OCR (minimum of three posts)
=================================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

0.527  (  0.9 /  1.7)      3  "Jayamaruthyraman" <jmaruti@intelletualapps.com>
0.492  (  1.6 /  3.2)      3  mgrady797@my-deja.com
0.477  (  0.7 /  1.5)      3  "Antoine" <AntoineB@free.fr>
0.423  (  2.6 /  6.1)      4  "Steven Szabo" <szabost@cig.mot.com>
0.391  (  0.8 /  1.9)      3  Aaron <aaronaw@my-deja.com>
0.374  (  0.8 /  2.2)      4  "Ross M. Greenberg" <greenber@catskill.net>
0.357  (  0.9 /  2.7)      6  "Lassi Hautakangas" <lhauta@yritys.tpo.fi>
0.353  (  1.0 /  3.0)      3  Larry Webber <buzz11@sprynet.com>
0.308  (  0.4 /  1.3)      3  Jens Gruschel <jens@pegtop.de>
0.194  (  0.5 /  2.8)      3  Grant <grant@gcresearch.com>

23 posters (9%) had at least three posts.

Top 10 Targets for Crossposts
=============================

Articles  Newsgroup
--------  ---------

      38  comp.lang.perl.modules
      38  alt.perl
      29  comp.lang.perl
      12  comp.infosystems.www.servers.ms-windows
      12  comp.lang.javascript
       9  alt.comp.perlcgi.freelance
       6  alt.html
       5  comp.infosystems.www.authoring.html
       4  comp.unix.sco.misc
       3  comp.programming

Top 10 Crossposters
===================

Articles  Address
--------  -------

       6  "brett winner" <brett@firstcomm.com>
       6  "Antoine" <AntoineB@free.fr>
       6  barryo@fastlink.com.au (Barry OGrady)
       3  Grant <grant@gcresearch.com>
       3  "@DrieN" <info.freelance@bluewin.ch>
       2  "Pete Hughes" <pih@gis.net>
       2  Sam Triki <triki@corp.sgi.com>
       2  Scott testing your mail <fsrm@full-spectrum.net>
       2  hash1024@yahoo.com (Alex Barylo)
       2  Phil <spam_and_pvoris_don't_agree@earthlink.net>


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

Date: 13 Dec 1999 14:38:36 GMT
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl and PWS4
Message-Id: <385504ec_1@newsread3.dircon.co.uk>

FF <newance@tiscalinet.it> wrote:
> I need to have Perl running in my Ms Personal Web Server 4. Can anyone help
> me, the doc of win32 perl (Buld 5.00503) isn't of much help.
> 

You probably need to follow the instructions for setting up IIS3.0 or
earlier - if you have any further questions you will want to ask in
comp.infosystems.www.servers.ms-windows

/J\
-- 
"It's times like this I wish I had a penis" - Duckman


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

Date: Mon, 13 Dec 1999 15:45:57 GMT
From: Mirko Ruegheimer <mirkoruegheimer@my-deja.com>
Subject: Re: Perl and PWS4
Message-Id: <8334bj$a9e$1@nnrp1.deja.com>

In article <e2754.25031$Bg7.243257@typhoon.libero.it>,
  "FF" <newance@tiscalinet.it> wrote:
> I need to have Perl running in my Ms Personal Web Server 4. Can
anyone help
> me, the doc of win32 perl (Buld 5.00503) isn't of much help.
>
> Thanx in advance
>
> Fabrizio
>
>

you have to connect the extension .pl to perl [your perl path]\perl.exe
%s %s for your cgi-directory



Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Mon, 13 Dec 1999 16:42:55 -0500
From: Andrew Price <aprice@imaginet.co.uk>
Subject: Perl to Ref an image for a <IMG> tag
Message-Id: <3855685F.77D0805@cs.cf.ac.uk>

What I want to do is setup up a URL

<img src="/cgi-bin/imagescript.pl">

then what I want /cgi-bin/imagescript.pl to do is

-------------------------------------
$image= "/images/picture.gif";


do background stuff that is needed for the script

then the important thing is to display the $image somehow

display $image

does anyone have any ideas at all as I do not know where to start. it is
also important that I do not use an SSI as I want this script to run
from any page on the server

Cheers

Andrew




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

Date: Mon, 13 Dec 1999 15:27:05 -0000
From: "Mike Bickham" <mbickham@photographics.co.uk>
Subject: Perl/CGI script wont run
Message-Id: <%b854.3054$Sn.207133@newsr2.u-net.net>

Hi All,

I'm fairly new to this newsgroup, so if my posting is a little off-topic, I
apologise in advance.

I have installed ActivePerl 5.22 on NT Server 4.0 and installed the CGI
module.  When I try to access a PL or CGI script on my web server I get
Error 404, File Not Found.  However the file is there, but I cant seem to
access it.

Previously I had the same setup, except that Perl was in a different
directory.  Everything worked.  Now I have installed Perl in another
directory (and the environment variables are set correctly), I cant access
the Perl scripts.

Does anyone know what the problem might be???

Regards,

Mike Bickham
Photo.Graphics




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

Date: Mon, 13 Dec 1999 09:56:48 -0600
From: "Rodney Rindels" <rrindels@arkansas.net>
Subject: Re: Perl/CGI script wont run
Message-Id: <sI854.4630$5e3.373128@typ11.nn.bcandid.com>

You must configure the new directory to be executable in your web server
setup.
Sounds  like this is the problem.

Good Luck,

Rodney
Mike Bickham <mbickham@photographics.co.uk> wrote in message
news:%b854.3054$Sn.207133@newsr2.u-net.net...
> Hi All,
>
> I'm fairly new to this newsgroup, so if my posting is a little off-topic,
I
> apologise in advance.
>
> I have installed ActivePerl 5.22 on NT Server 4.0 and installed the CGI
> module.  When I try to access a PL or CGI script on my web server I get
> Error 404, File Not Found.  However the file is there, but I cant seem to
> access it.
>
> Previously I had the same setup, except that Perl was in a different
> directory.  Everything worked.  Now I have installed Perl in another
> directory (and the environment variables are set correctly), I cant access
> the Perl scripts.
>
> Does anyone know what the problem might be???
>
> Regards,
>
> Mike Bickham
> Photo.Graphics
>
>




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

Date: Mon, 13 Dec 1999 14:31:39 GMT
From: haps13@my-deja.com
Subject: Re: Problem with Search script
Message-Id: <83300b$6u3$1@nnrp1.deja.com>

My apologies for stepping into this elitest group without first bending
over to take it up the keister.  God forbid I tried to use one of
Matt's scripts.  It's a simple mistake seeing as it is easy to find on
the web and has fairly good documentation(on how to get it running not
what the code does).

Once again forgive me lord for not knowing perl or how to program it to
be quicker, faster, smarter, or to cook you breakfast at the same time.

Kill me now lord for posting the entire script.  I erred on the side of
completeness trying to make sure that someone could look at the whole
problem as opposed to what I thought the problem was.

Damn me for eternity for hoping that someone had set up a similar
script on an NT box with IIS4 and would have any easy answer for what
the basedir should be.  If you run something else like Appache for your
webserver then maybe you wouldn't know.  However then I would figure
you would just keep quiet and let the usefull responses float to the
top.

Unfortunate for you Eric that you are the way you are.  I take pleasure
in helping out others.  If only to encourage another into a pursuit
that you seem to enjoy.  But to scald someone who doesn't want to do
the lazy thing and use MS frontpage extensions.  I on the other hand
like to share what I know.  If you ever have questions on servers,
WANs, cisco switches, or process control equipment then I'd be happy to
help without the insults and sarcasm.

Gordon


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Mon, 13 Dec 1999 16:54:37 +0100
From: Stephane Deverly <steph@duboi.com>
Subject: Select pipes and nt
Message-Id: <385516BD.AD92E3B@duboi.com>

Hi.
Did someone succeed in making a select on an open pipe on windows nt ?
I have tried the regular select function and the IO::Select and both
give me the error message : "Bad file descriptor".
Am I missing something ?
Thanks for any help.

--
Stephane Deverly
http://perso.magic.fr/deverly
mailto:steph@duboi.com





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

Date: Mon, 13 Dec 1999 14:49:25 GMT
From: mdjukic@my-deja.com
Subject: Re: Sendmail and perl: broken pipe error
Message-Id: <83311k$7hg$1@nnrp1.deja.com>

In article <8312sv$tri$1@gellyfish.btinternet.com>,
  Jonathan Stowe <gellyfish@gellyfish.com> wrote:
> On Sun, 12 Dec 1999 11:46:18 GMT mdjukic@my-deja.com wrote:
> > Hi!,
> >
> > I have the following perl script. if it is invoked  from the web
page it
> > works fine - send the email and everything. If it is run from the
> > command line it dies with error message "Broken pipe" just after it
sent
**SNIP**
> >
> > $messagebody
> >
> > __END_OF_MAIL__
> >   close (MAIL);
> >   return(1);
> > }
> >
>
> I'm not clear why you are making return values from your subroutine
> when you are not testing the return from the subroutine, I am also
> not clear why you are using local() in your subroutine when you
> should be using my().  You should be printing out the value of
> $! if your open of 'sendmail' fails - I would suspect that
/bin/sendmail
> is not the correct path but I might be wrong.  I'm also not sure why
> you are using the -n flag to sendmail but this is something you might
> want to take up with comp.mail.sendmail.
>
> /J\
> --
> Jonathan Stowe <jns@gellyfish.com>
> <http://www.gellyfish.com>
> Hastings:
<URL:http://dmoz.org/Regional/UK/England/East_Sussex/Hastings>

Jonathan,

This mini-prog was made just to figure out the reason why
sendmail was dumping "Broken pipe" error when invoked from the
command line rather than the browser (no broken pipe from browser,
sendmail emails correctly).
These lines are actually part of a much bigger program where local() &
return() are needed. Out of laziness I didn't make it a 100% efficient
program, but cut'n'pasted more or less as it was. Thay do not actually
have any bearing on the "Broken pipe" error.

Thanks for your help.

Marko


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Mon, 13 Dec 1999 14:57:21 GMT
From: mdjukic@my-deja.com
Subject: Re: Sendmail and perl: broken pipe error
Message-Id: <8331ge$7uv$1@nnrp1.deja.com>

Ok, here's what I just figured out (if someone has any vague idea why
this fixes the "Broken pipe" problem)...

if i change the sendmail path to "/sbin/sendmail" it works both from the
browser and the command line without any "Broken pipe" errors...
what is the "/sbin/" directory??

probably have to talk to my host.

Thanks, problem solved.
Marko


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Mon, 13 Dec 1999 14:07:58 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: split with ", $, #, @, %, ( ..
Message-Id: <3855fc94.26007976@news.skynet.be>

Abigail wrote:

>Then let me repeat the question:
>
>   But then, how come split ' '; and split " "; `work'? Or for that matter
>   split q! !; ?

How come

	$a = "(\\w+)";
	"(#Yo!#)" =~ $a and print $1;

works?

It looks like "expecting a pattern" implies you can use simple strings,
too.

Besides, the docs for split mention:

        The pattern `/PATTERN/' may be replaced with an
        expression to specify patterns that vary at runtime.

-- 
	Bart.


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

Date: 13 Dec 1999 15:27:30 GMT
From: lee.lindley@bigfoot.com
Subject: Re: split with ", $, #, @, %, ( ..
Message-Id: <833392$bu6$1@rguxd.viasystems.com>

Bart Lateur <bart.lateur@skynet.be> wrote:

:>How come

:>	$a = "(\\w+)";
:>	"(#Yo!#)" =~ $a and print $1;

:>works?

:>It looks like "expecting a pattern" implies you can use simple strings,
:>too.

As long as the string contains only a "simple" pattern.  Some aspects
of the re engine are implemented through methods that are built
when the re is compiled.  If you don't compile the re, then they are not
built.

Compare:
   perl -e '$_="some string";$re="(s(?!o).+)";print $1 if $_ =~ $re;'
[prints nothing]
to
   perl -e '$_="some string";$re=qr"(s(?!o).+)";print $1 if $_ =~ $re;'
string

or even:
   perl -e '$_="some string";$re="(?{print q/true/})";$_ =~ $re;'
/(?{print q/true/})/: Eval-group not allowed at runtime, use re 'eval' at -e line 1.


-- 
// Lee.Lindley   /// I used to think that being right was everything.
// @bigfoot.com  ///  Then I matured into the realization that getting
////////////////////   along was more important.  Except on usenet.


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

Date: 13 Dec 1999 11:21:54 -0500
From: Uri Guttman <uri@sysarch.com>
Subject: Re: split with ", $, #, @, %, ( ..
Message-Id: <x7vh62lskd.fsf@home.sysarch.com>

>>>>> "W" == Wyzelli  <wyzelli@yahoo.com> writes:

  W> Wasn't Gilly trying to do split m$pattern$  or split m@pattern@

no m. that was the issue.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com


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

Date: 13 Dec 1999 14:57:01 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: Statistics for comp.lang.perl.misc
Message-Id: <8331ft$1rq$1@info2.uah.edu>

Following is a summary of articles spanning a 7 day period,
beginning at 06 Dec 1999 14:47:09 GMT and ending at
13 Dec 1999 07:40:33 GMT.

Notes
=====

    - A line in the body of a post is considered to be original if it
      does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
    - All text after the last cut line (/^-- $/) in the body is
      considered to be the author's signature.
    - The scanner prefers the Reply-To: header over the From: header
      in determining the "real" email address and name.
    - Original Content Rating (OCR) is the ratio of the original content
      volume to the total body volume.
    - Find the News-Scan distribution on the CPAN!
      <URL:http://www.perl.com/CPAN/modules/by-module/News/>
    - Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
    - Copyright (c) 1999 Greg Bacon.
      Verbatim copying and redistribution is permitted without royalty;
      alteration is not permitted.  Redistribution and/or use for any
      commercial purpose is prohibited.

Excluded Posters
================

perlfaq-suggestions\@(?:.*\.)?perl\.com

Totals
======

Posters:  496
Articles: 1844 (919 with cutlined signatures)
Threads:  479
Volume generated: 3142.7 kb
    - headers:    1471.9 kb (29,569 lines)
    - bodies:     1513.6 kb (49,139 lines)
    - original:   987.5 kb (35,249 lines)
    - signatures: 155.4 kb (3,350 lines)

Original Content Rating: 0.652

Averages
========

Posts per poster: 3.7
    median: 1.0 post
    mode:   1 post - 297 posters
    s:      11.4 posts
Posts per thread: 3.8
    median: 3 posts
    mode:   1 post - 117 threads
    s:      4.7 posts
Message size: 1745.2 bytes
    - header:     817.4 bytes (16.0 lines)
    - body:       840.5 bytes (26.6 lines)
    - original:   548.4 bytes (19.1 lines)
    - signature:  86.3 bytes (1.8 lines)

Top 10 Posters by Number of Posts
=================================

         (kb)   (kb)  (kb)  (kb)
Posts  Volume (  hdr/ body/ orig)  Address
-----  --------------------------  -------

  124   202.8 ( 97.8/ 90.6/ 51.4)  David Cassell <cassell@mail.cor.epa.gov>
  117   280.4 (132.3/ 98.9/ 95.3)  abigail@delanet.com
  102   168.9 ( 66.8/ 90.6/ 46.5)  Larry Rosler <lr@hpl.hp.com>
   92   152.1 ( 69.3/ 71.5/ 28.0)  Jonathan Stowe <gellyfish@gellyfish.com>
   64    99.5 ( 60.6/ 31.3/ 19.6)  Tom Phoenix <rootbeer@redcat.com>
   58   118.1 ( 53.1/ 47.7/ 23.1)  Uri Guttman <uri@sysarch.com>
   41    70.4 ( 34.1/ 36.0/ 19.5)  Jeff Zucker <jeff@vpservices.com>
   36    53.1 ( 30.3/ 22.5/ 13.5)  bart.lateur@skynet.be (Bart Lateur)
   26    57.7 ( 20.6/ 31.9/ 20.6)  mgjv@comdyn.com.au
   26    40.2 ( 20.9/ 16.8/ 11.3)  simon@brecon.co.uk

These posters accounted for 37.2% of all articles.

Top 10 Posters by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Address
--------------------------  -----  -------

 280.4 (132.3/ 98.9/ 95.3)    117  abigail@delanet.com
 202.8 ( 97.8/ 90.6/ 51.4)    124  David Cassell <cassell@mail.cor.epa.gov>
 168.9 ( 66.8/ 90.6/ 46.5)    102  Larry Rosler <lr@hpl.hp.com>
 152.1 ( 69.3/ 71.5/ 28.0)     92  Jonathan Stowe <gellyfish@gellyfish.com>
 118.1 ( 53.1/ 47.7/ 23.1)     58  Uri Guttman <uri@sysarch.com>
  99.5 ( 60.6/ 31.3/ 19.6)     64  Tom Phoenix <rootbeer@redcat.com>
  70.4 ( 34.1/ 36.0/ 19.5)     41  Jeff Zucker <jeff@vpservices.com>
  57.7 ( 20.6/ 31.9/ 20.6)     26  mgjv@comdyn.com.au
  53.1 ( 30.3/ 22.5/ 13.5)     36  bart.lateur@skynet.be (Bart Lateur)
  48.0 ( 15.3/ 30.5/ 25.4)     21  Greg Bacon <gbacon@cs.uah.edu>

These posters accounted for 39.8% of the total volume.

Top 10 Posters by OCR (minimum of five posts)
==============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

1.000  (  1.1 /  1.1)      5  Phil <spam_and_pvoris_don't_agree@earthlink.net>
1.000  (  1.8 /  1.8)      5  ramu911@aol.com (RAMU911)
0.963  ( 95.3 / 98.9)    117  abigail@delanet.com
0.901  (  4.8 /  5.3)      7  Tim Westlake <tim.westlakeNOtiSPAM@myremarq.com.invalid>
0.832  ( 25.4 / 30.5)     21  Greg Bacon <gbacon@cs.uah.edu>
0.757  (  3.7 /  4.8)     11  Makau Divangamene <makau@multimania.com>
0.728  (  4.2 /  5.8)      8  daphipps@charlotte.infi.net
0.725  (  7.8 / 10.8)     19  Scott Lanning <slanning@bu.edu>
0.716  (  2.8 /  3.9)      6  mjtg@cus.cam.ac.uk (M.J.T. Guy)
0.703  (  2.0 /  2.8)      5  "@DrieN" <info.freelance@bluewin.ch>

Bottom 10 Posters by OCR (minimum of five posts)
=================================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

0.428  (  2.0 /  4.7)      7  brian@smithrenaud.com (brian d foy)
0.412  (  5.1 / 12.4)     11  anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
0.406  (  1.8 /  4.5)      6  Bernie <bfb@att.net>
0.391  ( 28.0 / 71.5)     92  Jonathan Stowe <gellyfish@gellyfish.com>
0.387  (  1.7 /  4.5)      6  beans@bedford.net (Thunderdust (TomH))
0.361  (  1.0 /  2.8)      7  "Peter Sundstrom" <send@no.junk.mail>
0.357  (  0.9 /  2.7)      6  "Lassi Hautakangas" <lhauta@yritys.tpo.fi>
0.325  (  2.8 /  8.5)     17  Tom Briles <sariq@texas.net>
0.310  (  2.5 /  7.9)      6  rmgalante@my-deja.com
0.220  (  5.8 / 26.3)      7  jadapturNOSPAM@hotmail.com (John)

60 posters (12%) had at least five posts.

Top 10 Threads by Number of Posts
=================================

Posts  Subject
-----  -------

   58  split with ", $, #, @, %, ( ..
   37  grep perl function
   36  sendmail deliverymode -O option
   25  comma evaluation order (bug?)
   18  OT: Millennium (was: Re: Manual GIF Generation)
   18  please tell me the meaning of '=>'
   18  newbie
   17  Deleting an array element
   17  Looking for a good Perl Book
   16  Working with Large Data File

These threads accounted for 14.1% of all articles.

Top 10 Threads by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Subject
--------------------------  -----  -------

 119.2 ( 59.2/ 50.7/ 33.6)     58  split with ", $, #, @, %, ( ..
  81.7 ( 34.7/ 39.8/ 30.6)     37  grep perl function
  74.3 ( 29.9/ 40.3/ 22.2)     36  sendmail deliverymode -O option
  47.9 ( 17.3/ 28.7/ 10.5)     17  Looking for a good Perl Book
  40.5 ( 19.7/ 19.2/ 10.3)     25  comma evaluation order (bug?)
  35.7 (  5.5/ 28.9/ 27.5)      6  perl5.005_62 on AIX 4.3: Badly Configure'd import/export ld flags
  35.5 ( 14.6/ 19.6/ 10.8)     18  newbie
  31.8 ( 16.6/ 14.0/  6.0)     18  OT: Millennium (was: Re: Manual GIF Generation)
  31.7 (  6.1/ 24.7/ 21.5)      7  Problem with target / Frames
  30.1 ( 15.0/ 12.6/  7.8)     16  Working with Large Data File

These threads accounted for 16.8% of the total volume.

Top 10 Threads by OCR (minimum of five posts)
==============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Subject
-----  --------------  -----  -------

0.953  ( 27.5/  28.9)      6  perl5.005_62 on AIX 4.3: Badly Configure'd import/export ld flags
0.900  ( 10.3/  11.4)      6  Statistics for comp.lang.perl.misc
0.870  ( 21.5/  24.7)      7  Problem with target / Frames
0.832  (  0.9/   1.1)      5  Learning Perl on the web
0.816  (  2.3/   2.8)      6  Hash Arrays...
0.805  (  2.0/   2.5)      5  connecting to Nominet whois server
0.796  (  1.2/   1.5)      5  Learning Perl & CGI
0.781  (  6.3/   8.1)      9  ActivePerl programs do not run under MS-PWS on Win95
0.771  ( 11.4/  14.8)      5  Problem with Search script
0.770  ( 30.6/  39.8)     37  grep perl function

Bottom 10 Threads by OCR (minimum of five posts)
=================================================

         (kb)    (kb)
OCR      orig /  body  Posts  Subject
-----  --------------  -----  -------

0.438  (  1.6 /  3.7)      7  Password entry
0.432  (  1.7 /  3.9)      7  "junk" eof char in a file
0.425  (  6.0 / 14.0)     18  OT: Millennium (was: Re: Manual GIF Generation)
0.404  (  1.7 /  4.2)      5  Example in perl doc Re: comma evaluation order (bug?)
0.402  (  2.7 /  6.6)      9  Question
0.397  (  2.6 /  6.4)     10  Premature end of script headers problem - But stranger
0.380  (  2.1 /  5.4)      7  How to pass a filename argument to a script from a URL?
0.366  ( 10.5 / 28.7)     17  Looking for a good Perl Book
0.333  (  2.7 /  8.1)      9  Get an html file in a cgi
0.292  (  3.9 / 13.4)      8  Best book on Perl

118 threads (24%) had at least five posts.

Top 10 Targets for Crossposts
=============================

Articles  Newsgroup
--------  ---------

      38  comp.lang.perl.modules
      38  alt.perl
      29  comp.lang.perl
      12  comp.infosystems.www.servers.ms-windows
      12  comp.lang.javascript
       9  alt.comp.perlcgi.freelance
       6  alt.html
       5  comp.infosystems.www.authoring.html
       4  comp.unix.sco.misc
       3  comp.programming

Top 10 Crossposters
===================

Articles  Address
--------  -------

      12  Jeff Zucker <jeff@vpservices.com>
       9  abigail@delanet.com
       8  Larry Rosler <lr@hpl.hp.com>
       8  David Cassell <cassell@mail.cor.epa.gov>
       6  barryo@fastlink.com.au (Barry OGrady)
       6  "brett winner" <brett@firstcomm.com>
       6  "Antoine" <AntoineB@free.fr>
       6  dha@panix7.panix.com (David H. Adler)
       4  Jonathan Stowe <gellyfish@gellyfish.com>
       4  Rich Tsui <tsui@cbmi.upmc.edu>


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

Date: 13 Dec 1999 17:54:53 +0100
From: Benjamin Schweizer <SternSZ@gmx.de>
Subject: updating IO::Select module
Message-Id: <m3ogbuaihu.fsf@anthrax.local.net>

Hello,

some months ago, I've updated IO::Select by a Perl method. I don't
know the exactly command, so I tried to find the source in the
CPAN. Since I had no success, but I need to update this method, I'm
here again...
Can anybody tell me how to update IO::Select?




regards
  -Benjamin

-- 
http://www.wms-hn.de/underworld/


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

Date: Mon, 13 Dec 1999 08:47:31 -0800
From: Samay <samay1NOsaSPAM@hotmail.com.invalid>
Subject: Visual Diagram of Sub Routines
Message-Id: <004aa0e3.aaba355b@usw-ex0102-016.remarq.com>

Hi, Is there any tool, related to Perl or other language with can
provide visual diagram of sub routines.. I need one for Perl.
It certainly helps to get better understanding of the code.
If it's only in other language than it should accomodate the perl words
such as "sub"  as starting of new function/sub/procedure..

thanks..
Samay..





* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



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

Date: Mon, 13 Dec 1999 14:09:27 GMT
From: Rodney Engdahl <red_orc@my-deja.com>
Subject: Why do non-blocking reads block?
Message-Id: <832uml$5o7$1@nnrp1.deja.com>

 I am writing a small client piece that talks to a server piece.
The client(a) starts out sending messages to the server, which passes
them on to another client(b).  Eventually, client(b) will send
responding messages to the server for routing back to client(a).

I am using IO::Socket and Socket on perl 5.00502 on an Ultra 10 running
Solaris.

Since client(a) is set up to send a bunch of messages and cannot know
when the server may start routing messages to it from client(b), and
since the same socket has to be used for receive and send, I think i
have to check for incoming messages prior to writing the next message
to the server.

To do this, I thought that I could use recv, and let it time out if it
cannot get $readlen bytes.

The problem:

$retlen = recv($sock, $buffer, $readlen, $flags);

blocks instead of coming back with $readlen == 0 when there are no
messages to read.

What am I doing wrong?

PS:  same results with read, sysread (making sure that for the same
socket, I am using the matching send, print, syswrite . . .)

????

--
Some drink at the fountain of knowledge...others just gargle.


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Mon, 13 Dec 1999 14:12:39 GMT
From: Rodney Engdahl <red_orc@my-deja.com>
Subject: Re: Why do non-blocking reads block?
Message-Id: <832usj$625$1@nnrp1.deja.com>

In article <832uml$5o7$1@nnrp1.deja.com>,
  Rodney Engdahl <red_orc@my-deja.com> wrote:

> The problem:
>
> $retlen = recv($sock, $buffer, $readlen, $flags);
>
> blocks instead of coming back with $readlen == 0 when there are no
> messages to read.

Sorry, should have been length($buffer) == 0 above, not $readlen == 0.
--
Some drink at the fountain of knowledge...others just gargle.


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: 13 Dec 1999 15:53:13 GMT
From: gbacon@ruby.itsc.uah.edu (Greg Bacon)
Subject: Re: Working with Large Data File
Message-Id: <8334p9$2d2$1@info2.uah.edu>

In article <82u77n$86c$1@lublin.zrz.tu-berlin.de>,
	anno4000@lublin.zrz.tu-berlin.de (Anno Siegel) writes:

: Greg Bacon <gbacon@cs.uah.edu> wrote in comp.lang.perl.misc:
:
: >If I'd meant that, I would have said "and, equivalently,". :-)
: 
: Hmmm.... How does "and also" express that what follows is a sufficient
: but not necessary condition for the antecedent?

It doesn't.  I repeated Baase's definition and the technique in her
book for showing that g is in O(f).  The technique itself fits the
form of a conditional, i.e. that

    lim(n->inf) g(n)/f(n) = c for some real c >= 0

is sufficient condition for g being in O(f).

Greg
-- 
The magic words are squeamish ossifrage.


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

Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 16 Sep 99)
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.  

| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

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.

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 V9 Issue 1650
**************************************


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