[11957] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 5557 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue May 4 05:07:27 1999

Date: Tue, 4 May 99 02:00:19 -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           Tue, 4 May 1999     Volume: 8 Number: 5557

Today's topics:
        array assignment tvn007@my-dejanews.com
    Re: array assignment duke@no.spam.ee
    Re: Books xiaobobo@my-dejanews.com
        Declaration Help Please!! <morti_cne@my-dejanews.com>
    Re: Declaration Help Please!! (Sam Holden)
        Embperl & filehandles <neeme@eenet.ee>
    Re: Embperl & filehandles <neeme@eenet.ee>
    Re: Error: Can't do inplace edit without backup. (Ilya Zakharevich)
    Re: Error: Can't do inplace edit without backup. <fbart@sprynet.com>
    Re: finding the right doc WAS Re: using perl to manage  <jdf@pobox.com>
    Re: Finding x^y? (Tad McClellan)
    Re: Frequent Posters: new group for WWW applications of <design@raincloud-studios.com>
    Re: Help with multiple text files, search and replace,  (Tad McClellan)
        host name -> server name? <globus@infonet.ee>
        How to distinguish between cron-startup and command-lin <hove@ido.phys.ntnu.no>
        Implementing Zmodem in Perl? <portboy@home.com>
    Re: Perl in the workplace (Ran)
        Perl with Apache <alan@benchmarx.co.uk>
    Re: return codes from called scripts (Tad McClellan)
        RFC: s/The Perl Institute/Perl Mongers/g; (brian d foy)
    Re: RFC: s/The Perl Institute/Perl Mongers/g; <uri@sysarch.com>
    Re: Shopping Cart Script smnayeem@my-dejanews.com
    Re: Simple Checksum "Confidence Percentage"??? (Charles Demas)
    Re: Stumped on Regex routine <uri@sysarch.com>
        where can i find sample perl-cgi scripts? smnayeem@my-dejanews.com
    Re: Who am I? What am I doing? (looking for input) <silver@silverchat.com>
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

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

Date: Tue, 04 May 1999 07:32:53 GMT
From: tvn007@my-dejanews.com
Subject: array assignment
Message-Id: <7gm7r6$kt6$1@nnrp1.dejanews.com>

Hi,

Would someone help me with this ?

I have two array as shown below:

@array1 = (1,4,10,5);
@array2 =  (2,3,6,9,7,8);

and I would like to have the output as follow:

@array3 = (1,2,3,4,5,6,7,8,9,10);

Thanks in advance,

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: 4 May 1999 08:25:52 GMT
From: duke@no.spam.ee
Subject: Re: array assignment
Message-Id: <7gmaug$lbt$1@kadri.ut.ee>

tvn007@my-dejanews.com wrote:
: I have two array as shown below:
: @array1 = (1,4,10,5);
: @array2 =  (2,3,6,9,7,8);
: and I would like to have the output as follow:
: @array3 = (1,2,3,4,5,6,7,8,9,10);

try

@array3 = sort { $a <=> $b } @array2,@array1;

Anti Veeranna
University of Tartu
Estonia




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

Date: Tue, 04 May 1999 05:09:02 GMT
From: xiaobobo@my-dejanews.com
Subject: Re: Books
Message-Id: <7glvdd$dbb$1@nnrp1.dejanews.com>

I've tried out addall.com, found that some book prices
are not correct, maybe they cached the prices, not
updating them often. Check out www.bestbookdeal.com
I've used it for some time. It also gave me sales tax
based on my zip code.


In article <924543868.411987@hpvablab.cup.hp.com>,
  nospam@hairball.cup.hp.com (Richard J. Rauenzahn) wrote:
>
>
> Ken Robbins <puyrebel@prodigy.net> writes:
> >What are some other bookstores that are cheap. I know of
> >barnesandnoble.com as well as borders.com, but any others?
>
> Check out www.addall.com -- it will find the cheapest price on a book.
>
> I personally use books.com (I refuse to do business with Amazon because
> of their history of spamming).  Books.com tends to be the cheap, and
> will price match Barnes and Noble and Amazon (you have to click on the
> compare prices link, though).  The drawback is that they take a little
> longer to ship.
>
> According to www.addall.com the cheapest today is Fatbrain/Computer
> Literacy for 3-7 day delivery at a total cost of 21.90 (including
> shipping.)
>
> Rich
> --
> Rich Rauenzahn ----------+xrrauenza@cup.hp.comx+ Hewlett-Packard Company
> Technical Consultant     | I speak for me,     |   19055 Pruneridge Ave.
> Development Alliances Lab|            *not* HP |                MS 46TU2
> IASD / Enterprise Systems Group +--------------+---- Cupertino, CA 95014
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: Tue, 04 May 1999 06:40:02 GMT
From: CNE_Morti <morti_cne@my-dejanews.com>
Subject: Declaration Help Please!!
Message-Id: <7gm4o2$hfj$1@nnrp1.dejanews.com>

Could someone point me in the right direction please.  I've read the docs and
I just can't see the trees for the forest, so please don't flame too badly.. 
I do appreciate your assistance.  I'm trying to declare department as the
contents of a form field named dept.  If the contents of the $FORM dept
matches 'Information' it sends to a specific E-Mail Address.  If the contents
of the $FORM dept matches 'Technical Support' it sends to a different E-Mail
Address.  The form contains a drop-down box for the customer to select.


$department = "$FORM{'dept')";
if ( $department eq 'Information' ) {
   $recipient = 'someone@host.com';
}
elsif ( $department eq 'Technical Support' ) {
   $recipient = 'another@host.com';
}

I know this is simple, but it's late and my brain isn't working.. keep banging
my head against the wall..

Thank You

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: 4 May 1999 07:09:27 GMT
From: sholden@pgrad.cs.usyd.edu.au (Sam Holden)
Subject: Re: Declaration Help Please!!
Message-Id: <slrn7it797.3n3.sholden@pgrad.cs.usyd.edu.au>

On Tue, 04 May 1999 06:40:02 GMT, CNE_Morti <morti_cne@my-dejanews.com> wrote:
>
>$department = "$FORM{'dept')";

That is not valid perl code. Fix it and it will work. Just reading it
should show you the error.

Also those quotes serve no purpose except to be confusing so you might
as well lose them when you fix the code.

-- 
Sam

Some of you know what the Perl slogan on Windows is, and you can say it
with me: "It's a good thing there's more than one way to do it, because
most of them don't work."  --Larry Wall


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

Date: Tue, 04 May 1999 09:17:59 +0300
From: Neeme Vool <neeme@eenet.ee>
Subject: Embperl & filehandles
Message-Id: <372E9117.BF40904@eenet.ee>

I'm sorry, if this isn't right newsgroup. I have Apache 1.3.4, modperl
1.19, Embperl 1.2b1

Why this doesnt work?

[- open(MYFILE,">/somewhere/something"); -]
[$ if defined(MYFILE) $]
    [$ while ($myrow=<MYFILE>) $
        [+$myrow+]
    [$ endwhile $]
[$ endif $]

I get:
[29520]ERR: 24: Line 44: Error in Perl code: syntax error at
/home/neeme/public_html/raamat.html line 44, near "=)

Seems that Embperl interprets < inside [$ $] ?
How to read from filehandles? Writing like print OUTFILE "blaah" works
perfectly.

Neeme Vool
neeme@eenet.ee



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

Date: Tue, 04 May 1999 09:27:13 +0300
From: Neeme Vool <neeme@eenet.ee>
Subject: Re: Embperl & filehandles
Message-Id: <372E9341.AF5070FD@eenet.ee>

Neeme Vool wrote:

> I'm sorry, if this isn't right newsgroup. I have Apache 1.3.4, modperl
> 1.19, Embperl 1.2b1
>
> Why this doesnt work?
>
> [- open(MYFILE,">/somewhere/something"); -]
> [$ if defined(MYFILE) $]
>     [$ while ($myrow=<MYFILE>) $
>         [+$myrow+]
>     [$ endwhile $]
> [$ endif $]
>
> I get:
> [29520]ERR: 24: Line 44: Error in Perl code: syntax error at
> /home/neeme/public_html/raamat.html line 44, near "=)
>
> Seems that Embperl interprets < inside [$ $] ?
> How to read from filehandles? Writing like print OUTFILE "blaah" works
> perfectly.
>
> Neeme Vool
> neeme@eenet.ee

Sorry there was missing ] in line $ while ($myrow=<MYFILE>) $, but not in
the program.

Neeme




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

Date: 4 May 1999 05:15:09 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Error: Can't do inplace edit without backup.
Message-Id: <7glvot$r9a$1@mathserv.mps.ohio-state.edu>

[A complimentary Cc of this posting was sent to Ronald J Kimball
<rjk@linguist.dartmouth.edu>],
who wrote in article <1dr95gn.1gn7gx417x9qqsN@p109.block2.tc4.state.ma.tiac.com>:
>     (F) You're on a system such as MS-DOS that gets confused if you try
>     reading from a deleted (but still opened) file.  You have to say
>     -i.bak, or some such. 

What a remarkable explanation!  Of course a DOSISH program would get
*utterly* confused trying reading from a deleted (but still opened)
file.  There *cannot* be a deleted (but still opened) file on a DOSISH
systems.

Ilya


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

Date: Tue, 04 May 1999 03:12:31 -0400
From: vepxistqaosani <fbart@sprynet.com>
To: Hawkwynd <hawkwynd@adelphia.net>
Subject: Re: Error: Can't do inplace edit without backup.
Message-Id: <372E9DDF.CE0EA243@sprynet.com>

Hawkwynd,

Um -- that would be because you can't do an inplace edit without backup.

Try
perl -p -ibak -e  "s/\xhex/ /g;" cat.txt

Then your one-liner will run. May not do what you expect, though. You
new at this, too?

Fred


Hawkwynd wrote:

> When I run the following command, I'm getting and error message:
>
> perl -p -i -e  "s/\xhex/ /g;" cat.txt
>
> Can't do inplace edit without backup.



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

Date: 04 May 1999 01:53:51 -0400
From: Jonathan Feinberg <jdf@pobox.com>
To: Eric Bohlman <ebohlman@netcom.com>
Subject: Re: finding the right doc WAS Re: using perl to manage passwords?
Message-Id: <m3aevl5qj4.fsf@joshua.panix.com>

Eric Bohlman <ebohlman@netcom.com> writes:

> Jonathan Feinberg <jdf@pobox.com> wrote:
> : You have reached Person Pages Interactive, formerly Man Pages.  Our
> : menu options have changed.  Please listen to the following options,
> : and select the most appropriate one.
> 
> [snip]
> 
> There are at least two companies (one is NetPhonics) that make
> systems that will take an HTML document and actually turn it into a
> dialog like this.

I am afraid.

-- 
Jonathan Feinberg   jdf@pobox.com   Sunny Brooklyn, NY
http://pobox.com/~jdf


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

Date: Mon, 3 May 1999 20:57:28 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Finding x^y?
Message-Id: <olglg7.p43.ln@magna.metronet.com>

Eric Bohlman (ebohlman@netcom.com) wrote:
: Tad McClellan <tadmc@metronet.com> wrote:
: :    <aol> Me too! </aol>

: Isn't it poor style to declare an element with non-empty content when 
: that content is a constant?  Wouldn't a simple <aol/> (or <aol></aol> for 
: pre-WebSGML processors) make more sense?


   I didn't _declare_ any element.

   It is not valid, merely well formed.

   My style is just fine thank you   :-)


--
    Tad McClellan                          SGML Consulting
    tadmc@metronet.com                     Perl programming
    Fort Worth, Texas


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

Date: Tue, 04 May 1999 05:32:43 GMT
From: "Charles R. Thompson" <design@raincloud-studios.com>
Subject: Re: Frequent Posters: new group for WWW applications of Perl?
Message-Id: <%DvX2.795$iu1.721@news.rdc1.tn.home.com>

>   The ability to know if you have an "HTML problem" or
>   a "CGI problem" or a "Perl problem" or a "Unix problem"
>   goes a Very Long Way toward discovering the solution(s).


Agreed. Only after I got my Linux server did the little monsters
start to seperate and go into their proper cages. (if you want a
scary story ask me how I *used* to do it) I'm just now really
starting to go..oh wait... owner this, permission that.. path
here. I know where the error logs are, if not.. I know how to
find them... I know about vi if it's all I got. Understanding
the target OS hangups and tools has made it much easier for me
to focus on the language because the 'newbie speedbumps' are
fewer and farther between. (Last week's post about permissions
not counted)

>   I think you meant    s/site/newsgroup/  there?
>   Precise terminology is important when discussing technical
topics :-)


Yeah... but weren't you tired too after writing that much? How
much are you getting from Random House anyway? ;)

>: People using perl search for 'Perl' in the
>: newsgroups because the language in their minds takes
precedence
>: over the functionality terms like HTTP, FTP, CGI, etc.
>   But they need to "fix" that thinking if they want to become
>   effective at dealing with the unavoidable bugs that will
>   be a part of everyday programming life.


I'm coming to realization that my thinking is at fault here. I'm
trying to put a used band-aid over a bullet hole. I'd be solving
a problem by creating a new one. Maybe I should get into
government if this website biz doesn't work out. No wait.. I
realized I made a mistake. Drat. ;)

>: 2) Going to authoring.cgi is practically useless because you
get
>: thrown in with the javascripters, people who can't get their
>: guestbook or form to work, or other semi-conscious lamos who
>: can't answer your question anyway.
>   So my pointing them there is not as helpful as I thought
>   it was then.


I sorta take umm bout 1/8 of that back now that my brain is
coming full circle. There are a few people who help. I'm just
used to a certain atmosphere... Perl, Unix flavors, Apache.
There is alot of everything going on there in auth.cgi that
makes *me* feel unfocused... but I'm not going to apoligize for
my choice in platforms. :)

>: I'm not sure what is involved with getting a newsgroup
started,
>: I may need a few pointers, but am willing to try.
>   Not to be discouraging, but it will take a considerable
>   amount of time. Perhaps more than you realize.

>   You might search for articles about the creation of the
>   clp.moderated newsgroup to see what went on for that one.


I had just read through a few articles about creating newsgroups
before seeing your post. It seems like an 'alt' could get
squeezed right in, but I'm starting to understand how it would
be worse in the long run

>   You might instead consider starting a mailing list with such
>   a focus, and see if it is popular enough to warrant its
>   own newsgroup...


Things like this make a bit more logistical sense. Then of
course there are the FAQ for CGI and that really quite good book
I have cited. Maybe a signature on my part for misposts could go
a long way. As I've heard mentioned here 'It's all been done
before'.

>   I would not approve (or vote for) anything like that
>   in the comp.lang.perl.* hieararchy.


Ya know... I think it has clicked now.

Tad, thanks for taking the time to answer the post. Things make
a great deal more sense to me now.

CT
---------------------------------
$message = "Just another newbie";
print $message;




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

Date: Mon, 3 May 1999 21:05:01 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Help with multiple text files, search and replace, rename
Message-Id: <t3hlg7.p43.ln@magna.metronet.com>

Hawkwynd (hawkwynd@adelphia.net) wrote:

: Within each text file, which is ascii, are embedded characters that need to
: be removed. The characters are not true ASCII, I think it's the extended
: ASCII codes, which are the page breaks in Word.

: Using Qedit, the two characters that are in need of replacement are chr$(12)
: and chr$(13), of the character set. In qedit, the characters appear as the
: music note and the male symbol, the music note is 13, and the male symbol
: 12.


: I read that using the following would perform the job, however I am at a
: loss for the search and replace part. How do I get perl to read these
: characters, and replace them?


   If you can find out the real values, you can convert them
   to octal or hex, and use them as described in perlre.pod:

-----------
Because patterns are processed as double quoted strings, the following
also work:

 ...

    \033        octal char (think of a PDP-11)
    \x1B        hex char
-----------




: Cat.txt is a list of all the files in the folder. Is there a way to have
: perl just go through the dir, one file at a time, without TELLING perl which
: files (cat.txt)?


   You can do that with grep(), opendir() and readdir(), all
   described in perlfunc.pod.


--
    Tad McClellan                          SGML Consulting
    tadmc@metronet.com                     Perl programming
    Fort Worth, Texas


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

Date: Tue, 04 May 1999 08:11:53 +0300
From: Gleb Ekker <globus@infonet.ee>
Subject: host name -> server name?
Message-Id: <372E8199.CB291AC6@infonet.ee>

Hi,

is it possible to modify using perl script host name from
$ENV{REMOTE_HOST} like 163.28.130.2   to server name like  1.0
ccproxy2.nsysu.edu.tw:3128?
Sometimes I have $ENV{HTTP_VIA} quite empty and receive from server only
$ENV{REMOTE_HOST}.

Thanks,
Gleb.



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

Date: 04 May 1999 10:46:26 +0200
From: Joakim Hove <hove@ido.phys.ntnu.no>
Subject: How to distinguish between cron-startup and command-line startup
Message-Id: <k0nr9ox6x3x.fsf@ido.phys.ntnu.no>

Hello,

I have written a Perl script which is intended to be started from
cron. There is nothing wrong with starting the program from the
command-line, but in that case I would like to interact with the
user. 

Hence what I would like is a way to find out from within the script
wether it has been started from cron or from the command-line. If you
know of such a way I would be very grateful; if on the other hand you
know it is _not_ possible I will be grateful to hear that as
well. Then I will try to think up some other solution.

Joakim Hove

-- 
=== Joakim Hove     www.phys.ntnu.no/~hove/    ======================
# Institutt for fysikk	(735) 93637 / 352 GF  |  Skoyensgate 10D    #
# N - 7034 Trondheim	hove@phys.ntnu.no     |	 N - 7030 Trondheim #
=====================================================================


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

Date: Tue, 04 May 1999 05:52:26 GMT
From: Mitch <portboy@home.com>
Subject: Implementing Zmodem in Perl?
Message-Id: <372E8B8B.FFF13F8@home.com>

Long story short, I have a script running on a box with no drives (i.e.
floppy, zip etc), and a NIC that is always (and has to remain this way)
in promiscuous mode.  The kicker is that I need to be able to transfer
files to this box.  The only solution I could come up with is Zmodem. 
My question is: Can I do this, and if so, can someone explain how, or
point me to info that can help me solve this problem?

Thanks again, (man the perl community rules)

Mitch


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

Date: Tue, 04 May 1999 07:51:16 GMT
From: ran@netgate.net    (Ran)
Subject: Re: Perl in the workplace
Message-Id: <925804276.168.7@news.remarQ.com>

In <7gk54k$q9a$1@nnrp1.dejanews.com>, sstarre@my-dejanews.com writes:

>In meetings, MIS refers to
>Perl jokingly as an avante guarde group of mavericks, unworthy of corporate
>consideration

This from the gang of rocket scientists who've failed to notice that you
have web pages which do things they've declared "impossible"?

>Do others find this kind of resistance to Perl at work?

No.  But then,  I've never worked for a company where top management was
sufficiently brain-dead to allow MIS to dictate the choice of 
engineering tools.

Your employer has fallen into the hands of potatoheads.  It's time to
flee,  lest you come to work one day to find that Rusty the Bailiff 
won't let you retrieve your favorite calculator and your Road Runner 
mousepad from your (former) office until the Bankruptcy Court 
establishes exactly who owns what.

Ran




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

Date: Tue, 4 May 1999 09:43:53 +0100
From: "Alan Kelly" <alan@benchmarx.co.uk>
Subject: Perl with Apache
Message-Id: <925807484.22535.0.nnrp-09.9e98357b@news.demon.co.uk>

Hi,

I have installed Apache for Win32 and enabled SSI as per the instructions on
apache.org. However, when I use the #exec command to execute a perl script I
get an entry in the error log saying:

    "couldn't spawn child process: <script name>"

Can anyone tell me how to configure Perl with Apache?


Many thanks in advance

Al.

PS. Please respond via email (nothing to remove).




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

Date: Mon, 3 May 1999 21:11:01 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: return codes from called scripts
Message-Id: <5fhlg7.p43.ln@magna.metronet.com>

jrobens@my-dejanews.com wrote:

[snip trying system() and pipe open]


: But even though $current_process fails, the output is code=0.
: So does PERL do something funny with the command? 


   Perl FAQ, part 8:

      "Why doesn't open() return an error when a pipe open fails?"


--
    Tad McClellan                          SGML Consulting
    tadmc@metronet.com                     Perl programming
    Fort Worth, Texas


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

Date: Tue, 04 May 1999 01:26:47 -0400
From: brian@pm.org (brian d foy)
Subject: RFC: s/The Perl Institute/Perl Mongers/g;
Message-Id: <brian-ya02408000R0405990126470001@news.panix.com>


as some of you may know, The Perl Institute has recently closed 
its doors, although not before ensuring that its projects and 
accomplishments would continue through Perl Mongers.

Perl Mongers is following an old rule of the sea that when one
takes over the watch on the ship, the sail is not changed for one
bell.  we won't be making any changes for a little while, and then
gradually after that.

Perl Mongers realizes that there may be many concerns about this
transition, and welcomes comments from the Perl community about it.
if you would rather not have your thoughts be made public, you can
send them directly to me, although any comments to me will be seen
by the full board of directors and board of advisors of Perl Mongers.

thanks :)

-- 
brian d foy                    
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Monger Hats! <URL:http://www.pm.org/clothing.shtml>


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

Date: 04 May 1999 02:31:30 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: RFC: s/The Perl Institute/Perl Mongers/g;
Message-Id: <x7zp3l1h31.fsf@home.sysarch.com>

>>>>> "bdf" == brian d foy <brian@pm.org> writes:

  bdf> Perl Mongers is following an old rule of the sea that when one
  bdf> takes over the watch on the ship, the sail is not changed for one
  bdf> bell.  we won't be making any changes for a little while, and then
  bdf> gradually after that.

welcome back brian. we missed you at the tutes in boston. i hope that if
you are captaining the transfer of the tpi ship, we don't get seasick.

  bdf> Perl Mongers realizes that there may be many concerns about this
  bdf> transition, and welcomes comments from the Perl community about it.
  bdf> if you would rather not have your thoughts be made public, you can
  bdf> send them directly to me, although any comments to me will be seen
  bdf> by the full board of directors and board of advisors of Perl Mongers.

my main thoughts are that tpi failed in its advocacy mission but its web
site may succeed in becoming a useful portal for things perlish. i think
that is the direction to go with it. perl.com has it strengths but it is
fairly static which is good as the perl community needs a stable
resource of information.

perl.org can have a different focus and be more dynamic with the mailing
lists, perl news, monger support, calendar, etc. i am sure we can come
up with many other ideas if we have a clear long term goal of perl.org
supporting the perl community by being its voice.

uri

-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
uri@sysarch.com  ---------------------------  Perl, Internet, UNIX Consulting
Have Perl, Will Travel  -----------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


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

Date: Tue, 04 May 1999 08:47:47 GMT
From: smnayeem@my-dejanews.com
Subject: Re: Shopping Cart Script
Message-Id: <7gmc7j$ods$1@nnrp1.dejanews.com>

In article <7glp84$n2h@newsops.execpc.com>,
  "wizeguy" <wizeguy@net-link.net> wrote:
> I am new to Pearl, but I'm trying to setup a Shopping cart script on my
> Website. I am using a shareware program from "Perlshop" (www.arpanet.com) My
> Webpage is parked at www.webjump.com  My problem is that the script that I
> have "perlshop.cgi" does not have the correct extension, My website only
> supports the *.pl  extension.  Both site and script are both free so they
> have limited support. How do I get around this, or am I off base on how it
> should work? Please E-mail all responses.  Thanks Kevin
>
>
Did u try renaming the cgi to pl extension?
and also there is a way to configure ur server to accept .cgi files

smnayeem

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: 4 May 1999 05:08:45 GMT
From: demas@sunspot.tiac.net (Charles Demas)
Subject: Re: Simple Checksum "Confidence Percentage"???
Message-Id: <7glvct$8d9@news-central.tiac.net>

In article <7gchsc$t5m$1@nnrp1.dejanews.com>,
 <jabarone@my-dejanews.com> wrote:
>Hello All,
>
>I was wondering if anyone may have any ideas concerning some research I need
>to do about a simple checksum routine to verify the programming of an 8 Meg
>FLASH memory on a CPU module I'm working on.
>
>I was asked to come up with a "confidence level", in so many percent, that a
>simple 32-bit checksum (i.e., the addition of all the words in a FLASH memory
>(firmware)) would verify the image was correct. We have a CPU module with
>onboard FLASH that we calculate a checksum on to determine if it is programmed
>correctly. The algorithm is simply to add each memory location in a 32-bit
>accumulator, and then verify the result against a "good" checksum value.
>
>We need to come up with a statement like "We are X% confident that the
>checksum will verify the contents of the FLASH image is correct". I have
>researched extensively on the net and in our library for this statement, but
>all I can find is things like "..if the check sum matches, there is a
>REASONABLE chance the data is the same". We are aware that a simple checksum
>can be fooled if errors are present or data words are transposed. I just
>can't seem to find any analysis to say a checksum is X% accurate.
>
>Does anyone out there have any suggestions where I should look or maybe has
>some sort of insight on this?... The person who needs this is adamant that he
>needs a "X% confident" number....

Ask the person for the types of errors that he wants the confidence 
percentage to be for, and what the probability of each type of error
condition will be.

It's 100 percent for any single bit error, but if there are two single bit 
errors, it's dependant on whether they are in the same bit.  If there are
more single bit errors, it's different.  And then if there were a two bit 
error in one word, it would be 100% confident, but if there were some 
combination of two bit and one bit errors, then it's more complicated.

Without knowing what errors you're talking about, you cannot say what 
the confidence of detecting them is.

The use of Cyclic Redundancy Checks has a better application here, but 
it's more complicated.  Look up CRC on the web.  Different CRC polynomials
handle error detection with different confidences of detecting different
types of errors in information transfer.  i.e. different information
channels have different error characteristics and thus different error
detection methods will work better for particular chamnnels.

The use of CRC's is how some forms of encryption and message verification
work, BTW.

Maybe this will get you some relief from a silly question.


Chuck Demas
Needham, Mass.

--
  Eat Healthy    |   _ _   | Nothing would be done at all,
  Stay Fit       |   @ @   | If a man waited to do it so well,
  Die Anyway     |    v    | That no one could find fault with it.
  demas@tiac.net |  \___/  | http://www.tiac.net/users/demas


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

Date: 04 May 1999 02:20:21 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Stumped on Regex routine
Message-Id: <x767692w62.fsf@home.sysarch.com>

>>>>> "LR" == Larry Rosler <lr@hpl.hp.com> writes:

  LR> [Posted and a courtesy copy sent.]
  LR> 0400, Uri Guttman <uri@sysarch.com> says...
  >> >>>>> "DC" == David Cassell <cassell@mail.cor.epa.gov> writes:
  DC> I like using # as an alternate delimiter, but that plays havoc with
  DC> poorly-written comment strippers...
  >> 
  >> i like using | since i rarely use it inside. my next choice then is
  >> some form of {} or [], especially for extended multiline ones with comments.
  >> # bothers my eyes and - is horrible! i can tolerate seeing ! sometimes.

  LR> % or ! -- These aren't metacharacters, as | is, so they are even more 
  LR> unlikely to be used inside.

if i need to use | inside i don't use it as a delimiter. i like | since
it looks most like / and it sticks out visually. and of course that is
only when / is used inside.

  LR> Another poll, Uri?

nah, i'd get flamed by ilya and chris. :-)

i am surprised i don't see more use of paired delimiters. they can be
very distinctive. as i said they are what i almost always use in
extended regexes.

uri

-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
uri@sysarch.com  ---------------------------  Perl, Internet, UNIX Consulting
Have Perl, Will Travel  -----------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


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

Date: Tue, 04 May 1999 04:58:25 GMT
From: smnayeem@my-dejanews.com
Subject: where can i find sample perl-cgi scripts?
Message-Id: <7glupg$csa$1@nnrp1.dejanews.com>

i was looking for some sample scripts that implements the object oriented
version of perl-cgi but most of the examples just use plain html and cgi
inside perl scripts... anyone knows where i can get sample codes of oo
perl-cgi? also where would i find some good online tuturials on perl-cgi (say
to manipulate data from a flat-file database) any help would be appreciated
thanks!

smnayeem
smnayeem@dhaka.agni.com

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


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

Date: Tue, 04 May 1999 00:57:57 -0500
From: silver <silver@silverchat.com>
Subject: Re: Who am I? What am I doing? (looking for input)
Message-Id: <372E8C65.6B9E8642@silverchat.com>

Ronald J Kimball wrote:

> I'm not sure I like the name 'Decorator' for your group of modules, but
> I haven't thought of another name that I like better.  :)

I chose that name because they are examples of the 'Decorator' Design 
Pattern, but I'm willing to change it :)
they might belong under "Devel", but I doubt it, since they are _very_ 
specific to OO programming (they only really wrap objects, not modules).
they might be better named Trace::Log Trace::TkText, but I don't know about
that, either, since, once again, they are so specific to OO.

they might not belong anywhere except on my harddrive :)
 
> Note that there is also a comp.lang.perl.modules group, I think that you
> could post your topic there as well.

discovered it only after I posted, by forcing my newsreader to include 
"all" and searching for "perl" and "object" :) silly me.

-- 
--silver Harloe--
  "I am the soul of honor, kindness, mercy, and goodness.
     Trust me in all things."


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

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

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