[17803] in Perl-Users-Digest
Perl-Users Digest, Issue: 5223 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jan 4 14:16:09 2001
Date: Thu, 4 Jan 2001 11:15:45 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <978635745-v9-i5223@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Thu, 4 Jan 2001 Volume: 9 Number: 5223
Today's topics:
Alternatives to ActiveState PerlEx? (Ted Wart)
Re: Alternatives to ActiveState PerlEx? <Alexander.Farber@t-online.de>
Re: Alternatives to ActiveState PerlEx? (Maggert)
Re: Alternatives to ActiveState PerlEx? (Ted Wart)
Re: Alternatives to ActiveState PerlEx? (mountainarts)
Re: Alternatives to ActiveState PerlEx? (Maggert)
Re: Alternatives to ActiveState PerlEx? (mountainarts)
Re: Alternatives to ActiveState PerlEx? <kperrier@blkbox.com>
Re: Alternatives to ActiveState PerlEx? (Ted Wart)
Re: Alternatives to ActiveState PerlEx? (Martien Verbruggen)
Re: Alternatives to ActiveState PerlEx? (Ted Wart)
Re: Any good Perl books? (dolphin)
Re: Any good Perl books? (Tad McClellan)
Re: Any good Perl books? <feldspar@ix.netcom.com>
Re: Any good Perl books? (Abigail)
Re: Any good Perl books? <ducateg@info.bt.co.uk>
Re: Any good Perl books? (Abigail)
Apache and mod_perl <jlbeaudet@pathe.fr.kodak.com>
Re: Apache and mod_perl (Rafael Garcia-Suarez)
Application Service Provider-http://zjj90:8080/servlet/ <mul@hotmail.com>
Applying registry updates in Winnt <prendj@europem01.nt.com>
Re: Applying registry updates in Winnt (Jeff Helman)
Re: Applying registry updates in Winnt <prendj@europem01.nt.com>
Re: Array of arrays, stack & print layout <c_clarkson@hotmail.com>
Re: automatic FAQ answerer idea (Chris Fedde)
Automating CPAN installation francesc_guasch@my-deja.com
Re: backslah as a normal char <c_clarkson@hotmail.com>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 30 Dec 2000 22:43:46 GMT
From: t_wart@hotmail.com (Ted Wart)
Subject: Alternatives to ActiveState PerlEx?
Message-Id: <3a4e607c.177097776@netnews.worldnet.att.net>
Hi,
Anyone care to recommend alternatives to the ActiveState Perl compiler?
I've had problems installing their compiler. I need something that will
work with CGI.pm, DBD, DBI, Apache(or IIS).etc. Any advice is welcome.
Thanks.
---------------------------------------------------------
Ted Wart t_wart@hotmail.com
Government Tech. Support/AUAAC - Austin-818 extention 121
---------------------------------------------------------
------------------------------
Date: Sun, 31 Dec 2000 01:52:46 +0100
From: Alexander Farber <Alexander.Farber@t-online.de>
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <3A4E835E.AACE794A@t-online.de>
Ted Wart wrote:
>
>
> Hi,
>
> Anyone care to recommend alternatives to the ActiveState Perl compiler?
Yes, mod_perl from ftp://theoryx5.uwinnipeg.ca/pub/other/
> I've had problems installing their compiler. I need something that will
> work with CGI.pm, DBD, DBI, Apache(or IIS).etc. Any advice is welcome.
--
http://home.t-online.de/home/Alexander.Farber/
------------------------------
Date: Sun, 31 Dec 2000 16:42:23 GMT
From: mag@ionet.net (Maggert)
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <3a4f619e.71539728@news.ionet.net>
On Sat, 30 Dec 2000 22:43:46 GMT, t_wart@hotmail.com (Ted Wart) wrote:
> Anyone care to recommend alternatives to the ActiveState Perl compiler?
> I've had problems installing their compiler. I need something that will
> work with CGI.pm, DBD, DBI, Apache(or IIS).etc. Any advice is welcome.
> Thanks.
>
CGI::SpeedyCGI is an excellent program, but it will not
install on Windoze yet.
------------------------------
Date: Sun, 31 Dec 2000 20:45:27 GMT
From: t_wart@hotmail.com (Ted Wart)
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <3a4f95ff.73384588@netnews.worldnet.att.net>
On Sun, 31 Dec 2000 01:52:46 +0100, Alexander Farber
<Alexander.Farber@t-online.de> wrote:
>Ted Wart wrote:
>>
>> Anyone care to recommend alternatives to the ActiveState Perl compiler?
>
>Yes, mod_perl from ftp://theoryx5.uwinnipeg.ca/pub/other/
Let me restate this. I've an application that I've developed and am now
at a point where I will license to clients. This web app needs CGI, ODBC,
etc but in particular I'm worried about source code protection. I've over
a year in development and I do not want to give out the source code.
The code must run with IIS and Apache. It works fine now without
compiling but I'd like to make into a binary. PerlExe was not up to
snuff and PerlEx will not install. Thanks for any advice. TW
---------------------------------------------------------
Ted Wart t_wart@hotmail.com
Government Tech. Support/AUAAC - Austin-818 extention 121
---------------------------------------------------------
------------------------------
Date: Sun, 31 Dec 2000 21:24:21 GMT
From: mountainarts@altavista.com (mountainarts)
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <3a4fa3a0.23665093@news.dreamsoft.com>
I have had good luck with perl2exe from indigostar.com
t_wart@hotmail.com (Ted Wart) wrote:
>On Sun, 31 Dec 2000 01:52:46 +0100, Alexander Farber
><Alexander.Farber@t-online.de> wrote:
>
>>Ted Wart wrote:
>>>
>>> Anyone care to recommend alternatives to the ActiveState Perl compiler?
>>
>>Yes, mod_perl from ftp://theoryx5.uwinnipeg.ca/pub/other/
>
> Let me restate this. I've an application that I've developed and am now
>at a point where I will license to clients. This web app needs CGI, ODBC,
>etc but in particular I'm worried about source code protection. I've over
>a year in development and I do not want to give out the source code.
>The code must run with IIS and Apache. It works fine now without
>compiling but I'd like to make into a binary. PerlExe was not up to
>snuff and PerlEx will not install. Thanks for any advice. TW
>
>
>
>---------------------------------------------------------
>Ted Wart t_wart@hotmail.com
>Government Tech. Support/AUAAC - Austin-818 extention 121
>---------------------------------------------------------
------------------------------
Date: Mon, 01 Jan 2001 17:35:20 GMT
From: mag@ionet.net (Maggert)
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <3a50bf34.161033874@news.ionet.net>
On Sun, 31 Dec 2000 16:42:23 GMT, mag@ionet.net (Maggert) wrote:
>On Sat, 30 Dec 2000 22:43:46 GMT, t_wart@hotmail.com (Ted Wart) wrote:
>
>
> CGI::SpeedyCGI is an excellent program, but it will not
>install on Windoze yet.
>
>
Oops sorry, thought Perlex was a fast interpreter. I didn't
realize that it actually compiled perl programs. Am I wrong? I've
never used it.
What you want is probably Perl2exe although it does have some
problems, not the least of which is binaries can't run persistently.
------------------------------
Date: Mon, 01 Jan 2001 18:04:04 GMT
From: mountainarts@altavista.com (mountainarts)
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <3a50c630.4318516@news.dreamsoft.com>
What is the problem with perl2exe? I plan on using this for my projects?
mag@ionet.net (Maggert) wrote:
>On Sun, 31 Dec 2000 16:42:23 GMT, mag@ionet.net (Maggert) wrote:
>
>>On Sat, 30 Dec 2000 22:43:46 GMT, t_wart@hotmail.com (Ted Wart) wrote:
>>
>>
>> CGI::SpeedyCGI is an excellent program, but it will not
>>install on Windoze yet.
>>
>>
>
> Oops sorry, thought Perlex was a fast interpreter. I didn't
>realize that it actually compiled perl programs. Am I wrong? I've
>never used it.
> What you want is probably Perl2exe although it does have some
>problems, not the least of which is binaries can't run persistently.
>
------------------------------
Date: 02 Jan 2001 08:50:10 -0600
From: Kent Perrier <kperrier@blkbox.com>
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <DD5915FC1830C329.1B30BCA9862BCC3F.AD741354D7ED81E0@lp.airnews.net>
t_wart@hotmail.com (Ted Wart) writes:
> On Sun, 31 Dec 2000 01:52:46 +0100, Alexander Farber
> <Alexander.Farber@t-online.de> wrote:
>
> >Ted Wart wrote:
> >>
> >> Anyone care to recommend alternatives to the ActiveState Perl compiler?
> >
> >Yes, mod_perl from ftp://theoryx5.uwinnipeg.ca/pub/other/
>
> Let me restate this. I've an application that I've developed and am now
> at a point where I will license to clients. This web app needs CGI, ODBC,
> etc but in particular I'm worried about source code protection. I've over
> a year in development and I do not want to give out the source code.
> The code must run with IIS and Apache. It works fine now without
> compiling but I'd like to make into a binary. PerlExe was not up to
> snuff and PerlEx will not install. Thanks for any advice. TW
Perhaps you should look at better licensing terms. Compiling your script
into an 'exe' will not prevent anyone who whats to see what your program
does from finding out.
Kent
--
Microsoft. The best reason in the world to drink beer.
------------------------------
Date: Wed, 03 Jan 2001 00:45:06 GMT
From: t_wart@hotmail.com (Ted Wart)
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <3a527240.24348555@netnews.worldnet.att.net>
On Mon, 01 Jan 2001 18:04:04 GMT, mountainarts@altavista.com (mountainarts)
wrote:
>What is the problem with perl2exe? I plan on using this for my projects?
>
I was able to recover all my source code from the binary. Since the
only protection I have for source is compilation I want to be cautious.
tw
---------------------------------------------------------
Ted Wart t_wart@hotmail.com
Government Tech. Support/AUAAC - Austin-818 extention 121
---------------------------------------------------------
------------------------------
Date: Wed, 3 Jan 2001 12:22:54 +1100
From: mgjv@tradingpost.com.au (Martien Verbruggen)
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <slrn954vne.edk.mgjv@martien.heliotrope.home>
On Wed, 03 Jan 2001 00:45:06 GMT,
Ted Wart <t_wart@hotmail.com> wrote:
> On Mon, 01 Jan 2001 18:04:04 GMT, mountainarts@altavista.com (mountainarts)
> wrote:
>
>>What is the problem with perl2exe? I plan on using this for my projects?
>>
> I was able to recover all my source code from the binary. Since the
> only protection I have for source is compilation I want to be cautious.
Have you seen what the perl FAQ has to say about this?
$ man perlfaq2
[snip]
How can I hide the source for my Perl program?
[snip]
How can I compile my Perl program into byte code or C?
[snip]
Martien
--
Martien Verbruggen |
Interactive Media Division | The gene pool could use a little
Commercial Dynamics Pty. Ltd. | chlorine.
NSW, Australia |
------------------------------
Date: Wed, 03 Jan 2001 15:21:59 GMT
From: t_wart@hotmail.com (Ted Wart)
Subject: Re: Alternatives to ActiveState PerlEx?
Message-Id: <3a5337e1.74948985@netnews.worldnet.att.net>
On Wed, 3 Jan 2001 12:22:54 +1100, mgjv@tradingpost.com.au (Martien Verbruggen)
wrote:
>
>Have you seen what the perl FAQ has to say about this?
>
Yes. Still I'd like to be fairly confident someone cannot
get to the source code. I've thought of using Filter and
am looking into that.
---------------------------------------------------------
Ted Wart t_wart@hotmail.com
Government Tech. Support/AUAAC - Austin-818 extention 121
---------------------------------------------------------
------------------------------
Date: Sat, 30 Dec 2000 22:51:25 +1000
From: dolphin@localhost.localdomain (dolphin)
Subject: Re: Any good Perl books?
Message-Id: <slrn94rmid.2r6.dolphin@localhost.localdomain>
A reasonable book is The Waite Group's "Perl 5 How-to" which looks at using
Perl in over 200 different circumstances. It is about 2 inches thick and
includes a CDROM containing the CPAN archives plus all the source code
discussed.
On Wed, 27 Dec 2000 09:36:30 -0500, AdminGod <admingod@stargate.net> wrote:
>
> --------------4070B4FBD1528C3D19EB5D5E
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> I agree that O'Reily is not the only reference nor is it one of the
> better ones out there. But considering the availability and the ease of
> use I would suggest getting at least one and 'form your own opinion.'
>
> I personally don't like buying "dead trees" but sometimes that is
> unavoidable. So to solve that I purchased "The Perl CD Bookshelf" and
> put the whole thing on my HD. Start up the web server and #! I have my
> 6 book reference without deleting a few trees. I purchased it from
> bookpool.com and got a great discount off the retail price. I will make
> it public for all to take a look at for a while.
> (gangrel.ws.pitdc1.stargate.net)
>
>
>
> --
> "The box said 'Windows 95 or better,' so I wrote my own OS in one line of Perl"
>
>
>
> --------------4070B4FBD1528C3D19EB5D5E
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> I agree that O'Reily is not the only reference nor is it one of the better
> ones out there. But considering the availability and the ease of
> use I would suggest getting at least one and 'form your own opinion.'
> <p>I personally don't like buying "dead trees" but sometimes that is unavoidable.
> So to solve that I purchased "The Perl CD Bookshelf" and put the whole
> thing on my HD. Start up the web server and #! I have my 6 book reference
> without deleting a few trees. I purchased it from bookpool.com and
> got a great discount off the retail price. I will make it public
> for all to take a look at for a while. (gangrel.ws.pitdc1.stargate.net)
> <br>
> <br>
> <pre>--
> "The box said 'Windows 95 or better,' so I wrote my own OS in one line of Perl"</pre>
> </html>
>
> --------------4070B4FBD1528C3D19EB5D5E--
>
--
------------------------------
Date: Sat, 30 Dec 2000 14:42:18 -0500
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Any good Perl books?
Message-Id: <slrn94sekq.4av.tadmc@magna.metronet.com>
dolphin <dolphin@localhost.localdomain> wrote:
>includes a CDROM containing the CPAN archives plus all the source code
>discussed.
Which pretty much guarantees that the CPAN modules included
are out of date.
Don't use the CPAN-on-CD part, use the real CPAN for getting modules.
--
Tad McClellan SGML consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Wed, 03 Jan 2001 13:49:49 -0400
From: Antaeus Feldspar <feldspar@ix.netcom.com>
Subject: Re: Any good Perl books?
Message-Id: <3A53663D.EE62DAE8@ix.netcom.com>
Peter Lai wrote:
>
> Any recommendations for good reference
> books on Perl?
>
> Thanks
Get thee to http://www.oreilly.com. It's practically impossible to go
wrong with an O'Reilly book, particularly an O'Reilly book on Perl.
-jc
------------------------------
Date: 3 Jan 2001 20:09:57 GMT
From: abigail@foad.org (Abigail)
Subject: Re: Any good Perl books?
Message-Id: <slrn9571ol.nmu.abigail@tsathoggua.rlyeh.net>
Antaeus Feldspar (feldspar@ix.netcom.com) wrote on MMDCLXXXII September
MCMXCIII in <URL:news:3A53663D.EE62DAE8@ix.netcom.com>:
\\ Peter Lai wrote:
\\ >
\\ > Any recommendations for good reference
\\ > books on Perl?
\\ >
\\ > Thanks
\\
\\ Get thee to http://www.oreilly.com. It's practically impossible to go
\\ wrong with an O'Reilly book, particularly an O'Reilly book on Perl.
Huh? There are more bad O'Reilly Perl books than good ones.
Abigail
--
srand 123456;$-=rand$_--=>@[[$-,$_]=@[[$_,$-]for(reverse+1..(@[=split
//=>"IGrACVGQ\x02GJCWVhP\x02PL\x02jNMP"));print+(map{$_^q^"^}@[),"\n"
------------------------------
Date: Thu, 4 Jan 2001 08:49:26 -0000
From: "Géry" <ducateg@info.bt.co.uk>
Subject: Re: Any good Perl books?
Message-Id: <931djs$e70$1@pheidippides.axion.bt.co.uk>
> Huh? There are more bad O'Reilly Perl books than good ones.
such as?
Géry
------------------------------
Date: 4 Jan 2001 14:52:58 GMT
From: abigail@foad.org (Abigail)
Subject: Re: Any good Perl books?
Message-Id: <slrn9593ia.qdu.abigail@tsathoggua.rlyeh.net>
Géry (ducateg@info.bt.co.uk) wrote on MMDCLXXXIII September MCMXCIII in
<URL:news:931djs$e70$1@pheidippides.axion.bt.co.uk>:
'' > Huh? There are more bad O'Reilly Perl books than good ones.
''
'' such as?
Bad ones: Learning Perl
Advanced Perl Programming
Perl in a nutshell
Perl for System Administration
Mastering Algorithms with Perl
Good ones: The Camel
The Cookbook
Abigail
--
BEGIN {$^H {q} = sub {pop and pop and print pop}; $^H = 2**4.2**12}
"Just "; "another "; "Perl "; "Hacker\n";
------------------------------
Date: Fri, 29 Dec 2000 15:12:45 +0000
From: Jean-Luc BEAUDET <jlbeaudet@pathe.fr.kodak.com>
Subject: Apache and mod_perl
Message-Id: <3A4CA9EC.782FB44@pathe.fr.kodak.com>
Hi every body!
Runnin' Apache 1.3.14 on SOLARIS 7
Got a Pb concerning mod_perl
Wonderin' what is the best solution:
- either compile mod_perl with Apache
- or, considering my Apache Server is already installed in DSO mode, is
it a better
idea to add mod_perl as a DSO module?
Whatever is the best solution, would be really helpfull to explain how
to achieve
such a thing.
Thanks a lot
Best regards
JLB ;O)
------------------------------
Date: Fri, 29 Dec 2000 14:21:54 GMT
From: rgarciasuarez@free.fr (Rafael Garcia-Suarez)
Subject: Re: Apache and mod_perl
Message-Id: <slrn94p7fh.k22.rgarciasuarez@rafael.kazibao.net>
Jean-Luc BEAUDET wrote in comp.lang.perl.misc:
> Hi every body!
>
> Runnin' Apache 1.3.14 on SOLARIS 7
>
> Got a Pb concerning mod_perl
>
> Wonderin' what is the best solution:
> - either compile mod_perl with Apache
> - or, considering my Apache Server is already installed in DSO mode, is
> it a better
> idea to add mod_perl as a DSO module?
This is a question for comp.infosystems.www.servers.unix.
Followups set.
--
# Rafael Garcia-Suarez / http://rgarciasuarez.free.fr/
------------------------------
Date: Sat, 30 Dec 2000 15:24:24 +0800
From: "Jennifer H Mulherins" <mul@hotmail.com>
Subject: Application Service Provider-http://zjj90:8080/servlet/inchstservlet-fee management page.-asp
Message-Id: <92k2nj$v32@imsp212.netvigator.com>
good morning:
A clerk in hotel perform a dial -up and I think the modem has written a
phone numbers.
She may have dialled up to ( using a ppp service if I am corrected, tell me
if I am wrong !!!) a web site and not via internet to access the above fee
management page.
if the asp company provide such services, the behind running behind is cgi
and html server and certain directory for storing data files
Five hotels then five modems, five serial ports, five telephone nos ( five
installations of phone), five tailored fee management programs for
different clients at the minimum??????????????? agree.!!!!!!!!!!!!!!
In apache, it was by default listen to 80, if set to listen
I. 8080 for the first hotel A in url.
II. 8081 for the 2n hotel B in url.
III 8082 ...
IV 8083....
V 8084 ...
X. 8089 for 10th hotel
It does not necessary started with "www", it does not required DNS services
for PPP?
or it may used a shared modems but at least 4-5 modem awaiting to be called
upon to answer request from ( listening to different ports starting
8080,8081......8089....etc. Take a look at the Datacraft catalogue? do U got
the latest.Uk has the online.
The ASP company must have at least a dozen of other hotels to survive from
the point of cost and labour????
A fee management program of web-based idea:
1. room reservation management
2. F & B
3. .....etc
4 retrieve a small data base
I do not know at the moment. I knew there is something off the shelf package
from download.com about hotel management program.
discussion and possible argument with reason so that I am on the right track
of hotel asp . I was a programmer at the beginning. I should be a
programmer not a system engineer.
Jenny.
------------------------------
Date: Fri, 29 Dec 2000 18:58:29 +0000
From: "Prendergast, John [GAL:8041:EXCH]" <prendj@europem01.nt.com>
Subject: Applying registry updates in Winnt
Message-Id: <3A4CDED5.D131A8C9@europem01.nt.com>
Hello all,
Does anyone know how to apply changes to the Winnt registry from within
a perl script.
I can change settings for both Current user an system environment
variables but cannot get them to take immediate affect such as with the
ok/apply buttons from [Control Panel]->System->environment.
I am currently using ActiveState perl 5.6 and the Registry.pm module.
Regards,
John
------------------------------
Date: Sat, 30 Dec 2000 01:32:24 GMT
From: jhelman@wsb.com (Jeff Helman)
Subject: Re: Applying registry updates in Winnt
Message-Id: <Xns9019DC159jhelmanwsbcom@24.2.2.74>
"Prendergast, John [GAL:8041:EXCH]" <prendj@europem01.nt.com> wrote in
<3A4CDED5.D131A8C9@europem01.nt.com>:
>Does anyone know how to apply changes to the Winnt registry from within
>a perl script.
>I can change settings for both Current user an system environment
>variables but cannot get them to take immediate affect such as with the
>ok/apply buttons from [Control Panel]->System->environment.
>I am currently using ActiveState perl 5.6 and the Registry.pm module.
Okay...WHICH Registry.pm module? If you are using Win32::Registry, it is
deprecated (says so in the docs. You DID read the docs, right?). The docs
recommend using Win32::TieRegistry (which is very Perlish). Or are you
trying to use Win32API::Registry.pm (which is very C-ish)? I've used
Win32::TieRegistry several times in the past without any of the problems
you describe. How 'bout posting some of the code that's giving you
trouble?
Hope this helps,
JH
------------------------------
Date: Tue, 02 Jan 2001 10:14:55 +0000
From: "Prendergast, John [GAL:8041:EXCH]" <prendj@europem01.nt.com>
Subject: Re: Applying registry updates in Winnt
Message-Id: <3A51AA1E.D64ABC68@europem01.nt.com>
Jeff Helman wrote:
> "Prendergast, John [GAL:8041:EXCH]" <prendj@europem01.nt.com> wrote in
> <3A4CDED5.D131A8C9@europem01.nt.com>:
>
> >Does anyone know how to apply changes to the Winnt registry from within
> >a perl script.
> >I can change settings for both Current user an system environment
> >variables but cannot get them to take immediate affect such as with the
> >ok/apply buttons from [Control Panel]->System->environment.
> >I am currently using ActiveState perl 5.6 and the Registry.pm module.
>
> Okay...WHICH Registry.pm module? If you are using Win32::Registry, it is
> deprecated (says so in the docs. You DID read the docs, right?). The docs
> recommend using Win32::TieRegistry (which is very Perlish). Or are you
> trying to use Win32API::Registry.pm (which is very C-ish)? I've used
> Win32::TieRegistry several times in the past without any of the problems
> you describe. How 'bout posting some of the code that's giving you
> trouble?
>
> Hope this helps,
> JH
Jeff,
Thanks for the reply. I was usingWin32::Registry and I was aware that it
had been superceded by Win32::TieRegistry, however after reading
the documentation for both I thought that Win32::Registry looked simpler
to get something off the ground quickly. But I think I'll go back and have a
look at Win32::TieRegistry instead.
Regards,
John
------------------------------
Date: Wed, 3 Jan 2001 13:17:54 -0600
From: "Charles K. Clarkson" <c_clarkson@hotmail.com>
Subject: Re: Array of arrays, stack & print layout
Message-Id: <05A5D593CBC64284.B2C04D9B291987D0.A39479066E1BAD17@lp.airnews.net>
"Justin McNutt" <mcnuttj@nin.iats.missouri.edu> wrote in message
news:91mqgn$p1h$1@dipsy.missouri.edu...
: eggrock@my-deja.com wrote:
: > Somewhat of a fun question, but kind of long.
:
: > my $count = 0;
: > foreach (@stack) {
: > #get x,y pos. and add 1 to each
: > my $y = $count % 10 + 1;
: > my $x = int($count / 10) + 1;
: > $print_stack[$y][$x] = $_;
: > $count++;
: > }
:
: > for($y = 0; $y <= 10; $y++) {
: > for($x = 0; $x <= 10; $x++) {
: > printf "%6s ", $print_stack[$y][$x];
: > }
: > print "\n";
: > }
: > }#print_stack()
:
: > Is there a better (faster) way? It seems to be fairly quick as it
is.
:
: My only suggestion is that since you already have a mathematical way
to
: calculate the indices for the values in @stack, why have two arrays?
: How does the data get into @stack? Is there some reason it can't be
: stored directly into @print_stack?
:
: If so, is there some reason that all of the values of @stack[x0] and
: @stack[0y] can't be the same as the "header" strings you've got in
: @print_stack? You'd then have two lines in your nested for loop.
The
: first would calculate the proper index in @stack for what you want
to
: print next, and the second would print it.
:
: I recommend the second way, since (I think) a single array is more
: efficient than an array of arrays - since you have a clean way to
make
: sense of the indices. In *either* case, you get around moving data
: from one array to another for no apparent reason.
:
: Of course, none of that is really *necessary* if your code works,
but
: minimizing the number of lists/hashes/variables of any kind in your
: code is (almost) always a good practice. After all, variables are
: (usually) stored in memory, which is finite. It may not be
necessary
: in this case, it's just a "good programming habits" thing.
:
: --J
If your really stuck on the 2 dimensional array, you can use array
slices to avoid the first foreach:
sub print_stack {
#set up grid so everything has a value
my @print_stack = (
[' ', '==00==', '==10==', '==20==', '==30==', '==40==',
'==50==', '==60==', '==70==', '==80==', '==90==', ],
['==01==', @stack[0 .. 9] ],
['==02==', @stack[10 .. 19] ],
['==03==', @stack[20 .. 29] ],
['==04==', @stack[30 .. 39] ],
['==05==', @stack[40 .. 49] ],
['==06==', @stack[50 .. 59] ],
['==07==', @stack[60 .. 69] ],
['==08==', @stack[70 .. 79] ],
['==09==', @stack[80 .. 89] ],
['==10==', @stack[90 .. 99] ],
);
for my $y (0 .. 10) {
for my $x (0 .. 10) {
printf "%6s ", $print_stack[$y][$x];
}
print "\n";
}
}#print_stack()
If your not stuck on arrays:
sub print_stack {
print ' ' x 7;
printf "==%02s== ", $_ * 10 foreach (0 .. 9);
print "\n";
foreach $i ( 0 .. 9 ) {
printf "==%02s== ", $i + 1;
printf "%6s ", $_ foreach @stack[$i * 10 .. $i * 10 + 9];
print "\n";
}
}#print_stack()
HTH,
Charles K. Clarkson
Among economists, the real world is often a special case.
- Horngren's Observation
------------------------------
Date: Tue, 02 Jan 2001 00:23:00 GMT
From: cfedde@fedde.littleton.co.us (Chris Fedde)
Subject: Re: automatic FAQ answerer idea
Message-Id: <Eb946.564$B9.190392832@news.frii.net>
In article <slrn947p5n.8lq.tadmc@magna.metronet.com>,
Tad McClellan <tadmc@metronet.com> wrote:
>
> Yes, that would be interesting.
>
> Clifford Stoll (of "Cuckoo's Egg" fame) has a book on that
> topic that I've been meaning to get around to buying/reading:
>
> http://www.ocf.berkeley.edu/~stoll/silicon_snake_oil.html
>
>
This thread is stale by now, but I just had to comment on a couple
points. First. I find the idea of a mailing list or discussion
group to discuss the degradation of the internet is more navel
gazing than I'm interested in. Count me out.
Second, Second Silicon Snake Oil is starting to show it's age.
Good luck
chris
--
This space intentionally left blank
------------------------------
Date: Thu, 04 Jan 2001 10:48:56 GMT
From: francesc_guasch@my-deja.com
Subject: Automating CPAN installation
Message-Id: <931ken$vr2$1@nnrp1.deja.com>
I want to make a script that installs modules automatically.
I've read the CPAN docs and I've installed some modules
this way but there are some that ask questions to the user.
How can I answer this questions from the script ?
what I do is :
1st eval if there is cpan installed and I install one myself
and then require it.
Then I try to install the modules this way more or less:
foreach (list of modules){
install($_);
}
I've searched old messages and I couldn't find nobody
with that problem. Thank you very much for your time.
Sent via Deja.com
http://www.deja.com/
------------------------------
Date: Wed, 3 Jan 2001 16:22:09 -0600
From: "Charles K. Clarkson" <c_clarkson@hotmail.com>
Subject: Re: backslah as a normal char
Message-Id: <AA0A809CC393138C.FD38FA4596EFBF8F.D58D245215DF2B84@lp.airnews.net>
<nobull@mail.com> wrote in message
news:u9g0jk70zh.fsf@wcl-l.bham.ac.uk...
: lalot@univ-aix.fr (Lalot Dominique) writes:
:
: > s/\\/|/g
: > if I have 4 backslah, then I get 2 | instead of |
:
: I do not belive you - post code that you think illustrates this.
Okay:
In perl 5.00503:
$_ = '\\\\server\\share';
s/\\/|/g;
print;
results in:
||server|share
This behavior is correct. What I think Dom wants is a result
of '|server|share'. We can lessen the confusion to the perl
re engine by using the hex values for \ (\x5c) and | (\x7c):
$_ = '\\\\server\\share';
s/\x5c+/\x7c/g;
print;
results in:
|server|share
Charles K. Clarkson
------------------------------
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 5223
**************************************