[16021] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3433 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Jun 20 18:10:39 2000

Date: Tue, 20 Jun 2000 15:10:26 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <961539026-v9-i3433@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Tue, 20 Jun 2000     Volume: 9 Number: 3433

Today's topics:
        lists and eliminating dupes <gregh@numbnut.com>
    Re: lists and eliminating dupes (Steven Smolinski)
    Re: lists and eliminating dupes <care227@attglobal.net>
    Re: Monitor a process like Unix top But should be Perl/ lvirden@cas.org
    Re: Novell Server and Perl <thoren@southern-division.com>
        Perl and Web Security (v)
    Re: Perl Builder 2.0 for LINUX - Beta Available sty2999@my-deja.com
    Re: Perl Timer help felrodian@my-deja.com
        perl2C compiler <mbranch@viawest.net>
        perlhost.h won't compile <ryan.w.tanner@tek.com>
        Proper Shopping Cart design.... eriks78@my-deja.com
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Tue, 20 Jun 2000 16:18:30 -0500
From: "la.news.verio.net" <gregh@numbnut.com>
Subject: lists and eliminating dupes
Message-Id: <GcR35.62353$5k2.130557@dfw-read.news.verio.net>

Hello,

This sub takes a list and spits out what's in it.  Currently in my flat text
file database, there are duplicates.  I'd like to eliminate these and only
display each entry once, but I'm having some trouble doing this.  Any ideas
on what th best way to do this is?


sub buildReview {
    my $qid = shift;
    my $item;
    my ( $id, $movie_title, $release_year, $mpaa_rating, $reviewer, $review,
$rating );

    foreach $item ( @movies ) {
        if ( $item =~ /\|$qid\|/ ) {
            ( $id, $movie_title, $release_year, $mpaa_rating, $reviewer,
$review, $rating ) = split( /\|/, $item );
            last;
        } else {
            next;
        }
    }
    print "$id, $movie_title, $release_year, $mpaa_rating, $reviewer,
$review, $rating\n";
}

Thanks,

Greg




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

Date: Tue, 20 Jun 2000 21:32:56 GMT
From: sjs@yorku.ca (Steven Smolinski)
Subject: Re: lists and eliminating dupes
Message-Id: <slrn8kvonp.o05.sjs@john.sympatico.ca>

la.news.verio.net <gregh@numbnut.com> wrote:
>Hello,

Hi.

>This sub takes a list and spits out what's in it.                            

Actually the sub you provided takes a scalar (If by 'takes' you mean
gets as an argument). It accesses a list that's (apparently) a global. 
You might consider changing that design.  But I digress.

>                                                   Currently in my flat text
>file database, there are duplicates.  I'd like to eliminate these and only
>display each entry once, but I'm having some trouble doing this. 

There's an interesting discussion distributed in the perl FAQ, which 
you can find with:

perldoc -q "unique elements"

Cheers,
Steve


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

Date: Tue, 20 Jun 2000 17:36:44 -0400
From: Drew Simonis <care227@attglobal.net>
Subject: Re: lists and eliminating dupes
Message-Id: <394FE3EC.62E596FB@attglobal.net>

"la.news.verio.net" wrote:
> 
> Hello,
> 
> This sub takes a list and spits out what's in it.  Currently in my flat text
> file database, there are duplicates.  I'd like to eliminate these and only
> display each entry once, but I'm having some trouble doing this.  Any ideas
> on what th best way to do this is?
> 

Check perlfaq4:

http://www.perl.com/pub/doc/manual/html/pod/perlfaq4.html

under "How can I extract just the unique elements of an array?"


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

Date: 20 Jun 2000 18:16:39 GMT
From: lvirden@cas.org
Subject: Re: Monitor a process like Unix top But should be Perl/tk How?
Message-Id: <8ioce7$gtv$1@srv38.cas.org>


According to Charles W.W. <kingwang98@yahoo.com>:
: 

Once upon a time ....

there used to be a program called collect.  I found it at one time at
<URL: http://www.purl.org/NET/Tcl-FAQ/part6.html>

What: collect
Where: <URL: ftp://ftp.digital.com/pub/DEC/collect/>
Description: Simple data collector for operating system and process
        statistics.  A simple perl/Tk GUI is available at the same site.
Updated:
Contact: Unknown 
 

Or you could take a look at a site such as:

<URL: http://www.purl.org/NET/Tcl-FAQ/part6.html>

What: Scroggins perl/Tk programs
Where: <URL: http://www.flash.net/%7Emonty4/>
        <URL: http://www.cpan.org/authors/id/M/MS/MSCROGGIN/>
Description: Author has programs which provide a GUI to Sybase, allows
        multiple people to update a logfile at the same time, to select
        and kill processes, provide quick info database,
Updated: 05/1999
Contact: <URL: mailto:Monty.Scroggins@wcom.com> (Monty Scroggins)

Another useful site you might check is:

http://www.google.com/search?q=cache:www.fdd.co.uk/jos/perl5/ch17.htm+perl+tk+monitor+process+top&hl=en

which is a basic tutorial relating to perl/tk.

or look in the perl/tk faq at
http://www.cs.ruu.nl/wais/html/na-dir/perl-faq/ptk-faq/part4.html
for the tktail application, which shows you how to write such
a thing as you are wanting.


-- 
<URL: https://secure.paypal.com/refer/pal=lvirden%40yahoo.com>
<URL: mailto:lvirden@cas.org> <URL: http://www.purl.org/NET/lvirden/>
Unless explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.


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

Date: Tue, 20 Jun 2000 21:01:51 +0200
From: "Thoren Johne" <thoren@southern-division.com>
Subject: Re: Novell Server and Perl
Message-Id: <8iof4r$c9$11$1@news.t-online.com>

Tom Phoenix <rootbeer@redcat.com> wrote in message
news:Pine.GSO.4.10.10006201048280.29843-100000@user2.teleport.com...
> On Tue, 20 Jun 2000, Thoren Johne wrote:

> > perl -v on this system gives me now:
> > 5.003_07 (Netware build #334)
> > is this a very bad dream or just the real truth?

> Could be both. Have you tried (to ask an admin) to install a newer
> version?

he told me that it's the latest version - for novell

> > of course i'd like to use some modules like CGI.pm but i don't think
> > they will run with 5.003_07

> A lot of useful software won't work with such an old version; when that
> version was current, the Macarena was still considered cool, too. An
> upgrade is in order. Cheers!

i think macarena was nothing but a broken string on a spanish guitar of a
not yet lucky songwriter in october 1996. - perhaps i'm wrong, i've never
been good in dating (and dancing) those summer hits ;)

gruß
thoren
8#X

--
----------------------------------------------------------------------
Thoren Johne - 8#X - thoren@southern-division.com
Southern Division Classic Bikes - www.southern-division.com




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

Date: Tue, 20 Jun 2000 21:37:13 GMT
From: vig@pop.jaring.my (v)
Subject: Perl and Web Security
Message-Id: <394fe30c.21031646@news.jaring.my>

Hello everyone,

I'm trying to install a search engine on my web site.
Can anyone tell me if htgrep is a secure program?
My knowledge of perl is cursory at best. As such, I'd feel much better
if someone who is knowledgeable on this matters say it is ok.

thanx in advance

v


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

Date: Tue, 20 Jun 2000 18:59:19 GMT
From: sty2999@my-deja.com
Subject: Re: Perl Builder 2.0 for LINUX - Beta Available
Message-Id: <8ioetu$man$1@nnrp1.deja.com>

Hi,

> What are we saying here - that it *requires* 'wine' to install or run
- well
> then it isnt a linux application is it ?  I think they could do with
a good
> slashdotting over this ;-}
>

Thanks for your feedback.

Yes, it requires Wine to run as it is compiled under Windows. However,
it is specificially designed for Linux -- certainly not just enabling
the Windows version using Wine.

Perhaps you could help me understand your objection to the use of Wine.

My understanding is that it runs maybe 10% slower than a native Linux
application. Which does not seem a show stopper to me.

Obviously it has a Windows look and feel...but then so do lots of
native Linux apps, including for example, the Gnome desktop.

I will freely admit that we have very little experience with
Linux...have only been running it for a few months. However, we have
had lots of requests for our product on that platform and this is the
really the only practical way to do it.

Yes, the installation process and so forth is different than from other
Linux apps, but as far as I can see, once the program is running it
looks just like it would look if it were a native application.

Corel has used Wine for its latest version of WordPerfect for Linux and
has invested a lot in Wine...so my guess is that within the next year
or so you will see more vendors using this strategy.

It sounds as though that would make you unhappy...but if more
applications are available on Linux, that makes it a more viable
alternative to Windows...no?

Thanks,

Marty Ford
Solutionsoft



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


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

Date: Tue, 20 Jun 2000 19:34:48 GMT
From: felrodian@my-deja.com
Subject: Re: Perl Timer help
Message-Id: <8ioh0m$o19$1@nnrp1.deja.com>



> I don't understand what it is supposed to do but that will definitely
> get into an infinite loop.
Yes! An infinite loop.. that's what I want. I want an infinite loop that
will run a subroutine every x seconds or x minutes. Any suggestions
greatly appreciated.


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


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

Date: Tue, 20 Jun 2000 15:58:26 -0600
From: Michael Branch <mbranch@viawest.net>
Subject: perl2C compiler
Message-Id: <394FE902.2190B27C@viawest.net>


--------------9DC291A80FEE8807D424AFB5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

hi,

  is there a perl to C program to be found?

thanks,

Mike

--
150157167040155141156171040155157162145040164162
151154151157156040144157154154141162163040167151

   Michael A. Branch
   "I turn big problems into little problems."

   ViaWest Internet Services
   Denver, CO

154154040171157165040154145164040116101123101040
142165162156040125123040146157162077012000000000



--------------9DC291A80FEE8807D424AFB5
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

<pre>hi,</pre>

<pre>&nbsp; is there a perl to C program to be found?</pre>

<pre></pre>

<pre>thanks,</pre>

<pre>Mike</pre>

<pre></pre>

<pre>--&nbsp;
150157167040155141156171040155157162145040164162
151154151157156040144157154154141162163040167151

&nbsp;&nbsp; Michael A. Branch
&nbsp;&nbsp; "I turn big problems into little problems."

&nbsp;&nbsp; ViaWest Internet Services
&nbsp;&nbsp; Denver, CO

154154040171157165040154145164040116101123101040
142165162156040125123040146157162077012000000000</pre>
&nbsp;</html>

--------------9DC291A80FEE8807D424AFB5--



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

Date: Tue, 20 Jun 2000 21:59:28 GMT
From: "Ryan Tanner" <ryan.w.tanner@tek.com>
Subject: perlhost.h won't compile
Message-Id: <4PR35.3743$Kw6.163729@dfiatx1-snr1.gtei.net>

I'm using ActiveState's perl, and I want to embed it, but the perlhost.h
file does not compile.

Here are the includes I'm using:

#include <extern.h>
#include <perl.h>
#define NO_XSLOCKS
// Bring in the macros that redefine perl_* functions to work with
// PERL_OBJECT.
//
#include <XSUB.h>
/* for Win32 */
#include "win32iop.h"
#include <fcntl.h>
#include <iperlsys.h>
#include <perlhost.h>


And here is the compiler output

--------------------Configuration: MdiTest - Win32 Debug--------------------
Compiling...
MainFrm.cpp
c:\perl\lib\core\vmem.h(170) : warning C4005: 'ASSERT' : macro redefinition
        c:\program files\microsoft visual studio\vc98\mfc\include\afx.h(226)
: see previous definition of 'ASSERT'
c:\perl\lib\core\perlhost.h(168) : error C2079: 'm_hostperlMem' uses
undefined struct 'IPerlMem'
c:\perl\lib\core\perlhost.h(169) : error C2079: 'm_hostperlMemShared' uses
undefined struct 'IPerlMem'
c:\perl\lib\core\perlhost.h(170) : error C2079: 'm_hostperlMemParse' uses
undefined struct 'IPerlMem'
c:\perl\lib\core\perlhost.h(171) : error C2079: 'm_hostperlEnv' uses
undefined struct 'IPerlEnv'
c:\perl\lib\core\perlhost.h(172) : error C2079: 'm_hostperlStdIO' uses
undefined struct 'IPerlStdIO'
c:\perl\lib\core\perlhost.h(173) : error C2079: 'm_hostperlLIO' uses
undefined struct 'IPerlLIO'
c:\perl\lib\core\perlhost.h(174) : error C2079: 'm_hostperlDir' uses
undefined struct 'IPerlDir'
c:\perl\lib\core\perlhost.h(175) : error C2079: 'm_hostperlSock' uses
undefined struct 'IPerlSock'
c:\perl\lib\core\perlhost.h(176) : error C2079: 'm_hostperlProc' uses
undefined struct 'IPerlProc'
c:\perl\lib\core\perlhost.h(294) : error C2079: 'perlMem' uses undefined
struct 'IPerlMem'
c:\perl\lib\core\perlhost.h(296) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlMem *,unsigned int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(297) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlMem *,void *,unsigned int)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(298) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlMem *,void *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(299) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlMem *,unsigned int,unsigned
int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(300) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlMem *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(301) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlMem *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(302) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlMem *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(348) : error C2079: 'perlMemShared' uses
undefined struct 'IPerlMem'
c:\perl\lib\core\perlhost.h(350) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlMem *,unsigned int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(351) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlMem *,void *,unsigned int)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(352) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlMem *,void *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(353) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlMem *,unsigned int,unsigned
int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(354) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlMem *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(355) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlMem *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(356) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlMem *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(402) : error C2079: 'perlMemParse' uses
undefined struct 'IPerlMem'
c:\perl\lib\core\perlhost.h(404) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlMem *,unsigned int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(405) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlMem *,void *,unsigned int)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(406) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlMem *,void *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(407) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlMem *,unsigned int,unsigned
int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(408) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlMem *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(409) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlMem *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(410) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlMem *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(502) : error C2079: 'perlEnv' uses undefined
struct 'IPerlEnv'
c:\perl\lib\core\perlhost.h(504) : error C2440: 'initializing' : cannot
convert from 'char *(__cdecl *)(struct IPerlEnv *,const char *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(505) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlEnv *,const char *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(506) : error C2440: 'initializing' : cannot
convert from 'char *(__cdecl *)(struct IPerlEnv *,const char *,unsigned long
*)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(507) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlEnv *,struct utsname *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(508) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlEnv *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(509) : error C2440: 'initializing' : cannot
convert from 'void *(__cdecl *)(struct IPerlEnv *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(510) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlEnv *,void *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(511) : error C2440: 'initializing' : cannot
convert from 'char *(__cdecl *)(struct IPerlEnv *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(512) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlEnv *,char *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(513) : error C2440: 'initializing' : cannot
convert from 'unsigned long (__cdecl *)(struct IPerlEnv *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(514) : error C2440: 'initializing' : cannot
convert from 'char *(__cdecl *)(struct IPerlEnv *,const char *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(515) : error C2440: 'initializing' : cannot
convert from 'char *(__cdecl *)(struct IPerlEnv *,const char *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(516) : error C2440: 'initializing' : cannot
convert from 'char *(__cdecl *)(struct IPerlEnv *,const char *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(517) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlEnv *,child_IO_table *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(843) : error C2079: 'perlStdIO' uses undefined
struct 'IPerlStdIO'
c:\perl\lib\core\perlhost.h(845) : error C2440: 'initializing' : cannot
convert from 'struct _iobuf *(__cdecl *)(struct IPerlStdIO *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(846) : error C2440: 'initializing' : cannot
convert from 'struct _iobuf *(__cdecl *)(struct IPerlStdIO *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(847) : error C2440: 'initializing' : cannot
convert from 'struct _iobuf *(__cdecl *)(struct IPerlStdIO *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(848) : error C2440: 'initializing' : cannot
convert from 'struct _iobuf *(__cdecl *)(struct IPerlStdIO *,const char
*,const char *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(849) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(850) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(851) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(852) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(853) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(854) : error C2440: 'initializing' : cannot
convert from 'char *(__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(855) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(856) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(857) : error C2440: 'initializing' : cannot
convert from 'char *(__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(858) : error C2440: 'initializing' : cannot
convert from 'char *(__cdecl *)(struct IPerlStdIO *,struct _iobuf *,char
*,int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(859) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,int)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(860) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,const char
*)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(861) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(862) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,int)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(863) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(864) : error C2440: 'initializing' : cannot
convert from 'struct _iobuf *(__cdecl *)(struct IPerlStdIO *,int,const char
*)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(865) : error C2440: 'initializing' : cannot
convert from 'struct _iobuf *(__cdecl *)(struct IPerlStdIO *,const char
*,const char *,struct _iobuf *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(866) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,void
*,unsigned int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(867) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,const void
*,unsigned int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(868) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,char *)'
to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(869) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,char
*,int,unsigned int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(870) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,int)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(871) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,char
*,int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(872) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(873) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,const char
*,...)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(874) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,const char
*,char *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(875) : error C2440: 'initializing' : cannot
convert from 'long (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(876) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,long,int)'
to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(877) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlStdIO *,struct _iobuf *)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(878) : error C2440: 'initializing' : cannot
convert from 'struct _iobuf *(__cdecl *)(struct IPerlStdIO *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(879) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,__int64
*)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(880) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlStdIO *,struct _iobuf *,const
__int64 *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(881) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlStdIO *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(882) : error C2440: 'initializing' : cannot
convert from 'void (__cdecl *)(struct IPerlStdIO *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(883) : error C2440: 'initializing' : cannot
convert from 'struct _iobuf *(__cdecl *)(struct IPerlStdIO *,struct _iobuf
*)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1047) : error C2079: 'perlLIO' uses undefined
struct 'IPerlLIO'
c:\perl\lib\core\perlhost.h(1049) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,const char *,int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1050) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,const char *,int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1051) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,const char *,long,long)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1052) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,int,long)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1053) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1054) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1055) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,int,int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1056) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,int,int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1057) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,int,struct stat *)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1058) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,int,unsigned int,char *)' to
'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1059) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,int)' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\perl\lib\core\perlhost.h(1060) : error C2440: 'initializing' : cannot
convert from 'int (__cdecl *)(struct IPerlLIO *,const char *,const char *)'
to 'int'
        error count exceeds 100; stopping compilation
Error executing cl.exe.

MainFrm.obj - 102 error(s), 1 warning(s)





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

Date: Tue, 20 Jun 2000 21:37:28 GMT
From: eriks78@my-deja.com
Subject: Proper Shopping Cart design....
Message-Id: <8ioo6m$thj$1@nnrp1.deja.com>

i'm looking for opinions from experienced perl developers on the best
way to architect and plan a shopping cart system.  your opinions are
greatly appriciated.  i only ask that if you have experience in
deigning a cart or working with multiple carts that you say so if you
reply.

i've looked at nearly 18, plus or minus a few, different shopping cart
systems over the past week.  from free versions to trial versions of
some of the bigger ones.  i've consistantly seen patterns in the
architecture and implimentation of them, and was looking or  general
opinion from the community on which architecture yields the best
results.  this does not imply i'm looking for the "easy" solution, it
means i'm looking for the best solution.

these are the ideas i have seen:

1) text file cart on server.
   cookie on client.
   random number generator assigns unique id to cookie and to cart.
   you modify your cart some how, it pulls the id out of the client
     cookie and changes the corresponding text file.

   i see file locking problems possible here.

2) text file cart on server.
   same as above, but puts the cart number in as a hidden variable
      into an html form and passes it around page to page.

3) client cookie
   self explanatory.  just push everything the user wants into their
      cookie on their machine.

   if cookies disabled, you can't shop here!

4) db.
   assign a unique id to the client (html or cookie, doesn't matter)
   every item ordered gets added into the db in a temp table of
      incomplete orders.
   when the user finishes, pull their order from temp table and move
      it to another table w/ complete orders.

5) minivend style!
   deamons and perl modules.

i like the 2 & 4, but need a file locking mechanism to make 2
effective.  as a result, i'm leaning towards a configuarble system
which allows the user to select the method they wish to use.  it
eliminates the client cookie and provides maximum usability.  this is
what i'm leaning towards right now.

opinions? comments?

thanks to all who respond!


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


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

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


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