[16024] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3436 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Jun 21 00:05:24 2000

Date: Tue, 20 Jun 2000 21:05:09 -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: <961560309-v9-i3436@ruby.oce.orst.edu>
Content-Type: text

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

Today's topics:
    Re: [ String ] How to divide a string into equal string <lauren_smith13@hotmail.com>
    Re: [ String ] How to divide a string into equal string <billy@arnis-bsl.com>
    Re: [ String ] How to divide a string into equal string <stephenk@cc.gatech.edu>
        Accessing config files from CGI scripts. <stephenh@esec.com.au>
    Re: Accessing database on the web <rootbeer@redcat.com>
    Re: clone serial port data stream <rootbeer@redcat.com>
        Converting GUID into hexadecimal format <kennylim@techie.com>
        Date time comparisons? <jrn@borgcollective.org>
    Re: Date time comparisons? <stephenk@cc.gatech.edu>
    Re: embedded ActivePerl 5.6 GUI code demo? <rootbeer@redcat.com>
    Re: File and string manipulation <rootbeer@redcat.com>
    Re: Finding Windows and Program Files directories <jhelman@wsb.com>
    Re: Finding Windows and Program Files directories (Kim Saunders)
    Re: How can I get perl (cgi) html to work on the OS Sea <rootbeer@redcat.com>
    Re: How to find perl/tk useful modules? Example: proces <rootbeer@redcat.com>
    Re: install and use POP3Client (Sean Dowd)
    Re: lists and eliminating dupes <billy@arnis-bsl.com>
    Re: Perl and Web Security <rootbeer@redcat.com>
    Re: Perl Builder 2.0 for LINUX - Beta Available <rootbeer@redcat.com>
    Re: Perl Builder 2.0 for LINUX - Beta Available (Mark W. Schumann)
        Perl Upgration. <r51692@email.sps.mot.com>
    Re: Proper Shopping Cart design.... <rootbeer@redcat.com>
    Re: Proper Shopping Cart design.... <sales@gboworld.com>
        question about cookie? <ltlau@yahoo.com>
    Re: simple array question <flavell@mail.cern.ch>
    Re: simple array question <rootbeer@redcat.com>
    Re: sourcing bash script w/ Perl? <rootbeer@redcat.com>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: Tue, 20 Jun 2000 17:59:10 -0700
From: "Lauren Smith" <lauren_smith13@hotmail.com>
Subject: Re: [ String ] How to divide a string into equal string
Message-Id: <8ip404$3fe$1@brokaw.wa.com>


Tina Mueller <tina@streetmail.com> wrote in message
news:8ip2md$5a8pr$2@fu-berlin.de...
>
> Lauren Smith <lauren_smith13@hotmail.com> wrote:
>
> > Lauren (who also notes that the American alphabet has 26 letters, not 25
:-)
>
> this is a miracle.
> how to divide a string with 24 letters (alphabet without k,l)
> into 25 letters (alphabet without x)?
> i can't find a way...

John 5:3-14

Could the missing 'x' really be a signal?  Compound that with the OP's ID
(Exorcist)...

Worrisome for an atheist like me...  ;-)

Lauren





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

Date: Wed, 21 Jun 2000 00:55:15 GMT
From: Ilja Tabachnik <billy@arnis-bsl.com>
Subject: Re: [ String ] How to divide a string into equal string
Message-Id: <8ip3pd$5vm$1@nnrp1.deja.com>

In article <8iol58$u1m$1@news5.isdnet.net>,
  "TheEx0rcist" <TheEx0rcist@fanclub.org> wrote:
> Basically, here is what I want to do :
>
> --
> my $n = 7;
> my $string = 'abcdefghijmnopqrstuvwxyz';
> my @strings = &divide($string,$n);
> print join("\n",@strings);
> --
> abcdefg    # 7 characters
> hijklmn     # 7 characters
> opqrstu    # 7 characters
> vwyz        # 4 characters
> --
>

IMHO:

#!/usr/bin/perl -w

use strict;

my $n = 7;
my $s = 'abcdefghijklmnopqrstuvwxyz';

my @s = $s =~ /.{1,$n}/g;

print join("\n", @s);

# that's all

See 'perldoc perlop' (section "Regexp Quote-Like Operators")
(or http://www.cpan.org/doc/manual/html/pod/perlop.html)
and 'perldoc perlre'
(or http://www.cpan.org/doc/manual/html/pod/perlre.html).

Hope this helps.
Ilja.



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


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

Date: Tue, 20 Jun 2000 22:48:16 -0400
From: Stephen Kloder <stephenk@cc.gatech.edu>
Subject: Re: [ String ] How to divide a string into equal string
Message-Id: <39502CEC.3657F14@cc.gatech.edu>

TheEx0rcist wrote:

> Basically, here is what I want to do :
>
> --
> my $n = 7;
> my $string = 'abcdefghijmnopqrstuvwxyz';
> my @strings = &divide($string,$n);
> print join("\n",@strings);
> --
> abcdefg    # 7 characters
> hijklmn     # 7 characters
> opqrstu    # 7 characters
> vwyz        # 4 characters
> --
>
> I'd like a _simple_ way to do this.
> Any ideas?
>
> Thanks

Simplest way I can think of is $string =~ s/(.{7})/$1\n/g;
Unless of course, you need the string later, or really want an array,
etc.


--
Stephen Kloder               |   "I say what it occurs to me to say.
stephenk@cc.gatech.edu       |      More I cannot say."
Phone 404-874-6584           |   -- The Man in the Shack
ICQ #65153895                |            be :- think.




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

Date: Wed, 21 Jun 2000 13:24:47 +1000
From: Stephen Henwood <stephenh@esec.com.au>
Subject: Accessing config files from CGI scripts.
Message-Id: <3950357F.F030809C@esec.com.au>

Does anybody have a neat way of accessing config files from a
Perl/CGI script ( running on Linux/Apache)

I need to read the configuration file to access data that I don't want
to hard code into my script. For example, the username for accessing an
oracle database, and I also don't want to hard code the location of the
configuration file in my script. I realise that environment variables
are an option but setting them in a the web server config file would
mean that they apply to all CGI scripts run from that particular web
server.

thanks in advance for any suggestions
Stephen H.



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

Date: Tue, 20 Jun 2000 19:16:07 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Accessing database on the web
Message-Id: <Pine.GSO.4.10.10006201913520.29843-100000@user2.teleport.com>

On Tue, 20 Jun 2000, Ross Taylor wrote:

> I have read several tutorials on using DBI to access an MS Access
> database. I Can do this simply on my local machine by setting up a
> data source which I can refer to in my program.
> 
> How can I use the same program on my website as the data source will
> not exist there??

This sounds like you want to make a CGI program to provide access for your
database. If the database isn't on the same machine, your program will
need to access it over the net, or whatever. If you have questions about
CGI programming, you may want to search for the docs, FAQs, and newsgroups
about CGI programming; reading comp.infosystems.www.authoring.cgi may help
you to get started. Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Tue, 20 Jun 2000 19:18:09 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: clone serial port data stream
Message-Id: <Pine.GSO.4.10.10006201916390.29843-100000@user2.teleport.com>

On Tue, 20 Jun 2000 tony_barratt@my-deja.com wrote:

> So I was wondering if I snarf this connection, can I use a low level
> serial port perl module to grab the data from serial port A and copy
> it the port B, transparently, on a sparc Solaris?

Probably you could make a port driver which squirrels a copy of the data
to somewhere where your Perl module can peek at it. But if you've never
written something so low-level as that, it may be pretty tough. Good luck
with it!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Wed, 21 Jun 2000 02:23:59 GMT
From: "Kenny Lim" <kennylim@techie.com>
Subject: Converting GUID into hexadecimal format
Message-Id: <3HV35.16977$ds.464962@newsread2.prod.itd.earthlink.net>

Hi All,

I am trying to convert a regular GUID format to hexa-decimal format
and are wondering if you have a simpler method than what I currently
have. If this is the appropriate method...

(Q) Do you know how to store the id generated into an array and be printed
out instead of storing into a physical file. So far, when I attempt to store
the id into an array,
I get the following result - ARRAY(0x8b92214)  instead of the hexa-decimal
id, when I open the
ARRAY(0x8b92214) file, I am able to see the hexadecimal id generated in the
file but not print.

Regular guid format :

{DA86E130-470E-11D4-9F14-0080ADC93510}

Hexa-decimal format:

0xDA86E130, 0x470E, 0x11D4, 0x9F, 0x14, 0x00, 0x80, 0xAD, 0xC9, 0x35, 0x10

Please let me know if you need more explicit information.

Any advise would be appreciated. Thanks.

#snippets of my code.

my $ID;
$ID = `ETGuidGen`;
print   "$ID\n";

open (LOAD2, "> hexid2.txt") or die "Could not open hexid.txt: $!";

print LOAD2 "0x" . substr($ID, 1, 8) . ", ";
print LOAD2 "0x" . substr($ID, 10, 4). ", ";
print LOAD2 "0x" . substr($ID, 15, 4). ", ";
print LOAD2 "0x" . substr($ID, 20, 2). ", ";
print LOAD2 "0x" . substr($ID, 22, 2). ", ";
print LOAD2 "0x" . substr($ID, 25, 2). ", ";
print LOAD2 "0x" . substr($ID, 27, 2). ", ";
print LOAD2 "0x" . substr($ID, 29, 2). ", ";
print LOAD2 "0x" . substr($ID, 31, 2). ", ";
print LOAD2 "0x" . substr($ID, 33, 2). ", ";
print LOAD2 "0x" . substr($ID, 35, 2);

Result from the hexid2.txt file.

0xDA86E130, 0x470E, 0x11D4, 0x9F, 0x14, 0x00, 0x80, 0xAD, 0xC9, 0x35, 0x10












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

Date: Tue, 20 Jun 2000 20:27:24 -0500
From: "jrn" <jrn@borgcollective.org>
Subject: Date time comparisons?
Message-Id: <sl06f9b4e7f75@corp.supernews.com>

Hello all:

I am writing a Perl script that needs to compare file access times
to a given date to determine if the file is old enough to be deleted.

What facilities does Perl provide (or a module) that allows one to
compare date times?  I am using the ctime() function to print times.
But I don't see a difftime() type function anywhere...

Anybody got some ideas for me?

Thanks,
jrn@borgcollective.org





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

Date: Tue, 20 Jun 2000 22:09:22 -0400
From: Stephen Kloder <stephenk@cc.gatech.edu>
Subject: Re: Date time comparisons?
Message-Id: <395023D1.85C71E35@cc.gatech.edu>

jrn wrote:

> Hello all:
>
> I am writing a Perl script that needs to compare file access times
> to a given date to determine if the file is old enough to be deleted.
>
> What facilities does Perl provide (or a module) that allows one to
> compare date times?  I am using the ctime() function to print times.
> But I don't see a difftime() type function anywhere...
>
> Anybody got some ideas for me?
>

(-A $filename) returns the time (in days) since the file with name
$filename was last accessed.
-M and -C do similar things.  Details are in perlfunc.


--
Stephen Kloder               |   "I say what it occurs to me to say.
stephenk@cc.gatech.edu       |      More I cannot say."
Phone 404-874-6584           |   -- The Man in the Shack
ICQ #65153895                |            be :- think.




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

Date: Tue, 20 Jun 2000 18:29:56 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: embedded ActivePerl 5.6 GUI code demo?
Message-Id: <Pine.GSO.4.10.10006201828520.29843-100000@user2.teleport.com>

On Mon, 19 Jun 2000, Ryan Tanner wrote:

> I looked at ActiveState's embbeded perl help pages. Their example does
> not work (it is for version 5.0) in my application. Does anybody have
> some example code, such as a dialog box that prompts for a file and
> then scans it using perl?

Does the Perl/Tk widget demo work under Perl 5.6 on Windows? If the
command 'widget' starts that up, you'd be on your way. Hope this helps!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Tue, 20 Jun 2000 19:21:08 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: File and string manipulation
Message-Id: <Pine.GSO.4.10.10006201918490.29843-100000@user2.teleport.com>

On Wed, 21 Jun 2000 anuragmenon@my-deja.com wrote:

> I have to write a VRML generator in perl.
> 
> his is what I want the generator to do.
> 
> 
> 1. Construct a string pertaining to the animation part of the VRML
> file being generated.

Okay...

> 2. Lets call that say String1

Okay...

> 3. now what I want to do is sandwich this string between two other text
> files and make the whole thing one text file and name it something like
> test.wrl

So, you want to write a new text file? See perl's open() operator,
documented in the perlfunc manpage.

> 4. What I am trying to achieve is...
> 
> TextFile1 + String1 + TextFile2 => TextFile3

Okay...

> 5. rename TextFile3 as test.wrl

See perl's rename() operator, also documented in the perlfunc manpage.

> Is this even possible? 

Sure sounds like it. In fact, except for step one, it sounds pretty
trivial. Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Wed, 21 Jun 2000 03:03:09 GMT
From: Jeff Helman <jhelman@wsb.com>
Subject: Re: Finding Windows and Program Files directories
Message-Id: <395030C7.5C3C73C@wsb.com>

tsackett@iname.com wrote:
> 
> In a script for Win32, how can I find out the path to the Windows
> directory and the "Program Files" directory?
 
Windows directory is easy.  Try using the $ENV{'WINDIR'} construct.  As
far as I know, it works on all Win32 variants (tested on 95, 98 and
NT4).

As for Program Files...well, good luck.  There's no consistent key in
%ENV for that.  Maybe someone else will have a better idea, but the best
I can come up with would be to search the registry for something that
you know would be installed there (IE comes to mind) and look for a Reg
value with a directory specified.

Hope this helps,
JH

--
Jeff Helman
Product Manager -- Internet Services
CCH Washington Service Bureau
www.wsb.com


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

Date: Wed, 21 Jun 2000 02:29:21 GMT
From: kims@tip.net.au (Kim Saunders)
Subject: Re: Finding Windows and Program Files directories
Message-Id: <395027df.102212603@news.magna.com.au>

>In a script for Win32, how can I find out the path to the Windows
>directory and the "Program Files" directory?

From my VB days, I can tell you that there is a windows API call that
returns the windows directory. What it is I have no idea any more, but
you should find it if you consult the appropriate documentation. It is
likely that something similar exists to find the progam files dir too.

I would imagine there would be a perl module for using the windows API
on CPAN somewhere.

Good luck,

KimS




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

Date: Tue, 20 Jun 2000 18:51:34 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: How can I get perl (cgi) html to work on the OS Seal ?
Message-Id: <Pine.GSO.4.10.10006201845450.29843-100000@user2.teleport.com>

On Tue, 20 Jun 2000, smile773 wrote:

> Seal is a dos (gui) OS but is still in it's infancy. I would like to
> incorporate perl as a problem solving tool. Because of many
> developmental problems with 32 bit pmode I would like to use html for
> input and output.

Are you sure? HTML is difficult for humans to input, and it's not much
better for output. If you want a GUI, I'd much prefer Perl/Tk.

> The person named Drew Simonis need not reply < rude

I find him less than rude, too. :-)  But I find your implication (that he
would be rude rather than helpful) to be troublesome. Perhaps you will
consider all of us rude, no matter how helpful we are. Maybe no one should
answer you. Please try to see everyone's replies in the best possible
light.

> If you nice ppl have some information that will help me get
> perl working in a dynamic cgi mode with seal, I am
> looking forward to hearing from you.

If your webserver supports CGI programs, you should read its documentation
to see how to do that. But what's this about CGI programming? You were
talking about something else before, weren't you? Still, if you have
questions about CGI programming, you probably want to search for the docs,
FAQs, and newsgroups about CGI programming, including reading
comp.infosystems.www.authoring.cgi.

Good luck, with whatever you're doing!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Tue, 20 Jun 2000 18:31:10 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: How to find perl/tk useful modules? Example: process monitor(progress bar)
Message-Id: <Pine.GSO.4.10.10006201830370.29843-100000@user2.teleport.com>

On Tue, 20 Jun 2000, CWW wrote:

> Subject: How to find perl/tk useful modules? Example: process
    monitor(progress  bar)

    http://search.cpan.org/

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Wed, 21 Jun 2000 03:06:05 GMT
From: pop3client@junkmail.dowds.net (Sean Dowd)
Subject: Re: install and use POP3Client
Message-Id: <pop3client-2006002205440001@192.168.1.10>

Synch up your clocks and try it again.  Looks like you have a file server
with a date that's out of synch with your local machine.  make doesn't
like this.

Also, if you want the tests to all complete successfully, you'll need to
give it a valid pop3 config to work with.  Look at the README
(POPTESTACCOUNT) or at line 32 of t/poptest.pl.



In article <39488EF7.BD192E87@ouhk.edu.hk>, PC Leung <dleung@ouhk.edu.hk> wrote:

> Hello
> 
> I try to follow the readme of POP3Client
> % perl Makefile.PL
> % make
> % make test
> % make install
> 
> (1)When I 'make', there are messages as follows.
> 
> cp POP3Client.pm blib/lib/Mail/POP3Client.pm
> AutoSplitting blib/lib/Mail/POP3Client.pm
> (blib/lib/auto/Mail/POP3Client)
> Manifying blib/man3/Mail::POP3Client.3
> make: *** Warning:  Clock skew detected.  Your build may be incomplete.
> 
> (2)When I 'make test', there are messages as follows.
> 
> Use of uninitialized value at t/poptest.t line 32.
> ok
> All tests successful.
> Files=1,  Tests=26,  0 wallclock secs ( 0.11 cusr +  0.04 csys =  0.15
> CPU)
> make: *** Warning:  Clock skew detected.  Your build may be incomplete.
> 
> (2) When I 'make install', there are messages as follows.
> 
> Installing /usr/local/lib/perl5/5.00503/man/man3/Mail::POP3Client.3
> Writing
>
/home2/pcleung/html/POP3/lib/perl5/site_perl/5.005/i86pc-solaris/auto/Mail/POP3Client/.packlist
> /bin/sh:
> /home2/pcleung/html/POP3/lib/perl5/5.00503/i86pc-solaris/perllocal.pod:
> cannot create
> make: [doc_site_install] Error 1 (ignored)
> Appending installation info to
> /home2/pcleung/html/POP3/lib/perl5/5.00503/i86pc-solaris/perllocal.pod
> make: *** Warning:  Clock skew detected.  Your build may be incomplete.
> 
> (4) If I run a perl program using POP3Client,
> 
> Can't locate Mail/POP3Client.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.00503/i86pc-solaris /usr/local/lib/perl5/5.00503
> /usr/local/lib/perl5/site_perl/5.005/i86pc-solaris
> /usr/local/lib/perl5/site_perl/5.005 .)
> 
> 
> How can solve this ?
> 
> Thanks
> 
> pc


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

Date: Wed, 21 Jun 2000 01:07:41 GMT
From: Ilja Tabachnik <billy@arnis-bsl.com>
Subject: Re: lists and eliminating dupes
Message-Id: <8ip4gk$6di$1@nnrp1.deja.com>

In article <GcR35.62353$5k2.130557@dfw-read.news.verio.net>,
  "la.news.verio.net" <gregh@numbnut.com> 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?
>

One of the best ways is to read the FAQ first:
"How can I extract just the unique elements of an array?".

The answer may be found on your local disk by typing
'perldoc perlfaq4' or at
http://www.cpan.org/doc/manual/html/pod/perlfaq4.html.

Hope this helps.
Ilja.



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


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

Date: Tue, 20 Jun 2000 18:13:12 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Perl and Web Security
Message-Id: <Pine.GSO.4.10.10006201756140.29843-100000@user2.teleport.com>

On Tue, 20 Jun 2000, v wrote:

> Can anyone tell me if htgrep is a secure program?

It's not, because there's no such thing. Oh, well!

We may be able to tell you that a given program has a security problem,
but no one can reliably say that it doesn't. Even if the program itself
were perfect, it may be installed in a way which opens a security hole on
your system.

> 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.

Well, I just took a look at the htgrep FAQ page.

    http://iamwww.unibe.ch/~scg/Src/Doc/htgrep.html

It looks as if this hasn't been updated in some time, which worries me. It
doesn't use modules, which worries me more. And it uses eval on a string
generated from user input, which worries me most of all. Perhaps if I
spent some time studying the program in more detail, my worries might be
relieved, but perhaps I'd discover a serious security hole. 

As it is, I can't recommend this program. If it were rewritten to use
standard modules for processing the CGI params, parsing the HTML tags, and
whatnot, that would help. If it used Perl's taint checks, that would be
even better. I have to give its author credit - clearly the program was
written with some thought to security. Still, unless someone who
understands the security issues goes over it carefully, I can't recommend
that you use it.

If you'd like to hire someone to vet the program, let me know by private
e-mail and I'll send you some recommendations.

Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Tue, 20 Jun 2000 18:33:01 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Perl Builder 2.0 for LINUX - Beta Available
Message-Id: <Pine.GSO.4.10.10006201831540.29843-100000@user2.teleport.com>

On Wed, 21 Jun 2000 sty2999@my-deja.com wrote:

> > I may be mistaken, but I suspect that (at least part of) the point was
> > that it's rarely correct to set permissions to 777 (recursively
> > yet!). In fact, it's likely to be a potentially-serious security 
> > problem.

> This was a mistake...for which we apologize. We do need to provide
> write access to these directories, but not execute. We have uploaded an
> update which fixes this.

Does the update still give write access to the files in the directories?

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: 20 Jun 2000 23:39:05 -0400
From: catfood@apk.net (Mark W. Schumann)
Subject: Re: Perl Builder 2.0 for LINUX - Beta Available
Message-Id: <8ipdcp$frj@junior.apk.net>

In article <8ioetu$man$1@nnrp1.deja.com>,  <sty2999@my-deja.com> wrote:
>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'm not the original griper, but you're missing the point.

If I'm a Perl programmer who uses Linux, and I want to use your Perl
IDE on Linux, I have to install and configure some completely unrelated
bit of software to do it.

We expect installers and perhaps IDEs to require a shell, the usual
set of scripting tools, and maybe even perl itself.  But Linux users
(nor most Unix users) would not assume that having and using Wine is
a normal prerequisite to using a Perl IDE.

Tail wagging dog.  Cart before horse.  That kind of thing.

And Wine itself is so doggone big and complicated that you've just
about eliminated the possibility that someone might download and
try the demo on a lark.



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

Date: Wed, 21 Jun 2000 11:04:32 +0800
From: Kig-Keat Yong <r51692@email.sps.mot.com>
Subject: Perl Upgration.
Message-Id: <395030C0.4B15EF8F@email.sps.mot.com>

This is a multi-part message in MIME format.
--------------1024818478EFA5804AB1968F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I want to upgrate the perl5.002 to the perl 5.002_03 version. Just
wonder currently my working environment is running some update scripts
that pointing to the old perl version. If i directly upgrate the perl,
is that any impact or whether it will affects the scripts running or
not? Because the update scripts are quite critical. So, i dont wnat to
take risk. So, is there anybody can help?

Regards
Raphel

--------------1024818478EFA5804AB1968F
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Raphel Yong Kig Keat
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Raphel Yong Kig Keat
n:              Kig Keat;Raphel Yong
org:            Computer Integrated Manufacturing (CIM)     
email;internet: r51692@email.sps.mot.com
title:          System Engineer, Motorola (Malaysia) Sdn Bhd
note:           Research & Developement     
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


--------------1024818478EFA5804AB1968F--



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

Date: Tue, 20 Jun 2000 18:43:52 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Proper Shopping Cart design....
Message-Id: <Pine.GSO.4.10.10006201835140.29843-100000@user2.teleport.com>

On Tue, 20 Jun 2000 eriks78@my-deja.com wrote:

> i'm looking for opinions from experienced perl developers on the best
> way to architect and plan a shopping cart system.  

Use an existing one rather than making your own. But this isn't really a
Perl programming question, is it? The program could be written in nearly
any capable programming language. There aren't any Perl-specific issues
here, are there? It sounds like a question on programming for the web,
which is generally better discussed in comp.infosystems.www.authoring.cgi.

In any case, many folks like minivend. 

> 1) text file cart on server.
>    cookie on client.

>    i see file locking problems possible here.

Well, file locking problems are easy to solve. Still, cookies aren't
supported everywhere, and they identify browsers, rather than customers.
So they're generally not a good choice.

> i'm leaning towards a configuarble system which allows the user to
> select the method they wish to use.

Well, that's one way to do it. If I were starting from scratch, I'd
probably use authentication, myself, since I don't see the need to give
the users a choice there. But if you have questions on authentication, the
folks in c.i.w.a.c know all about it. Cheers!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Wed, 21 Jun 2000 02:01:34 GMT
From: gboworld.com <sales@gboworld.com>
Subject: Re: Proper Shopping Cart design....
Message-Id: <8ip7ln$8mq$1@nnrp1.deja.com>

We have designed a frame shopping cart,
and a window shopping cart.
if interested, please visit
http//www.gboworld.com/index.html


It is easy to use and design.
One of our customers has a site
http://intercomp.com.au/e-bellingen
You may like to visit it also.

Our shopping cart should be in a different
type which is not listed in your list.

In article <8ioo6m$thj$1@nnrp1.deja.com>,
  eriks78@my-deja.com wrote:
> 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.
>

--
Thanks,

gboworld.com

--
Thanks,

gboworld.com


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


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

Date: Wed, 21 Jun 2000 11:55:29 +0800
From: "JL" <ltlau@yahoo.com>
Subject: question about cookie?
Message-Id: <39503c8e@news02.imsbiz.com>

Hi,

I would like to ask about what is "expires" use for in the cookie?
After the cookie expired, will the cookie removed from the client
automatically?

Or the expires date is just use for the server to know is the cookie expire
or not?  I mean the cookie is still in the client computer, and the server
just read the expire date from the client. Then check does it expired, if
so, then quit the program somethings like this?

Also, the expire date is base on client's computer time or server time?








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

Date: Wed, 21 Jun 2000 03:03:15 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: simple array question
Message-Id: <Pine.GHP.4.21.0006210258390.3218-100000@hpplus03.cern.ch>

On Wed, 21 Jun 2000, Phil Sutcliffe wrote:

> "Tad McClellan" <tadmc@metronet.com> wrote in message
> news:slrn8kuu0u.gc2.tadmc@magna.metronet.com...
> >
> > What did I say that is "blatently" unfriendly?
> 
> Perhaps I'm over sensitive, but I don't take too kindly to being patronised

You're determined to convince the group that you can't use help.

> My original question still remains.

No.  Your original question has received a better answer than you seem
willing to appreciate.

So be it.



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

Date: Tue, 20 Jun 2000 18:18:13 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: simple array question
Message-Id: <Pine.GSO.4.10.10006201815170.29843-100000@user2.teleport.com>

On Wed, 21 Jun 2000, Phil Sutcliffe wrote:

> "Tad McClellan" <tadmc@metronet.com> wrote in message
> news:slrn8kuu0u.gc2.tadmc@magna.metronet.com...
> >
> > What did I say that is "blatently" unfriendly?
> >
> 
> Perhaps I'm over sensitive, but I don't take too kindly to being
> patronised and smart comments like
> 
> >You don't wear a seat belt in the car either, do you?

You probably didn't see the smile on Tad's face when he said that. He was
trying to make you chuckle. Try to give him the benefit of the doubt, and
move on. :-)

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

Date: Tue, 20 Jun 2000 19:34:55 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: sourcing bash script w/ Perl?
Message-Id: <Pine.GSO.4.10.10006201921330.29843-100000@user2.teleport.com>

On 21 Jun 2000, Peter Bismuti wrote:

> I have a bash script that sets environment variables, I'd like
> to call it within a Perl script so that Perl sees these variables.

This comes up every month. :-P  Not your fault; I don't see it directly
addressed in the FAQs. Or the Perl Cookbook, either.

> I tried execiting something like:
> 
> 	system("source bashscript.sh");

Yes; that does the work in a subprocess; it doesn't change the values in
your Perl process.

One way to do it is to have your subprocess tell you what the values
turned out to be, then parse that to set up whatever you want.

    my @shell_vars = `. bashscript.sh; set`;	# or whatever

Parsing the return value shouldn't be too hard, but remember to deal
properly with quoting and line continuation characters. It may be better
not to modify your own %ENV, too; there's no need, and it could
potentially be harmful to your PATH.

An alternative is to parse the file directly in Perl. But what can you do
about lines which use shell built-in functions, or which call external
programs? Pretty soon, you're re-writing the shell in Perl.

Good luck with it!

-- 
Tom Phoenix       Perl Training and Hacking       Esperanto
Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/



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

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


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