[10219] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 3811 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Sep 24 10:07:13 1998

Date: Thu, 24 Sep 98 07:00:32 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Thu, 24 Sep 1998     Volume: 8 Number: 3811

Today's topics:
    Re: any way to encrypt my script? (Matt Knecht)
    Re: any way to encrypt my script? droby@copyright.com
    Re: any way to encrypt my script? <zenin@bawdycaste.org>
    Re: Array of hashes: a better way? <awrobinson@amoco.com>
    Re: Array of hashes: a better way? <awrobinson@amoco.com>
    Re: Array of hashes: a better way? <awrobinson@amoco.com>
    Re: Array of hashes: a better way? <awrobinson@amoco.com>
    Re: Array of hashes: a better way? <awrobinson@amoco.com>
    Re: changing $ 'variables' in regexprs (David Rouse)
    Re: changing $ 'variables' in regexprs (David Rouse)
    Re: Confused: visibility of "my" vars <webmaster@fccjmail.fccj.cc.fl.us>
        Database with Perl <marco.jaeger@dwm.ch>
    Re: Database with Perl <zenin@bawdycaste.org>
    Re: Error 405 Method Not Allowed <tapplega@utk.edu>
        grep syntax question <stephent@comm.mot.com>
    Re: grep syntax question <Arved_37@chebucto.ns.ca>
    Re: grep syntax question <zenin@bawdycaste.org>
    Re: Perl & Java - differences and uses (Jeffrey R. Drumm)
    Re: Perl & Java - differences and uses <zenin@bawdycaste.org>
    Re: Perl & Java - differences and uses arw@pythonpros.com
    Re: Perl and Javascript <sachse@aeb.de>
        perl4 vs perl5. <sholmeid@online.no>
    Re: Poll: How Did You Learn Perl? <zenin@bawdycaste.org>
    Re: Poll: How Did You Learn Perl? <zenin@bawdycaste.org>
    Re: Poll: How Did You Learn Perl? <zenin@bawdycaste.org>
    Re: Poll: How Did You Learn Perl? <Arved_37@chebucto.ns.ca>
    Re: Poll: How Did You Learn Perl? dave@mag-sol.com
    Re: Poll: How Did You Learn Perl? <Arved_37@chebucto.ns.ca>
    Re: Poll: How Did You Learn Perl? <tchrist@mox.perl.com>
    Re: problems with dates being off by 1 day <barnett@houston.Geco-Prakla.slb.com>
        Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)

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

Date: Thu, 24 Sep 1998 11:16:29 GMT
From: hex@voicenet.com (Matt Knecht)
Subject: Re: any way to encrypt my script?
Message-Id: <hSpO1.359$7Q6.3884312@news2.voicenet.com>

Zenin <zenin@bawdycaste.org> wrote:
>Rich Grise <richgrise@entheosengineering.com> wrote:
>: Tom Christiansen wrote:
>: > Someone who truly understands UNIX not only understands why "rm *"
>: > screws you, but understands why IT HAS TO BE THAT WAY.
>:
>: Wouldn't that be 
>: $ rm -R *
>
>	-r, but that's not the point.
>
>	Typing
>
>		rm * ~
>
>	When you really meant
>
>		rm *~

I don't think that's the point, either.  The point is that the human is
always right, even when they're not.

To tie this, however tenuosly, into Perl would be saying Unix, like
Perl, has no problems with letting you think bad thoughts.

-- 
Matt Knecht - <hex@voicenet.com>


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

Date: Thu, 24 Sep 1998 12:47:57 GMT
From: droby@copyright.com
Subject: Re: any way to encrypt my script?
Message-Id: <6udf1t$2i0$1@nnrp1.dejanews.com>

In article <3608F1D5.455A22C0@osmic.com>,
  Ben Sauvin <sauvin@osmic.com> wrote:
>
>     I've told Tom I believed he misread me, and his reaction was "Oh, crap.
> Cancel." Such frustration is quite understandable; I am often vexed by my
> inability to express myself clearly.
>
> Ronald J Kimball wrote:
>
> > Tom Christiansen <tchrist@mox.perl.com> wrote:
> >
> > > In comp.lang.perl.misc,
> > >     Ben Sauvin <sauvin@osmic.com> writes:
> > > :    Nobody who has never written or maintained a compiler, interpreter
> > > :or other computer language translator should really be commenting in
> > > :this thread.
> > >
> > > Why's that -- because we're the only ones who know what we're talking
> > > about? :-)
> >
> > Hmm.....  :-)
> >
> > > More seriously, there is a reason that professional computer scientists
> > > go to school for 4-8 years studying and researching these things, and
> > > why we have specific words with precise technical meanings.  Telling us
> > > we're not allowed to participate is biting the hand that feeds you.
> > > Without us, the world would be stuck with nothing more than a bunch of
> > > mere [insert Scott Adams accent voice here]  ``IT Professionals''. :-)
> >
> > Tom, you've got his meaning backwards.
> >
> > He said 'nobody who has *never* written or maintained, etc.'  An
> > unfortunate double negative.  To rephrase, 'Only people who have ever
> > written or maintained a compiler, interpreter, or other computer
> > language translator should really be commenting in this thread.'
> >

<flame> I don't know whether Tom misinterpreted this, but I don't believe I
did. I certainly didn't miss the double negative.  Since Tom is quite adept
with the English language, I doubt it threw him either.

Whether or not someone has actually done the writing or maintaining of this
stuff has little to do with his capability for understanding it or dicussing
it intelligently.  I have not done it, but have some book-learning and am (in
my own of course humble opinion at least) reasonably intelligent.

I would have responded with this flame and some technical discussion had I
thought I had anything constructive to add.  As it happens, I agree with
everything technical in the post and was only put off by the arrogance of
stating qualifications for participation in the thread.  So the flame got
delayed.
</flame>

I don't like flaming.  Let's see, can I contribute anything real to the
discussion?

APL is interpreted.  RSTS/E Basic-Plus is (was?) interpreted.  Perl and Java
are byte-code compiled.  C, C++, FORTAN, Cobol and most current versions of
Basic (and most traditional languages) are object-code compiled.  Does this
list help delineate the concepts or am I just showing my age?

--
Don Roby
<droby@copyright.com>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: 24 Sep 1998 13:14:55 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: any way to encrypt my script?
Message-Id: <906642863.567559@thrush.omix.com>

Matt Knecht <hex@voicenet.com> wrote:
	>snip<
: I don't think that's the point, either.  The point is that the human is
: always right, even when they're not.

	Hmm, right.

: To tie this, however tenuosly, into Perl would be saying Unix, like
: Perl, has no problems with letting you think bad thoughts.

	Which, to follow this line of thought even farther, is why
	most of the world's porn web sites are run on Unix systems
	with CGI scripts written in Perl. :-)

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


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

Date: Thu, 24 Sep 1998 08:30:03 -0500
From: "Andrew W. Robinson" <awrobinson@amoco.com>
Subject: Re: Array of hashes: a better way?
Message-Id: <360A495B.C8035648@amoco.com>

Craig Berry wrote:
> 
> Always *always* check the success of open!
> 
> : while ( $line = <FIN> ) {
> 
> You may wish to make that 'while (defined($line = <FIN>)) {', to guard
> against the pathological case of a 0 at EOF with no trailing newline.
> 

I do both, but I omitted them for clarity in the demo code for
the post. Thanks for the help!

Andrew Robinson
-- 
Offshore Business Unit           email: awrobinson@amoco.com
Amoco Corporation                      phone: (504) 586-6888
New Orleans, LA                          fax: (504) 586-2637
-----
The events depicted herein are fictional. Any similarity to 
persons living or dead is entirely...oops, wrong disclaimer


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

Date: Thu, 24 Sep 1998 08:31:50 -0500
From: "Andrew W. Robinson" <awrobinson@amoco.com>
Subject: Re: Array of hashes: a better way?
Message-Id: <360A49C6.87F1076F@amoco.com>

John Porter wrote:
> 
> Well, what you have isn't too bad, but I would suggest the
> following changes.
> 

Thanks for the suggestions!

Andrew Robinson
-- 
Offshore Business Unit           email: awrobinson@amoco.com
Amoco Corporation                      phone: (504) 586-6888
New Orleans, LA                          fax: (504) 586-2637
-----
The events depicted herein are fictional. Any similarity to 
persons living or dead is entirely...oops, wrong disclaimer


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

Date: Thu, 24 Sep 1998 08:33:04 -0500
From: "Andrew W. Robinson" <awrobinson@amoco.com>
Subject: Re: Array of hashes: a better way?
Message-Id: <360A4A10.C04894B3@amoco.com>

Ronald J Kimball wrote:
> 
> John Porter <jdporter@min.net> wrote:
> 
> >    If there weren't 2 pieces, $items[1] will be undef,
> >    and any time you use it like a string it'll look like ''.
> 
> Although he'd get a warning for using an unitialized value, since he's
> got -w on the shebang line.
> 

This is indeed why I was testing the number of results.

Andrew Robinson
-- 
Offshore Business Unit           email: awrobinson@amoco.com
Amoco Corporation                      phone: (504) 586-6888
New Orleans, LA                          fax: (504) 586-2637
-----
The events depicted herein are fictional. Any similarity to 
persons living or dead is entirely...oops, wrong disclaimer


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

Date: Thu, 24 Sep 1998 08:33:35 -0500
From: "Andrew W. Robinson" <awrobinson@amoco.com>
Subject: Re: Array of hashes: a better way?
Message-Id: <360A4A2F.3C11D221@amoco.com>

Ronald J Kimball wrote:
> 
> John Porter <jdporter@min.net> wrote:
> 
> >    If there weren't 2 pieces, $items[1] will be undef,
> >    and any time you use it like a string it'll look like ''.
> 
> Although he'd get a warning for using an unitialized value, since he's
> got -w on the shebang line.
> 

Thanks!

Andrew Robinson
-- 
Offshore Business Unit           email: awrobinson@amoco.com
Amoco Corporation                      phone: (504) 586-6888
New Orleans, LA                          fax: (504) 586-2637
-----
The events depicted herein are fictional. Any similarity to 
persons living or dead is entirely...oops, wrong disclaimer


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

Date: Thu, 24 Sep 1998 08:34:58 -0500
From: "Andrew W. Robinson" <awrobinson@amoco.com>
Subject: Re: Array of hashes: a better way?
Message-Id: <360A4A82.429558A8@amoco.com>

Andre L. wrote:
> 
> One way of improving the code (inline DATA file used for commodity):
> 

Thanks for the suggestions!

Andrew Robinson
-- 
Offshore Business Unit           email: awrobinson@amoco.com
Amoco Corporation                      phone: (504) 586-6888
New Orleans, LA                          fax: (504) 586-2637
-----
The events depicted herein are fictional. Any similarity to 
persons living or dead is entirely...oops, wrong disclaimer


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

Date: Thu, 24 Sep 1998 07:50:36 -0400
From: 4newsargus@mail.entrsft.com (David Rouse)
Subject: Re: changing $ 'variables' in regexprs
Message-Id: <4newsargus-2409980750370001@192.36.36.47>

In article <4newsargus-2209981514390001@192.36.36.47>,
4newsargus@mail.entrsft.com (David Rouse) wrote:

>Any advice welcome!

And thanks especially for the advice to try the actual documentation when
I get stuck. The O'Reilly books are nice, but you can't run grep on them.

David Rouse


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

Date: Thu, 24 Sep 1998 07:49:04 -0400
From: 4newsargus@mail.entrsft.com (David Rouse)
Subject: Re: changing $ 'variables' in regexprs
Message-Id: <4newsargus-2409980749040001@192.36.36.47>

In article <4newsargus-2209981514390001@192.36.36.47>,
4newsargus@mail.entrsft.com (David Rouse) wrote:

>Any advice welcome!

And thanks especially for the advice to try the actual documentation when
I get stuck. The O'Reilly books are nice, but you can't run grep on them.

David Rouse


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

Date: Thu, 24 Sep 1998 08:33:51 -0400
From: "Bill Jones, FCCJ Webmaster" <webmaster@fccjmail.fccj.cc.fl.us>
Subject: Re: Confused: visibility of "my" vars
Message-Id: <360A3C2F.49EE65C6@fccjmail.fccj.cc.fl.us>

Koos Pol wrote:
> 
> "my" variables which are declared in the main body, are visible in
> subs. But declared in a sub, a "my" is invisible everywhere else.
> 'perldoc -f my' explicitely talks about an anclosing block. This implies
> the same behaviour for the main body. Isn't the main body an enclosing
> block?
> 

You are confusing 'enclosing block' with variable scope.

Outside of an enclosing block a variable loses scope.

HTH,
-Sneex- 
__________________________________________________________________
Bill Jones FCCJ Webmaster | http://www.fccj.org/cgi/mail?webmaster
__________________________________________________________________
We are the CLPM... Lower your standards and surrender your code...
We will add your biological and technological distinctiveness to 
our own... Your thoughts will adapt to service us...
 ...Resistance is futile...


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

Date: Thu, 24 Sep 1998 10:48:38 +0200
From: Marco =?iso-8859-1?Q?J=E4ger?= <marco.jaeger@dwm.ch>
Subject: Database with Perl
Message-Id: <360A0765.E4BFA3E@dwm.ch>

Hi everybody

I have to produce a CD-Rom for a customer. Because the content must be
copied to a web-server, i'd like to do it with HTML and Perl. Can I
program a database access with perl without using a web-server ?
(Anything must be viewable with a browser).

Thanks a lot for any clues ;-))

Marco Jdger
Digitale Werbemedien AG
Switzerland




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

Date: 24 Sep 1998 13:17:53 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Database with Perl
Message-Id: <906643040.868570@thrush.omix.com>

[posted & mailed]

Marco =?iso-8859-1?Q?J=E4ger?= <marco.jaeger@dwm.ch> wrote:
: I have to produce a CD-Rom for a customer. Because the content must be
: copied to a web-server, i'd like to do it with HTML and Perl. Can I
: program a database access with perl without using a web-server ?
: (Anything must be viewable with a browser).
:
: Thanks a lot for any clues ;-))

	http://www.hermetica.com/technologia/perl/DBI/index.html

	http://www.apache.org/perl/

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


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

Date: Thu, 24 Sep 1998 09:01:03 -0400
From: Toby Applegate <tapplega@utk.edu>
Subject: Re: Error 405 Method Not Allowed
Message-Id: <360A428F.90809AEF@utk.edu>

Which webserver are you using? NETSCAPE should just smoke right along. It was
actually thought out. IIS is another matter. If IIS (or even Personal Web
Server, egads), then you need to edit the registry, my friend. Add the extension
".pl" (and .pm, .cgi, .plx for sanity's sake) under the HKEY_CLASSES_ROOT. and
add this string to the data field for the key "c:\Perl\bin\perl.exe %s %s" This
should allow execution of the files named .pl, etc. as CGI. Worked for me. I
forget where I found this info but I know it wasn't Microsoft.

TMA

sw wrote:

> i am attempting to design a website for my company(winNT server) but always
> receive a
> '405: method not allowed' error when attempting to submit a form using perl.
>
> i am also aware that this error message is a SERVER problem but both i and
> the company's system administrator are unfamiliar with web servers.
>
> can anyone please explain to me how i(we) can fix this problem?
>
> the full error message reads as follows:
> 405 Method Not Allowed
>
> The method specified in the Request Line is not allowed for the resource
> identified by the request. Please ensure that you have the proper MIME type
> set up for the resource you are requesting.
>
> Please contact the server's administrator if this problem persists.
>
> thank you for your time.
>
> -sloan





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

Date: Thu, 24 Sep 1998 11:53:11 +0100
From: "Stephen Totten" <stephent@comm.mot.com>
Subject: grep syntax question
Message-Id: <6ud8cb$nrg$1@schbbs.mot.com>

I know how do to a regular grep on a string, but how do I do a '-i' test?

grep {?i/.pdf$/} $file

doesn't work...

Thanks
- Steve




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

Date: Thu, 24 Sep 1998 10:20:09 -0300
From: Arved Sandstrom <Arved_37@chebucto.ns.ca>
Subject: Re: grep syntax question
Message-Id: <Pine.GSO.3.95.iB1.0.980924101730.26764D-100000@halifax>


You're looking for something like

$filename =~ /\.pdf$/i

most likely.

On Thu, 24 Sep 1998, Stephen Totten wrote:

> I know how do to a regular grep on a string, but how do I do a '-i' test?
> 
> grep {?i/.pdf$/} $file
> 
> doesn't work...
> 



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

Date: 24 Sep 1998 13:22:11 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: grep syntax question
Message-Id: <906643299.55837@thrush.omix.com>

[posted & mailed]

Stephen Totten <stephent@comm.mot.com> wrote:
: I know how do to a regular grep on a string, but how do I do a '-i' test?

	Err, do you meen case insensitive?

: grep {?i/.pdf$/} $file
:
: doesn't work...

	Maybe this

		grep { /\.pdf$/i } $file

	Or, if you're just testing one string for the match:

		if ($file =~ /\.pdf$/i) { do_stuff() }

	The grep() function really isn't the same as the grep program.

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


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

Date: Thu, 24 Sep 1998 10:51:45 GMT
From: drummj@mail.mmc.org (Jeffrey R. Drumm)
Subject: Re: Perl & Java - differences and uses
Message-Id: <360b23d5.149754896@news.mmc.org>

On 24 Sep 1998 03:25:59 GMT, Zenin <zenin@bawdycaste.org> wrote:

>	<tangent>
>	I just noticed your login.  I must admit it's amusing how well
>	it seems to fit you, since at the heart of your arguments you
>	seek to remove the individuality of the programmer...
>
>		I am George Reese of OO.
>		Resistance is futile.
>		You will be assimilated.

s/assimi/encapsu/

;-)

>
>	:-) <--for the humor impaired
>
>	</tangent>

-- 
                               Jeffrey R. Drumm, Systems Integration Specialist
                       Maine Medical Center - Medical Information Systems Group
                                                            drummj@mail.mmc.org
"Broken? Hell no! Uniquely implemented!" - me


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

Date: 24 Sep 1998 13:11:36 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Perl & Java - differences and uses
Message-Id: <906642664.364210@thrush.omix.com>

Jeffrey R. Drumm <drummj@mail.mmc.org> wrote:
: On 24 Sep 1998 03:25:59 GMT, Zenin <zenin@bawdycaste.org> wrote:
: >	<tangent>
: >	I just noticed your login.  I must admit it's amusing how well
: >	it seems to fit you, since at the heart of your arguments you
: >	seek to remove the individuality of the programmer...
: >
: >		I am George Reese of OO.
: >		Resistance is futile.
: >		You will be assimilated.
:
: s/assimi/encapsu/
:
: ;-)

	ROTFL :-)

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


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

Date: Thu, 24 Sep 1998 13:34:12 GMT
From: arw@pythonpros.com
Subject: Re: Perl & Java - differences and uses
Message-Id: <6udhok$578$1@nnrp1.dejanews.com>

In article <906623228.262303@thrush.omix.com>,
  Zenin <zenin@bawdycaste.org> wrote:

> : If there is some design which needs lambda style functions instead of inner
> : classes I would be interested.
>
> 	Any functional programming book should be able to give you dozens
> 	of examples.  If that fails, I'm sure a couple clicks off of
> 	www.scheme.org should fill this order and then some. :-)

Okay, I read that to mean you either don't understand
the question and don't care to bother trying, or you
can't think of an example and are blustering.  I can't think of
one either: if you can, give it -- don't bluster.
(Just copy it out of any functional programming book -- it
shouldn't be hard ;) ).

For my purposes classes work as well as lambdas.  I don't
need closures (at least not where a class encapsulation
doesn't work as well) and don't like them much.  Continuations might
be nice once in a blue moon, but multithreading is even better,
and no less difficult to use.  YMMV.

Please see

http://grail.cnri.reston.va.us/cgi-bin/faqw.py?req=show&file=faq06.027.htp

for background information.  I look forward to your
definitive counterexample with deepest respect.
  -- Aaron Watters

===

In the long term we're all dead.  -- Keynes

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Thu, 24 Sep 1998 12:22:08 +0200
From: "L|der Sachse" <sachse@aeb.de>
Subject: Re: Perl and Javascript
Message-Id: <360A1D50.4516145@aeb.de>



sr12@hdm-stuttgart.de schrieb:

> Hi,
>
> I'm trying to generate HTML-Code that contains some Javascript-Commands
> with a perlscript.
> That far everything works perfectly, but if I execute the perlscript via
> a internet-browser, the browser doesn't complete loading the page
> (netscape stop button stays red; some elements are not displayed),
> although all tags etc. have been loaded, as you see, looking at the
> "document source".
> When I remove the Javascriptcode from the perl-generated HTML,
> everything works fine.
>
> Does anybody know what went wrong?
>
> Thanx
>         Sebastian


Hi Sebastian!

It seems you didn't implement the code correctly. Maybe you forgot to put a
backslash in front of all quotes?
Try to execute the script on the command line and check the output.

L|der



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

Date: Thu, 24 Sep 1998 13:21:04 +0200
From: Steinar Holmeide <sholmeid@online.no>
Subject: perl4 vs perl5.
Message-Id: <360A2B20.A75B6C93@online.no>

I am new to perl, so this is probably a very basic question...

I have just been given the responsibility to maintain some existing perl
scripts, as well as making some new ones. The scripts are implementet as
 .bat files with the first line something like this: @perl
<path>\thisfile.bat %1 %2 %3 %4 %5 %6 %7 %8 %9. As I understand this,
the program perl.exe is fed with the .bat-file and executes on the perl
syntax within the bat-file.

I do not know where the perl.exe file was downloaded from originally. I
notice that it is perl4 (4.0.1.6 of 91/11/11). Reading html-pages at
perl.org and perl.com I am adviced to upgrade to perl5. I'm a bit
confused, however, as to how to upgrade and where to download the
upgrade from. perl.com has links to Win32 versions of perl5, but reading
the instructions it seems like I have to run an installation process on
the workstation. We are a number of people who are going to run the
scripts, so keeping a perl.exe program on a server accessible to
everyone to process the scripts, seems like a good way of doing it,
instead of installing perl on every workstation.

Can I upgrade to perl5 and keep things the way they are today (with a
centralized perl.exe)? Where should I get the perl5-files? I would
prefer to download the exe-file, instead of the perl source code which
needs to be compiled...

Grateful for your help,
Steinar



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

Date: 24 Sep 1998 11:04:48 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <906635058.434443@thrush.omix.com>

Rich Grise <richgrise@entheosengineering.com> wrote:
: Excellent point - maybe the question should be,
: "How did you learn enough perl to start hacking Matt's scripts?"
: or
: "How did you learn enough perl to field a working CGI?"
: or
: "How did you learn enough perl to ask an intelligent question?"
: or
: "How did you learn enough perl to get yourself into serious trouble?"

	Well, if that's the list in there someplace should be:

	"How did you learn enough perl to realize Matt's scripts are bunk?"

	:-)

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


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

Date: 24 Sep 1998 11:11:11 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <906635441.951@thrush.omix.com>

Bart Lateur <bart.mediamind@ping.be> wrote:
: Nah. Most of the trouble with Matt's Scripts are related to making them
: robust, for example he forgot most of the file locking.

	That and, well, the extra added feature that most web sites
	lack nowadays that I've always liked; Being able to open an
	xterm on the server from a guestbook form.  I mean, when you make
	a typo in a guestbook entry it is really nice to be able to fix
	it yourself rather then bother the busy web master. :-)

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


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

Date: 24 Sep 1998 11:13:37 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <906635587.696072@thrush.omix.com>

Matt Knecht <hex@voicenet.com> wrote:
: When I'm done learning perl, I'll let you know!  So far I've been at it
: for almost 7 months now.  I have a feeling I have quite of bit time left
: to go.

When I'm done learning perl, I'll let you know!  So far I've been at it
for almost 7 years now.  I have a feeling I have quite a bit of time left
to go.

	:-)

-- 
-Zenin (zenin@archive.rhps.org)           From The Blue Camel we learn:
BSD:  A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts.  Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.)  The full chemical name is "Berkeley Standard Distribution".


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

Date: Thu, 24 Sep 1998 09:52:03 -0300
From: Arved Sandstrom <Arved_37@chebucto.ns.ca>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <Pine.GSO.3.95.iB1.0.980924095107.26764B-100000@halifax>

Certainly for the first year my resources were:

Camel 1, and
distribution docs





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

Date: Thu, 24 Sep 1998 12:52:45 GMT
From: dave@mag-sol.com
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <6udfat$2mb$1@nnrp1.dejanews.com>

In article <360923EC.8E9919D0@min.net>,
  John Porter <jdporter@min.net> wrote:

> So here's a poll for everyone.
>
> From what resource(s) did you learn Perl?
>
> . Llama v.1
> . Llama v.2
> . Camel v.1
> . Camel v.2
> . Other book (give name)
> . Docs included in the distribution
> . Something on the WWW
> . Studying existing code
> . Class/tutor

I bought Llama v1 about two years ago and learnt the basics from that. I
wanted to get the Camel, but knew that v2 was just around the corner so
waited for that. In the meantime learnt a lot from the man pages and some
online docs (particularly Tom's FMTY... series).

More recently, I think my Perl has moved to the next level with the help of
Camel v2, the Panther Book, the Shiny Ball Book, articles in TPJ (which is
missing from your list) and postings in this newsgroup. I suspect that when I
get my hands on it, the Ram Book will be another great help.

Dave...

--
dave@mag-sol.com
London Perl M[ou]ngers: <http://www.mag-sol.com/London.pm/>

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum


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

Date: Thu, 24 Sep 1998 10:07:19 -0300
From: Arved Sandstrom <Arved_37@chebucto.ns.ca>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <Pine.GSO.3.95.iB1.0.980924095451.26764C-100000@halifax>


Yes, in this case it's approaching the situation of asking James Gosling
"how did you learn Java?", or Brian Kernighan, "how did you learn C?" :-)

I thought I'd add 2 things to my original reply. At present, my reference
usage is probably about 50% distribution docs, 50% looking at "how other
people do it". So I get a lot from this NG, including Mr.Schwartz. Thank
you, everyone.

As far as original learning went, it occurred to me that I was very
heavily into UNIX shell scripts, sed, awk etc. when I first determined to
use Perl for a particular project (IIRC, generating LaTeX-formatted tables
from several hundred flat files at a time). So in a sense it would be
appropriate to expand the list, and mention prior familiarity with UNIX as
another learning resource.

 On Wed, 23 Sep 1998, Randal Schwartz wrote:

> Playing with Perl version 1 and 2, then being an alpha tester for Perl
> 3, then writing the Pink Camel.  (You learn a lot when you have to
> write about it. :)
> 
> Most of my students learn it from me though. :)
> 
> Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095



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

Date: 24 Sep 1998 13:20:33 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Poll: How Did You Learn Perl?
Message-Id: <6udgv1$mm9$1@csnews.cs.colorado.edu>

 [courtesy cc of this posting sent to cited author via email]

In comp.lang.perl.misc, John Porter <jdporter@min.net> writes:
:From what resource(s) did you learn Perl?
:. Llama v.1
no :-)
:. Llama v.2
no :-)
:. Camel v.1
no :-)
:. Camel v.2
no :-)
:. Other book (give name)
K&R? 
:. Docs included in the distribution
There you go.
:. Something on the WWW
I think not.
:. Studying existing code
Certainly.
:. Class/tutor
Larry. :-)

To be honest, I snagged perl1 from net.sources or mod.sources when it got
posted, and learned a bit from the tiny (31 pages) manpage.  It really
did just sort of make sense out of the box , given our [perl's and my]
overlapping backgrounds.  We didn't have even a newsgroup back then,
just a mailing list -- eventually.  But mostly it was from the code that
Larry would post.  So that first, 31-page manpage and then playing with
example code is what did it for me.  Actually writing out Perl code
instead of sh/sed/awk etc for my various shell-scriptish needs at the
time is what most did it: can't learn without doing.

Realizing all this, I'm trying an experiment this week: my hands-on
beginning perl course this week got (amongst other things) the 5.005
release of the Perl Pocket Ref and the Perl Cookbook to learn from.
We'll see how it works.

--tom
-- 
"People think it must be fun to be a super genius, but they don't
 realize how hard it is to put up with all the idiots in the world."
	--Calvin 


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

Date: Thu, 24 Sep 1998 08:01:44 -0500
From: Dave Barnett <barnett@houston.Geco-Prakla.slb.com>
To: Michael Ching <m_ching@hotmail.com>
Subject: Re: problems with dates being off by 1 day
Message-Id: <360A42B8.3CD4B861@houston.Geco-Prakla.slb.com>

Michael Ching wrote:
> 
> passme
> 
> remember- 0 is the first number.....
Incorrect.  (okay, inaccurate...)  Depending on the entry, most are 0
based.  Note mday below.  It starts at 1, always.

sec	0 .. 59
min	0 .. 59
hour	0 .. 23
mday	1 .. 28 or 29 or 30 or 31
year	0 .. 138 (roughly)
wday	0 .. 6
yday	0 .. 364 or 365 (depending on leap year)
isdst	??


Cheers,
Dave

-- 
Dave Barnett	Software Support Engineer	(281) 596-1434


Don't sweat the petty things, and don't pet the sweaty things.


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

Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>


Administrivia:

Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.

If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu. 


The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V8 Issue 3811
**************************************

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