[8938] in Perl-Users-Digest
Perl-Users Digest, Issue: 2555 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon May 11 12:09:31 1998
Date: Mon, 11 May 98 09:00:45 -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 Mon, 11 May 1998 Volume: 8 Number: 2555
Today's topics:
Re: (1) Esperanto: Ivy Kellerman-9 <ip201699@ip.pt>
(2) Esperanto: Ivy Kellerman-10 nord@aol.com
(2) Esperanto: Ivy Kellerman-11 nord@aol.com
(2) Esperanto: Ivy Kellerman-12 nord@aol.com
(2) Esperanto: Ivy Kellerman-13 nord@aol.com
(2) Esperanto: Ivy Kellerman-14 nord@aol.com
(2) Esperanto: Ivy Kellerman-15 nord@aol.com
(2) Esperanto: Ivy Kellerman-16 nord@aol.com
(2) Esperanto: Ivy Kellerman-17 nord@aol.com
(2) Esperanto: Ivy Kellerman-18 nord@aol.com
Re: A regex teaser that ALMOST works! (Greg Bacon)
Re: calculate expressions <aqumsieh@matrox.com>
Re: can't goto outside block <jdf@pobox.com>
chdir-command <root@dfki.de>
Re: chdir-command <jdf@pobox.com>
Re: chdir-command <eike.grote@theo.phy.uni-bayreuth.de>
Re: CPAN & Module gripes (was Re: Ever Wonder...?) eryq@zeegee.com
Re: Does Perl have a IDE?I don't like command line. (Rich Morin)
Re: Does Perl have a IDE?I don't like command line. (Stuart McDow)
Re: Does Perl have a IDE?I don't like command line. (David A. Black)
Re: Ever Wonder Why Not Everyone Uses Modules? (I R A Aggie)
Re: Grieving our dying community (Stuart McDow)
Re: guestbooks or boards scripts for Win NT <quednauf@nortel.co.uk>
Re: how to ignore new line characters in textarea - in <rootbeer@teleport.com>
Re: How to truncate a float value? <aqumsieh@matrox.com>
Re: MODULE MANIA STRIKES (Was Re: What does this do?) <upsetter@shore.net>
Re: MODULE MANIA STRIKES (Was Re: What does this do?) <upsetter@shore.net>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 11 May 1998 14:54:48 +0200
From: Antonio <ip201699@ip.pt>
To: nord@aol.com
Subject: Re: (1) Esperanto: Ivy Kellerman-9
Message-Id: <3556F518.D3937D4F@ip.pt>
nord@aol.com wrote:
> A COMPLETE GRAMMAR OF ESPERANTO
You people are worse than Jehovah Witnesses (no offense to the latter
intended).
If you want to keep with this, at least thread the lessons with one
another so that those not interested may kill them.
> -- THE INTERNATIONAL LANGUAGE --
Oh yeah? Who awarded it that status?
Was it sent down by God Almighty to us?
How come can anything be 'international' and then use horrible diacritics
not found elsewhere, not to talk of word building patterns
rejected-by-nearly-all-languages-during-the-course-of-their-evolution ?
--
am
'Miracles aren't, then, against Nature;
just against our knowlege of Nature (...)
In fact, the things which we all understand
aren't less wondrous' - St. Augustine
------------------------------
Date: Mon, 11 May 1998 14:40:03 GMT
From: nord@aol.com
To: Kent Jones <102252.3271@compuserve.com>
Subject: (2) Esperanto: Ivy Kellerman-10
Message-Id: <6j72k7$i2h$1@nnrp1.dejanews.com>
A COMPLETE GRAMMAR OF ESPERANTO
-- THE INTERNATIONAL LANGUAGE --
By Ivy Kellerman
NEW YORK: BOSTON: CHICAGO
D.C. HEATH AND COMPANY
Revision of 1910 Edition [1931]
-----------------------------------------------------------------------------
---------------
LESSON II
NOUNS.
10. Words which are the names of persons or things are called nouns.
The ending, or final letter, of nouns in Esperanto is o:
knabo, boy pomo, apple
cxevalo, horse tablo, table
---------------------------------------------------------------------------------
Posted by Robert E. Nordlander
nord@aol.com, nord2@juno.com
to: alt.usage.english, comp.lang.perl.misc, sci.lang.translation, sci.lang
cc: Kent Jones <102252.3271@compuserve.com>
May 11, 1998
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 11 May 1998 14:44:08 GMT
From: nord@aol.com
To: Kent Jones <102252.3271@compuserve.com>
Subject: (2) Esperanto: Ivy Kellerman-11
Message-Id: <6j72ro$i6f$1@nnrp1.dejanews.com>
A COMPLETE GRAMMAR OF ESPERANTO
-- THE INTERNATIONAL LANGUAGE --
By Ivy Kellerman
NEW YORK: BOSTON: CHICAGO
D.C. HEATH AND COMPANY
Revision of 1910 Edition [1931]
-----------------------------------------------------------------------------
---------------
LESSON II
THE ARTICLE.
11. The definite article is la, the, as
la knabo, the boy
la cxevalo, the horse
la tablo, the table
la pomo, the apple
In English there is an indefinite article "a, an," for the
singular but none for the plural.
Esperanto has no indefinite article for either singular
or plural. Therefore knabo may mean boy or a boy; pomo
may mean apple or an apple.
---------------------------------------------------------------------------------
Posted by Robert E. Nordlander
nord@aol.com, nord2@juno.com
to: alt.usage.english, comp.lang.perl.misc, sci.lang.translation, sci.lang
cc: Kent Jones <102252.3271@compuserve.com>
May 11, 1998
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 11 May 1998 14:47:26 GMT
From: nord@aol.com
To: Kent Jones <102252.3271@compuserve.com>
Subject: (2) Esperanto: Ivy Kellerman-12
Message-Id: <6j731u$igj$1@nnrp1.dejanews.com>
A COMPLETE GRAMMAR OF ESPERANTO
-- THE INTERNATIONAL LANGUAGE --
By Ivy Kellerman
NEW YORK: BOSTON: CHICAGO
D.C. HEATH AND COMPANY
Revision of 1910 Edition [1931]
-----------------------------------------------------------------------------
---------------
LESSON II
ADJECTIVES
12. A word used with a noun (expressed or understood) to express
a quality or characteristic is called an adjective.
The ending of adjectives in Esperanto is a:
bela, beautiful
granda , large
flava, yellow
forta, strong
---------------------------------------------------------------------------------
Posted by Robert E. Nordlander
nord@aol.com, nord2@juno.com
to: alt.usage.english, comp.lang.perl.misc, sci.lang.translation, sci.lang
cc: Kent Jones <102252.3271@compuserve.com>
May 11, 1998
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 11 May 1998 14:50:09 GMT
From: nord@aol.com
To: Kent Jones <102252.3271@compuserve.com>
Subject: (2) Esperanto: Ivy Kellerman-13
Message-Id: <6j7379$ijb$1@nnrp1.dejanews.com>
A COMPLETE GRAMMAR OF ESPERANTO
-- THE INTERNATIONAL LANGUAGE --
By Ivy Kellerman
NEW YORK: BOSTON: CHICAGO
D.C. HEATH AND COMPANY
Revision of 1910 Edition [1931]
-----------------------------------------------------------------------------
---------------
LESSON II
ATTRIBUTIVE ADJECTIVES
13. An adjective is said to modify a noun whose quality it
expresses. When directly preceding or following its noun, it is
called an attributive adjective:
la granda cxevalo, the large horse.
floro flava, a yellow flower.
bela birdo, a beautiful bird.
forta knabo, a strong boy.
---------------------------------------------------------------------------------
Posted by Robert E. Nordlander
nord@aol.com, nord2@juno.com
to: alt.usage.english, comp.lang.perl.misc, sci.lang.translation, sci.lang
cc: Kent Jones <102252.3271@compuserve.com>
May 11, 1998
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 11 May 1998 14:52:57 GMT
From: nord@aol.com
To: Kent Jones <102252.3271@compuserve.com>
Subject: (2) Esperanto: Ivy Kellerman-14
Message-Id: <6j73c9$il8$1@nnrp1.dejanews.com>
A COMPLETE GRAMMAR OF ESPERANTO
-- THE INTERNATIONAL LANGUAGE --
By Ivy Kellerman
NEW YORK: BOSTON: CHICAGO
D.C. HEATH AND COMPANY
Revision of 1910 Edition [1931]
-----------------------------------------------------------------------------
---------------
LESSON II
PRESENT TENSE OF THE VERB
14. Words which express action or condition are called verbs.
When representing an act or condition as a fact, and dealing with
present time, they are said to be in the present tense.
The ending of all Esperanto verbs in the present tense is-as:
kuras , runs, is running;
brilas, shines, is shining.
flugas , flies, is flying;
dormas , sleeps, is sleeping.
---------------------------------------------------------------------------------
Posted by Robert E. Nordlander
nord@aol.com, nord2@juno.com
to: alt.usage.english, comp.lang.perl.misc, sci.lang.translation, sci.lang
cc: Kent Jones <102252.3271@compuserve.com>
May 11, 1998
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 11 May 1998 14:56:08 GMT
From: nord@aol.com
To: Kent Jones <102252.3271@compuserve.com>
Subject: (2) Esperanto: Ivy Kellerman-15
Message-Id: <6j73i8$irk$1@nnrp1.dejanews.com>
A COMPLETE GRAMMAR OF ESPERANTO
-- THE INTERNATIONAL LANGUAGE --
By Ivy Kellerman
NEW YORK: BOSTON: CHICAGO
D.C. HEATH AND COMPANY
Revision of 1910 Edition [1931]
-----------------------------------------------------------------------------
---------------
LESSON II
PRESENT TENSE OF THE VERB
(Subject of the Verb)
15. The person or thing whose action or condition the verb
expresses is called the subject of the verb:
La suno brilas. The sun shines (is shining).
(subject: suno)
Knabo kuras. A boy runs (is running).
(subject: knabo)
---------------------------------------------------------------------------------
Posted by Robert E. Nordlander
nord@aol.com, nord2@juno.com
to: alt.usage.english, comp.lang.perl.misc, sci.lang.translation, sci.lang
cc: Kent Jones <102252.3271@compuserve.com>
May 11, 1998
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 11 May 1998 14:59:27 GMT
From: nord@aol.com
Subject: (2) Esperanto: Ivy Kellerman-16
Message-Id: <6j73of$j3u$1@nnrp1.dejanews.com>
A COMPLETE GRAMMAR OF ESPERANTO
-- THE INTERNATIONAL LANGUAGE --
By Ivy Kellerman
NEW YORK: BOSTON: CHICAGO
D.C. HEATH AND COMPANY
Revision of 1910 Edition [1931]
-----------------------------------------------------------------------------
---------------
LESSON II
16. VOCABULARY
(To be memorized in this and in all following lessons).
bela, beautiful.
kaj, and.
birdo, bird.
kantas, sings, is singing.
blanka, white.
knabo, boy.
bona, good.
kuras, runs, is running.
brilas, shines, is shining.
la, the.
cxevalo, horse.
luno, moon.
dormas, sleeps, is sleeping.
marsxas, walks, is walking.
flava, yellow.
pomo, apple.
floro, flower.
suno, sun.
flugas, flies, is flying,
tablo, table.
forta, strong.
violo, violet.
granda, large.
viro, man.
---------------------------------------------------------------------------------
Posted by Robert E. Nordlander
nord@aol.com, nord2@juno.com
to: alt.usage.english, comp.lang.perl.misc, sci.lang.translation, sci.lang
cc: Kent Jones <102252.3271@compuserve.com>
May 11, 1998
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 11 May 1998 15:02:26 GMT
From: nord@aol.com
To: Kent Jones <102252.3271@compuserve.com>
Subject: (2) Esperanto: Ivy Kellerman-17
Message-Id: <6j73u2$jba$1@nnrp1.dejanews.com>
A COMPLETE GRAMMAR OF ESPERANTO
-- THE INTERNATIONAL LANGUAGE --
By Ivy Kellerman
NEW YORK: BOSTON: CHICAGO
D.C. HEATH AND COMPANY
Revision of 1910 Edition [1931]
-----------------------------------------------------------------------------
---------------
LESSON II
17. READING LESSON
1. Bona viro.
2. La granda tablo.
3. Blanka floro.
4. Flava birdo.
5. La bela birdo kantas.
6. Forta knabo kuras.
7. La bona viro marsxas.
8. La bela cxevalo kuras.
9. La suno brilas.
10. Birdo flugas kaj knabo kuras.
11. Cxevalo blanka marsxas.
12. La bela luno brilas.
13. La knabo kantas kaj la viro dormas.
14. Bela granda pomo.
15. La bona knabo kantas.
16. La granda cxevalo dormas.
17. La suno brilas kaj la luno brilas.
18. Granda forta tablo.
19. Violo flava.
20. La bona flava pomo.
---------------------------------------------------------------------------------
Posted by Robert E. Nordlander
nord@aol.com, nord2@juno.com
to: alt.usage.english, comp.lang.perl.misc, sci.lang.translation, sci.lang
cc: Kent Jones <102252.3271@compuserve.com>
May 11, 1998
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 11 May 1998 15:05:18 GMT
From: nord@aol.com
To: Kent Jones <102252.3271@compuserve.com>
Subject: (2) Esperanto: Ivy Kellerman-18
Message-Id: <6j743e$jf7$1@nnrp1.dejanews.com>
A COMPLETE GRAMMAR OF ESPERANTO
-- THE INTERNATIONAL LANGUAGE --
By Ivy Kellerman
NEW YORK: BOSTON: CHICAGO
D.C. HEATH AND COMPANY
Revision of 1910 Edition [1931]
-----------------------------------------------------------------------------
---------------
LESSON II
18. SENTENCES FOR TRANSLATION
1. A beautiful flower.
2. A good large table.
3. A yellow violet and a white violet.
4. The moon is shining.
5. The good boy is walking.
6. The beautiful yellow bird flies.
7. The strong man sleeps.
8. The white bird sings.
9. A strong horse runs, and a man walks.
10. The sun shines, and a boy is singing.
11. The large yellow apple.
12. An apple large and good.
---------------------------------------------------------------------------------
Posted by Robert E. Nordlander
nord@aol.com, nord2@juno.com
to: alt.usage.english, comp.lang.perl.misc, sci.lang.translation, sci.lang
cc: Kent Jones <102252.3271@compuserve.com>
May 11, 1998
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: 11 May 1998 14:13:41 GMT
From: gbacon@cs.uah.edu (Greg Bacon)
Subject: Re: A regex teaser that ALMOST works!
Message-Id: <6j712l$iae$3@info.uah.edu>
In article <1d8qfn9.a5169u13x1kf4N@slip166-72-108-154.ny.us.ibm.net>,
kpreid@ibm.net (Kevin Reid) writes:
: Greg Bacon <gbacon@cs.uah.edu> wrote:
:
: > These sorts of problems make me miss C's pointers to char. I wish Perl
: > had an efficient way of stepping a pointer down a string.
:
: #!perl -w
:
: package CharPtr;
[snip]
I said efficient. I can step down a string with substr() all day long,
but that's not very efficient. I can split out each character from a
scalar to an array, but that's not very efficient for large scalars. I
could play unpack() games, but I suspect even that would be expensive
for large scalars.
I reiterate: I wish Perl had an analogue to C's pointers to char.
Greg
--
open(G,"|gzip -dc");$_=<<EOF;s/[0-9a-f]+/print G pack("h*",$&)/eg
f1b88000b620f22320303fa2d2e21584ccbcf29c84d2258084
d2ac158c84c4ece4d22d1000118a8d5491000000
EOF
------------------------------
Date: Mon, 11 May 1998 10:04:26 -0400
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: calculate expressions
Message-Id: <3557056A.FB1761D8@matrox.com>
Ingo Keutgen wrote:
> Hello,
>
> there is perhaps a solution available but I can't find it.
> I need to calculate simple expressions with the basic
> operators like +,-,*,/ and brackets.
> An example could be in the varable $expr stands the expression
> 5*x+(3*(x-5))
> and I know x=5
> so the Programm neds to be able to calculate this expression.
> Has anyone a solution ? I found classes for Java but not for Perl.
> Thanks in advance
> Ingo Keutgen
Hmmmm... not sure where your problem is!
$result = 5 * $x + (3 * ($x - 5));
print "Result is $result\n";
Does that answer your question?
If you mean that $expr is a string that looks like "5*x+(3*(x-5))" ..
then use eval!
Enjoy,
--
Ala Qumsieh | No .. not just another
ASIC Design Engineer | Perl Hacker!!!!!
Matrox Graphics Inc. |
Montreal, Quebec | (Not yet!)
------------------------------
Date: 11 May 1998 11:06:04 -0500
From: Jonathan Feinberg <jdf@pobox.com>
To: fpostma@xs4all.nl (Frans Postma)
Subject: Re: can't goto outside block
Message-Id: <yaw83i8j.fsf@mailhost.panix.com>
fpostma@xs4all.nl (Frans Postma) writes:
> alarm 10; local $SIG{'ALRM'}=sub{goto TO};
> if (connect(S,$paddr)) {
Eeeew. Why not use the method documented in perlfunc as an example
for the alarm() builtin?
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf/
------------------------------
Date: Mon, 11 May 1998 16:12:02 +0100
From: wizard <root@dfki.de>
Subject: chdir-command
Message-Id: <35571537.9B913E85@dfki.de>
Hi, can anybody tell me what's wrong with the following
command in a perl program:
chdir "$newsdir_alt" or die "Can't cd to $newsdir_alt: $!\n";
$newsdir_alt is set correctly (I have its value printed
just before the above command ... ), and if I type
cd <value> on the shell, everything works just fine,
but when I use the above command in my script, it
keeps telling me that the value of $newsdir_alt does
not exist ...
Thanks in advance,
Annette Preissner
noemi@dfki.de
------------------------------
Date: 11 May 1998 11:12:48 -0500
From: Jonathan Feinberg <jdf@pobox.com>
To: wizard <root@dfki.de>
Subject: Re: chdir-command
Message-Id: <vhrc3hxb.fsf@mailhost.panix.com>
wizard <root@dfki.de> writes:
> chdir "$newsdir_alt" or die "Can't cd to $newsdir_alt: $!\n";
First, you shouldn't be using those quotes around $newsdir_alt.
Second, does that variable contain a *relative* path or an *absolute*
path? If it's a relative path, then your assumptions about the
working directory are probably wrong. Hope this helps.
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf/
------------------------------
Date: Mon, 11 May 1998 17:27:29 +0200
From: Eike Grote <eike.grote@theo.phy.uni-bayreuth.de>
Subject: Re: chdir-command
Message-Id: <355718E1.167E@theo.phy.uni-bayreuth.de>
Hi,
wizard wrote:
>
> Hi, can anybody tell me what's wrong with the following
> command in a perl program:
>
> chdir "$newsdir_alt" or die "Can't cd to $newsdir_alt: $!\n";
> $newsdir_alt is set correctly (I have its value printed
> just before the above command ... ), and if I type
> cd <value> on the shell, everything works just fine,
> but when I use the above command in my script, it
> keeps telling me that the value of $newsdir_alt does
> not exist ...
You should check in which directory your script actually
runs. Insert
print `pwd`."\n";
just before your failing chdir. If the mentioned script
is to be run under UNIX check the permissions of the
sub-directory ("Are you allowed to go into the desired
directory?").
Bye, Eike
--
=======================================================================
>>--->> Eike Grote <eike.grote@theo.phy.uni-bayreuth.de> <<---<<
-----------------------------------------------------------------------
Home Page, Address, PGP,...: http://www.phy.uni-bayreuth.de/~btpa25/
-----------------------------------------------------------------------
PGP fingerprint: 1F F4 AB CF 1B 5F 4B 1D 75 A1 F9 C5 7B 3F 37 06
=======================================================================
------------------------------
Date: Mon, 11 May 1998 14:37:40 GMT
From: eryq@zeegee.com
Subject: Re: CPAN & Module gripes (was Re: Ever Wonder...?)
Message-Id: <6j72fk$hvp$1@nnrp1.dejanews.com>
In article <6j1kf0$snn$2@srv38s4u.cas.org>,
lvirden@cas.org wrote:
> According to Tom Christiansen <tchrist@mox.perl.com>:
> :Perhaps we should just install a command called 'cpan'
> :that were actually perl -MSCPAN -eshell.
>
> Actually, I did something like that locally <grin>
> $ cat /usr/local/bin/cpan
> #! /bin/ksh
>
> perl -w -MCPAN -e shell
Me too... heck, doesn't *everyone* do this? :-)
Eryq.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Mon, 11 May 1998 07:45:22 -0700
From: rdm@cfcl.com (Rich Morin)
Subject: Re: Does Perl have a IDE?I don't like command line.
Message-Id: <rdm-1105980745230001@140.174.42.30>
In article <894822208.415652@thrush.omix.com>, Zenin
<zenin@archive.rhps.org> wrote:
> Rich Morin <rdm@cfcl.com> wrote:
> : In contrast, most Mac OS commands are interactive; very few just take a
> : set of directions and run.
>
> You say this like it's a Good Thing[tm].
No, actually, I didn't. I've been using Unix for fifteen years; before
that, I used a raft of command-line systems ranging back to the Wylbur
system (in 1968 or so). I still use Unix on a regular basis. That said,
I stand by my comment. Unix is basically RJE with mudflaps; Mac OS is
highly interactive. Each excels at certain tasks; that's why I use both!
Greg Bacon <gbacon@cs.uah.edu> wrote:
> Using an editor that claims to do syntax highlighting is like riding a
> bicycle with training wheels so rickety they're bound to break at any
> moment. Parsing Perl is no small problem, and any editor that claims to
> do more than a half-ass job is lying.
I can't speak for Alpha, but BBEdit has handled some rather baroque Perl
scripts for me without problems. I'm sure that Perl scripts could be
written to confuse BBEdit (and Tom C. has offered a deliciously yucky
example!), but it seems to handle my scripts quite well.
OTOH, BBEdit's syntax coloring is relatively pedestrian. AFAIK, it
colors only:
0 default text
1 comments
2 language keywords
3 string constants
Giving Tom's example code to BBEdit, BTW, I got:
BEGIN { eval "sub foo ()" }
22222 0 2222 333333333333 0
foo / 3 ; # / ; # This is function foo, divided by 3
000 0 0 0 1 1 1 1 1111 11 11111111 1111 1111111 11 1
The "foo ..." line was colored identically, whether or not the
BEGIN block was included.
Tom, could you explain what all is going on in your example? It looks
to me as if foo in the first case should resolve to a bareword string.
Also, it looks like everything past the first "#" on the foo line is
part of a comment. What am I missing?
In any case, much of the value of syntax coloring comes from finding
"simple" problems such as unmatched quotes. The editor highlights a
huge amount of text as a string, making it quite obvious that there is
a problem (and where it begins). This may be only a "half-ass job"
(it is certainly limited in scope), but it can be VERY useful...
-r
--
Canta Forda Computer Laboratory | Prime Time Freeware - quality
UNIX consulting, training, & writing | freeware at affordable prices
+1 415-873-7841 | +1 408-433-9662 -0727 (Fax)
Rich Morin, rdm@cfcl.com | www.ptf.com, info@ptf.com
------------------------------
Date: 11 May 1998 14:36:43 GMT
From: smcdow@arlut.utexas.edu (Stuart McDow)
Subject: Re: Does Perl have a IDE?I don't like command line.
Message-Id: <6j72dr$6k9$1@ns1.arlut.utexas.edu>
rdm@cfcl.com (Rich Morin) writes:
>
> The typical Unix command (e.g., grep) is run in "batch" (non-
> interactive) mode.
This is a Very Good Thing (TM), IMO.
--
Stuart McDow Applied Research Laboratories
smcdow@arlut.utexas.edu The University of Texas at Austin
"Look for beauty in roughness, unpolishedness"
------------------------------
Date: Mon, 11 May 1998 11:16:12 EDT
From: dblack@saturn.superlink.net (David A. Black)
Subject: Re: Does Perl have a IDE?I don't like command line.
Message-Id: <6j74ns$o5m$1@earth.superlink.net>
Hello -
rdm@cfcl.com (Rich Morin) writes:
>In article <6j388s$let$1@csnews.cs.colorado.edu>, tchrist@mox.perl.com
>(Tom Christiansen) wrote:
>> Yes, Perl has an IDE: it's called Unix.
>Actually, the Unix shell is more of an RJE (Remote Job Entry) system with
>mudflaps. The typical Unix command (e.g., grep) is run in "batch" (non-
>interactive) mode. Only a few commands (e.g., vi) expect user interaction.
>In contrast, most Mac OS commands are interactive; very few just take a
>set of directions and run. I can't speak for Windows (and probably
>should refrain from speaking against it :-).
The 'I' in IDE stands for Integrated, not Interactive. In that sense,
I'd say that Unix is pretty I.
David Black
dblack@saturn.superlink.net
------------------------------
Date: Mon, 11 May 1998 10:03:41 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Ever Wonder Why Not Everyone Uses Modules?
Message-Id: <fl_aggie-1105981003420001@aggie.coaps.fsu.edu>
In article <6iqepc$o71$5@marina.cinenet.net>, cberry@cinenet.net (Craig
Berry) wrote:
+ However, I don't believe that makes CPAN off-limits for criticism. The
+ problems with inadequate module doc, confusing dependencies, and poor
+ correspondence between searchable names and tar-file names mentioned by
+ myself and others are real and can be solved. Doing so would make CPAN a
+ *better* resource.
Ah, congratulations, Craig! Thanks for volunteering to fix these problems!
:) :) :)
James
--
Consulting Minister for Consultants, DNRC
The Bill of Rights is paid in Responsibilities - Jean McGuire
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/CPAN-local/doc/FAQs/cgi/idiots-guide.html>
------------------------------
Date: 11 May 1998 14:32:15 GMT
From: smcdow@arlut.utexas.edu (Stuart McDow)
Subject: Re: Grieving our dying community
Message-Id: <6j725f$5kn$1@ns1.arlut.utexas.edu>
hawk@algonet.se (Hakan Hjelmstrom) writes:
>
> Sure, but simply pointing them at the FAQ doesn't give me the pleasure
> of digging around the docs + doing some experimentation. I'd rather
> try something out, hint at a solution AND point at the FAQ and docs.
This is commendable, to be sure.
> As for the monitoring part, it seems to me that several of the
> natives already are sifting through the majority of posts
I suggest that the level of "monitoring" in clp.misc will fall
considerably once clp.moderated is on line.
--
Stuart McDow Applied Research Laboratories
smcdow@arlut.utexas.edu The University of Texas at Austin
"Look for beauty in roughness, unpolishedness"
------------------------------
Date: Mon, 11 May 1998 15:33:47 +0100
From: "Frank L. Quednau" <quednauf@nortel.co.uk>
Subject: Re: guestbooks or boards scripts for Win NT
Message-Id: <35570C4A.AB73BD31@nortel.co.uk>
> Actually, I am tired of searching on the Internet ...
Yes, I deliberately slightly changed the meaning of your sentence in order to
have a nail for my response: Search the library then :) In 'Learning Perl' (the
Lama book?) I've seen the neatest guestbook script so far.
--
____________________________________________________________
Frank Quednau
http://www.surrey.ac.uk/~me51fq
________________________________________________
------------------------------
Date: Mon, 11 May 1998 15:48:52 GMT
From: Tom Phoenix <rootbeer@teleport.com>
To: Benjamin Holzman <bholzman@mail.earthlink.net>
Subject: Re: how to ignore new line characters in textarea - in forms
Message-Id: <Pine.GSO.3.96.980511084652.21974E-100000@user2.teleport.com>
On Sun, 10 May 1998, Benjamin Holzman wrote:
> my $text = $q->param('text');
> $text =~ s/\n//g;
Of course, this is less than perfect, since it tends to conjoin words at
the end of one line and the start of the next. Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Mon, 11 May 1998 10:10:08 -0400
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: How to truncate a float value?
Message-Id: <355706C0.E97F77CD@matrox.com>
Mike Marziani wrote:
> I thought this sounded like a simple thing to do, but I have read my
> reference and done some net searches but found nothing. I do not want to
> use the format construct if at all possible.
>
> I want to truncate a float after the first decimal place, like so:
>
> 0.123456789 --> 0.1
Hmmm...
I would use a simple trick like:
$my_num = 0.123456789;
$new_num = (int ($my_num * 10))/10;
Of course there might be easier ways .. but this pops to mind.
Enjoy,
--
Ala Qumsieh | No .. not just another
ASIC Design Engineer | Perl Hacker!!!!!
Matrox Graphics Inc. |
Montreal, Quebec | (Not yet!)
------------------------------
Date: 11 May 1998 15:04:13 GMT
From: Art Cohen <upsetter@shore.net>
Subject: Re: MODULE MANIA STRIKES (Was Re: What does this do?)
Message-Id: <6j741d$877@fridge.shore.net>
Tom Phoenix <rootbeer@teleport.com> wrote:
: On Fri, 8 May 1998, Scratchie wrote, referring to CGI.pm:
:> I found a bug in it this week,
: Did you report it to the module's author? And did he confirm that it was a
: bug? (Pardon me if I sound skeptical; most often when a "bug" is reported,
: it's actually normal, documented behavior. But if you have found a true
: bug and reported it to the author, you've done us all a service. Thanks!)
As a matter of fact I did, and Mr. Stein replied that he was putting it in
his queue.
--Art
National Ska/Reggae Calendar: www.ziplink.net/~upsetter/ska/calendar.html
Boston Ska Home Page: www.ziplink.net/~upsetter/ska/index.html
------------------------------
Date: 11 May 1998 15:14:03 GMT
From: Art Cohen <upsetter@shore.net>
Subject: Re: MODULE MANIA STRIKES (Was Re: What does this do?)
Message-Id: <6j74jr$877@fridge.shore.net>
Greg Bacon <gbacon@cs.uah.edu> wrote:
: Art, I can only assume that you haven't seen this wheel misinvented as
: many times as most of us. If the root poster had been a Perl hacker of
: clue, he wouldn't be asking a question that is clearly answered in the
: docs. I stand by my response.
The fact that the original poster was clueless meant (to me) that he might
have a lot of trouble figuring out how to get CGI.pm to work.
: This approach is fundamentally flawed and ignorant. I'll bet you didn't
: know that the CGI module doesn't force OO or references on the programmer.
I know that now, but I didn't know that when I started using CGI.pm.
Practically the first thing the docs mention is creating a CGI object.
I had over a year of Perl experience under my belt when I started learning
to use CGI.pm and I found it fairly tough to get started. I would never
recommend it to a rank newbie.
And besides, given the original poster's question, it seems to me that it
would have made a lot more sense to tell the guy where he could look up
the documentation for the "read" function, rather than just saying "use
CGI.pm, It'll cure all your ills".
--Art
National Ska/Reggae Calendar: www.ziplink.net/~upsetter/ska/calendar.html
Boston Ska Home Page: www.ziplink.net/~upsetter/ska/index.html
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
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.
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 2555
**************************************