[13528] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 938 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 29 02:07:08 1999

Date: Tue, 28 Sep 1999 23:05:16 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <938585116-v9-i938@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Tue, 28 Sep 1999     Volume: 9 Number: 938

Today's topics:
    Re: a question of buttons (Abigail)
    Re: a question of buttons (David H. Adler)
    Re: Absolute or Relative paths? KernelKlink@webtv.net
    Re: Do you now an affordable Perl editor for Windows NT KernelKlink@webtv.net
        embedding java in cgi to preload .wav files sophieloo@my-deja.com
    Re: HTML to ASCII (Abigail)
        Net::NNTP <chirstius@mediaone.net>
        newline problem w/ CGI on NT dolgoldur@my-deja.com
    Re: Perl - SQL examples KernelKlink@webtv.net
    Re: Perl, HTML to Sendmail... (Mark A. Hershberger)
    Re: Please compare and contrast C and Perl. <neil@pacifier.com>
    Re: Please compare and contrast C and Perl. (Abigail)
    Re: Please compare and contrast C and Perl. <neil@pacifier.com>
    Re: Please compare and contrast C and Perl. <uri@sysarch.com>
    Re: Please compare and contrast C and Perl. <neil@pacifier.com>
        Problems compiling perl <anas@erols.com>
    Re: qx// and here doc puzzle <wh9coos@nc.itntl.bhp.com.au>
    Re: Regex == Turing? (was remove the html tag in the fi (Abigail)
        Regex for quotes in text database <kims@emmerce.com.au>
    Re: Regex for quotes in text database (Mark A. Hershberger)
    Re: Regex for quotes in text database (Martien Verbruggen)
    Re: Slice in scalar context <uri@sysarch.com>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: 29 Sep 1999 00:07:30 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: a question of buttons
Message-Id: <slrn7v382v.a6f.abigail@alexandra.delanet.com>

David P. Schwartz (davids@desertigloo.com) wrote on MMCCXIX September
MCMXCIII in <URL:news:37F148E4.418FEE03@desertigloo.com>:
-- > David P. Schwartz (davids@desertigloo.com) wrote on MMCCXVIII September
-- > MCMXCIII in <URL:news:37EF34E2.9448A457@desertigloo.com>:
-- > == Abigail wrote:
-- > ==
-- > == > That's not a Perl question, is it?
-- > == >
-- > <snip>
-- >
-- > You don't know, but I do. I told you it isn't a Perl question. Why don't
-- > you take your more-than-80 char lines and just bugger off?
--
--    "That's not a Perl question, is it?" is a question, not a statement.  I an

It's a rethorical question. But I guess that concept was wasted.

--                               The purpose of these newsgroups is to get quest
-- answered, get some guidance or directions for further inquiry.

The purpose of the group is to discuss _Perl_ issues. Buttons aren't Perl
issues.

-- re: "more-than-80 char lines":  You have a choice of whether to have the brow
-- auto-line-wrapping for you.

Browser? Browser? Usenet predates the concept of a "browser" by more than
a dozen years. It's fine to read Usenet with a browser. It's fine to post
to Usenet with a browser. But Usenet has always been a plain text medium,
and will always be one. With an 80 character standard. No reformatting of
articles is acceptable.

--           Personally, I choose to let the computer manage tedious stuff like
-- worrying about line lengths.  That's why browsers have settings on them.

Then tell your computer to format your message to use 75 character lines.
But I guess that would be too much to ask.

-- You've wasted three messages now NOT ANSWERING MY QUESTION, or providing any 
-- guidance or direction.

I told you *repeatedly* that it wasn't a Perl question. And you still 
linger around here. Makes one wonder about your reading skills.




Abigail
-- 
perl -wlne '}for($.){print' file  # Count the number of lines.


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: 29 Sep 1999 05:37:13 GMT
From: dha@panix7.panix.com (David H. Adler)
Subject: Re: a question of buttons
Message-Id: <slrn7v39c9.e8v.dha@panix7.panix.com>

In article <37F148E4.418FEE03@desertigloo.com>, David P. Schwartz wrote:
>Most of the posts I've seen from you while skimming through here are basically
>telling people to "go away".  The purpose of these newsgroups is to get questions
>answered, get some guidance or directions for further inquiry.

Herein lies the problem.  That is *NOT* the purpose of "these
newsgroups" (certainly not *this* newsgroup).  You might want to do
some reading in news.announce.newusers if you actually believe that.

There was a time when people on usenet had some concept of usenet.  *sigh*

>WHY ARE YOU WASTING EVERYBODY'S TIME HERE WITH YOUR INCONSIDERATE, EGOTISTICAL BS?

Why are you wasting everybody's time here with several responses to
someone who is rather well respected around here who has informed you
that you are off-topic?  Abigail has demonstrated more times than most
that she has a clue (not to mention the 'enigmatic' thing... :-) - you
would do well to pay attention to what she has to say, even if you're
not crazy about her tone.

going off mumbling about 'these kids today with their short hair,
alternative music and lousy usenet manners...

dha

-- 
David H. Adler - <dha@panix.com> - http://www.panix.com/~dha/
Chemistry is easy.  It's just like witchcraft, but with less newt.
	- Willow


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

Date: Tue, 28 Sep 1999 23:04:04 -0400 (EDT)
From: KernelKlink@webtv.net
Subject: Re: Absolute or Relative paths?
Message-Id: <15475-37F181A4-4@newsd-212.iap.bryant.webtv.net>

garry_stewart@veritasdgc.com 
wrote:
==================================
I have checked the FAQ's for answers to this question, but I was unable
to find any answers. 
In the process of developing our Web Site, previous developers have
created several perl scripts that have hard-coded paths inside of them.
==================================
[snip]

For CGI path support documentation try:
http://www.hiway.com

You might find more help in a CGI newsgroup even though your question
may seem to be a Perl related question. comp.lang.perl.misc tends to be
a "How to use Perl if the Common Gateway Interface is not involved"
newsgroup.



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

Date: Tue, 28 Sep 1999 23:51:23 -0400 (EDT)
From: KernelKlink@webtv.net
Subject: Re: Do you now an affordable Perl editor for Windows NT
Message-Id: <15473-37F18CBB-17@newsd-212.iap.bryant.webtv.net>

http://www.perl.com has your answer. While you are there, you'll be
surprised at how many other answers you'll find to questions that you
would otherwise have in the future.



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

Date: Wed, 29 Sep 1999 03:51:20 GMT
From: sophieloo@my-deja.com
Subject: embedding java in cgi to preload .wav files
Message-Id: <7ss2bl$aek$1@nnrp1.deja.com>

I am a beginning programmer... I am looking for a way to preload
small .wav files onto a webpage. I have been told that there is a java
function which will do this. I have been reading through the perlxstut
man page to try to understand how java can be embedded in perl. Anyone
ever do this? Any help appreciated.
elaine


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


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

Date: 29 Sep 1999 00:09:07 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: HTML to ASCII
Message-Id: <slrn7v3861.a6f.abigail@alexandra.delanet.com>

David H. Adler (dha@panix7.panix.com) wrote on MMCCXIX September MCMXCIII
in <URL:news:slrn7v2ke0.9c5.dha@panix7.panix.com>:
^^ In article <7sl4cr$cuq$1@gellyfish.btinternet.com>, Jonathan Stowe wrote:
^^ >In comp.lang.perl.misc Abigail <abigail@delanet.com> wrote:
^^ >> 
^^ >> Let's shoot people who don't RTFDTD.
^^ >> 
^^ >
^^ >Thats a *little* harsh wouldnt you say ?  I would suggest flogging
^^ >it least it gives them an opportunity to recant.
^^ 
^^ No one said anything about shooting them *fatally*...

Yeah.... just the knee caps will be fine....




Abigail
-- 
package Just_another_Perl_Hacker; sub print {($_=$_[0])=~ s/_/ /g;
                                      print } sub __PACKAGE__ { &
                                      print (     __PACKAGE__)} &
                                                  __PACKAGE__
                                            (                )


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: Tue, 28 Sep 1999 22:21:14 -0500
From: "Chuck Hirstius" <chirstius@mediaone.net>
Subject: Net::NNTP
Message-Id: <THfI3.18284$s%1.71117171@rmnws01.ce.mediaone.net>

Can anyone post an example of what needs to be in the array passed to the
post() function of NNTP?

Everything works for me but that one function, and it retuns no error text,
it just dies "$!" is empty.  Thanks.

Chuck




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

Date: Wed, 29 Sep 1999 03:04:20 GMT
From: dolgoldur@my-deja.com
Subject: newline problem w/ CGI on NT
Message-Id: <7srvje$8g9$1@nnrp1.deja.com>

Hi,

I'm trying to have a cgi script read a gif file under NT and have it
"echoed" back to the browser. Replacement of the \r\n with \n does not
seem to work appropriately for all gifs.

Any help or advice would be appreciated.

Manny.


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


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

Date: Tue, 28 Sep 1999 23:30:46 -0400 (EDT)
From: KernelKlink@webtv.net
Subject: Re: Perl - SQL examples
Message-Id: <15475-37F187E6-6@newsd-212.iap.bryant.webtv.net>

http://www.perl.com/reference/query.cgi?database



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

Date: 28 Sep 1999 22:25:41 -0500
From: mah@everybody.org (Mark A. Hershberger)
Subject: Re: Perl, HTML to Sendmail...
Message-Id: <49hfke9z62.fsf@playpen.baileylink.net>

[mailed and posted]

"Myriad" <myriad@erols.com> writes:

> Hello, I'm looking for info on how to recode my Perl script to send HTML
> enabled mail via Sendmail.  Can anyone help?

(Strange, I had a user ask me the same question today.  Perhaps you
are one and the same.)

Find the MIME-tools package on CPAN (or, if you need a URL:
http://www.cpan.org/modules/by-module/MIME) and install it.  In the
tar package, look at examples/mimesend for an example of how to send
html mail.

Also, please give users the option to get plain text email instead of
HTML mail.  HTML mail can be annoying.

Hope that helps,

Mark.


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

Date: 28 Sep 1999 21:51:13 PST
From: Neil <neil@pacifier.com>
Subject: Re: Please compare and contrast C and Perl.
Message-Id: <37f19ac1.0@news.pacifier.com>


> Perl is a four letter word!

And C is a one letter letter.


> That's about the only difference. C was not written by Larry Wall.

I think that a comparison between C and Perl had the potential to be
a very interesting discussion. 

Neil


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

Date: 29 Sep 1999 00:21:25 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Please compare and contrast C and Perl.
Message-Id: <slrn7v38t3.a6f.abigail@alexandra.delanet.com>

Neil (neil@pacifier.com) wrote on MMCCXX September MCMXCIII in
<URL:news:37f19ac1.0@news.pacifier.com>:
!! 
!! > That's about the only difference. C was not written by Larry Wall.
!! 
!! I think that a comparison between C and Perl had the potential to be
!! a very interesting discussion. 


Really? The differences are obvious for those who know C and Perl.



Abigail
-- 
perl -we 'print q{print q{print q{print q{print q{print q{print q{print q{print 
               qq{Just Another Perl Hacker\n}}}}}}}}}'    |\
perl -w | perl -w | perl -w | perl -w | perl -w | perl -w | perl -w | perl -w


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: 28 Sep 1999 22:28:51 PST
From: Neil <neil@pacifier.com>
Subject: Re: Please compare and contrast C and Perl.
Message-Id: <37f1a393.0@news.pacifier.com>

David Wozmak <dwozmak@rational.com> wrote:

> 1) C is a full-featured language in which it is very easy to hang one's
> self.
> 1a) Perl is a full-featured language in which it is very easy to hang
> one's self.

Though I suspect that it is easier to hang one's self in C.

> 2) C Can either be written in an object-oriented style, or not.
> 2a) Perl can either be written in an object-oriented style, or not.

Interesting. I assume by that you mean that you can write Perl in an
object oriented style just as you can write object oriented programs
in C++.

> 3) A runnable C program is a compiled binary executable.
> 3a) A runnable Perl program is {$_="an interpreted command list";}

So a Perl program is like a shell script, in that a Perl program is
comprised of a series of of utilities that are called during the
execution of the program?

> Does that help? 

Yes

Neil


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

Date: 29 Sep 1999 01:54:09 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Please compare and contrast C and Perl.
Message-Id: <x7905qxny6.fsf@home.sysarch.com>

>>>>> "N" == Neil  <neil@pacifier.com> writes:

  >> 3) A runnable C program is a compiled binary executable.
  >> 3a) A runnable Perl program is {$_="an interpreted command list";}

  N> So a Perl program is like a shell script, in that a Perl program is
  N> comprised of a series of of utilities that are called during the
  N> execution of the program?

  >> Does that help? 

  N> Yes

too bad, since your statement above is wrong. perl is nothing like shell
scripts and nothing like c but it inherits ideas from both of them (as
well as many other languages and systems including awk, sed, lisp and
good ol' unix). you are not going to get a good comparison of perl vs. c
since that is not a good question. a better one would be "is this
project (fill in the project) better done in perl or c (or some other
luser language). 

and comparing computer languages usually requires knowledge of more than
just two and a decent background in computer science. a poor analogy
would be to compare a cadillac to a minivan. they both are cars and can
transport people but they are otherwise very different and have
different goals.

uri

-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
uri@sysarch.com  ---------------------------  Perl, Internet, UNIX Consulting
Have Perl, Will Travel  -----------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


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

Date: 28 Sep 1999 22:58:09 PST
From: Neil <neil@pacifier.com>
Subject: Re: Please compare and contrast C and Perl.
Message-Id: <37f1aa71.0@news.pacifier.com>

> Really? The differences are obvious for those who know C and Perl.

When you or someone else solves a problem for someone in this group 
the solution is often obvious to you but not the original poster. That
something is obvious to you doesn't prevent you from posting about
it. In this case, my question isn't a problem as in help, help I can't
figure out how to do * but instead it is just an interest in learning
more about Perl and C.

I would hope that a group such as this would be interested in general 
discussions initiated by beginners who are genuinely interested in
learning more about Perl, and not just on solving specific programming
problems. If the C and Perl comparison discussion is trivial, it is through 
my inexperience with both that I didn't realize it was trivial.

I hope I don't get plonked for this.

Neil


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

Date: Wed, 29 Sep 1999 00:10:39 -0400
From: "Anas Mughal" <anas@erols.com>
Subject: Problems compiling perl
Message-Id: <7ss3ji$ejd$1@autumn.news.rcn.net>

Hi,

When I try compiling a simple Perl script, I get the error that it fails to
find 0.pm.
Would someone have an idea?
I have gotten that error on Linux and Solaris. However, it seems to work
fine on Win98.
I really need to compile on Linux. Any help would be greatly appreciated.

Please note that I need to use CGI.pm and SMTP.pm in my module.

Thank you for your help.

Anas Mughal.




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

Date: 29 Sep 1999 14:30:50 +1000
From: Cooper Stuart SC <wh9coos@nc.itntl.bhp.com.au>
Subject: Re: qx// and here doc puzzle
Message-Id: <kgspuz2pcec.fsf@nc.itntl.bhp.com.au>

gyepi@magnetic.praxis-sw.com (Gyepi SAM) writes:

> In cooking up a response to a posting, I discovered that the qx// operator
> does not work with here documents. Example code follows.

> 	#!/usr/bin/perl -w

> 	$|++; #we want results to show up in correct order
$|=1; # less confusing.

> 	#this works as expected.
> 	$retval=<<`EOC`;

NB `EOC` is part of the << syntax, this does not execute EOC in a subshell.

> 	date
> EOC

yes- this is the right way to do it.

> 	$retval=qx(<<EOC);
> 	echo unreachable code
> EOC;

> 	print $retval;

qx() does execute something in a subshell.

> Am I missing something or is perl?

You're missing something I'm afraid. Here's what:

Consider this 4 line program:
$retval=<<`date`;
echo hello
date
print "$retval\n";

The backquotes around date are part of the << here syntax; they are not an 
sh call.
`date` != qx/date/ in this case, because the `` are part of the syntax.

Stuart Cooper
wh9coos@itntl.bhp.com.au


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

Date: 29 Sep 1999 00:57:24 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Regex == Turing? (was remove the html tag in the file)
Message-Id: <slrn7v3b0i.a6f.abigail@alexandra.delanet.com>

Randal L. Schwartz (merlyn@stonehenge.com) wrote on MMCCXX September
MCMXCIII in <URL:news:m1ln9qbi52.fsf@halfdome.holdit.com>:
{} 
{} 
{} But Perl regex have *MORE* than backreferences... they have *code*.


Which of course is cheating. ;-) 

   /(?{  ... code to emulate Turing machine ... })/;

That's like saying Perl has a buildin way of printing a directory listing,
and then using:

   system "ls";

Heck, you can make any language Turing complete that way, by just
implementing one function: exec.


Abigail
-- 
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: Wed, 29 Sep 1999 14:34:56 +1000
From: "Kim Saunders" <kims@emmerce.com.au>
Subject: Regex for quotes in text database
Message-Id: <938579711.779677@draal.apex.net.au>

Hello,

Would someone be so kind as to help me out with a regex to strip *unwanted*
(as opposed to all) double-quotes (") from a string. They are always at the
start and end of the string.

Pls consider the following strings for examples

Before                    After
Hello!                        Hello! (no change)
"Hello!"                    Hello! (quotes dropped)
"13""                        13" (outside quotes dropped)

Thankyou...

KimS



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

Date: 29 Sep 1999 00:01:03 -0500
From: mah@everybody.org (Mark A. Hershberger)
Subject: Re: Regex for quotes in text database
Message-Id: <49aeq6cnw0.fsf@playpen.baileylink.net>

"Kim Saunders" <kims@emmerce.com.au> writes:
> Would someone be so kind as to help me out with a regex to strip *unwanted*
> (as opposed to all) double-quotes (") from a string. They are always at the
> start and end of the string.
> 
> Pls consider the following strings for examples

Please read the perlre manpage or try "perldoc perlre"

> Before                    After
> Hello!                        Hello! (no change)
> "Hello!"                    Hello! (quotes dropped)
> "13""                        13" (outside quotes dropped)

s/^"?(.*)"?$/$1/;

Hope that helps,

Mark.


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

Date: Wed, 29 Sep 1999 05:09:28 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Regex for quotes in text database
Message-Id: <cahI3.170$f11.6383@nsw.nnrp.telstra.net>

On Wed, 29 Sep 1999 14:34:56 +1000,
    Kim Saunders <kims@emmerce.com.au> wrote:

> Would someone be so kind as to help me out with a regex to strip *unwanted*
> (as opposed to all) double-quotes (") from a string. They are always at the
> start and end of the string.

This translates to : I want to remove any pair of double quotes from a
string, _if_ one half of the pair appears at the start and the other
at the end, right? You do not want to get rid of possible single ones?

#!/usr/local/bin/perl -wl

use strict;

while(<DATA>)
{
    chomp;
    s/^"(.*)"$/$1/;
    print
}

__DATA__
Hello!
"Hello!"
"13""
13"
"13
""
""""
Jim said: 'Harry told me: "This works!"'"

OUTPUT:
Hello!
Hello!
13"
13"
"13

""
Jim said: 'Harry told me: "This works!"'


Please read the perlre documentation

# perldoc perlre

Martien
-- 
Martien Verbruggen                  | My friend has a baby. I'm writing down
Interactive Media Division          | all the noises the baby makes so later
Commercial Dynamics Pty. Ltd.       | I can ask him what he meant - Steven
NSW, Australia                      | Wright


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

Date: 28 Sep 1999 23:36:21 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Slice in scalar context
Message-Id: <x7n1u6xubu.fsf@home.sysarch.com>

>>>>> "GB" == Greg Bacon <gbacon@ruby.itsc.uah.edu> writes:

  GB> In article <x7g0zzzris.fsf@home.sysarch.com>,
  GB> 	Uri Guttman <uri@sysarch.com> writes:

  GB> : >>>>> "GB" == Greg Bacon <gbacon@ruby.itsc.uah.edu> writes:
  GB> : 
  GB> :   GB> Can you prove that?  Keep in mind that so called constant lists do
  GB> :   GB> change over the lifetime of a program.
  GB> : 
  GB> : what does that mean? it is a constant list (1, 2, 3). so how can it
  GB> : change in the lifetime of the program?

  GB> Ummm... it's actually rather easy to do.

care to show some code? a true constant list that changes later. sounds
like we have a failure to communicate. how can a constant list change?

  GB> Even if we ignore side effects, there are times when the literal list
  GB> and, hence, the number of items in the literal list might change.
  GB> This makes what you call "a waste of code" useful.

not during the run of a program. that is all i am claiming. so
calculating the size of the constant list at run time doesn't gian you
anything. remember, the list is also not being assigned so you are
getting the size of something you don't ever have access to again. so
what use is the size?

  GB> :                          a constant list is just that. no side effects,
  GB> : no changing during the lifetime of the program.

  GB> Wanna bet?  Put your money where your mouth is.  Let's make a
  GB> gentleman's wager.

i wager one gentleman or 5k quatloos. show me a constant list in perl
which is not assigned to anything and which changes later in the code. 

  GB> : what does that have to do with a constant list? my point is they can
  GB> : change it all they want but just counting it (with no side effects) is a
  GB> : waste as the list is not being used for anything else.

  GB> That doesn't necessarily make it a waste.

it is a waste if you throw away information like the constant list just
to get its size.

  GB> There may exist some circumstance in which we're only interested in
  GB> the number of items.

but what about the items themselves? if all you want is the number, just
hardwire that value. why count a list you throw away?

  GB> Quit being obtuse.

not obtuse, just staying in perl. c has no relevancy here. 

  GB> You're being obtuse again.  C's arrays are of fixed size.  Perl's
  GB> lists are of fixed size.  It's possible to write code in both
  GB> languages such that one has to change one or two lines of code.
  GB> Which is more desirable?

but you assign the list in c. the code example in the original post DID
NOT ASSIGN the list. that is the critical point. it was thrown away. so
counting it is a waste of having the list.

  GB> Am I to understand then that you're calling an entire syntax family
  GB> useless on the basis that you consider a subset of its applications to
  GB> be useless?  That sort of attitude is what people sometimes call small
  GB> minded.

i never said lists are useless. read my keystrokes: counting a constant
list which is not assigned and which has no side effects is a waste of
code as you could just replace that with a hardwired size value.

  GB> This is Perl.  Who are you to dictate style to me?

nothing to do with style or my dictation. it is just wasted code given
the criteria i set forth. you seem to be working in a larger domain than
the posited problem. lists are fine in perl. constant lists are fine in
perl. counting constant lists (with those restrictions) makes no sense.

  GB> You misspelled `nonorthogonal'.  Orthogonality is considered mostly
  GB> irrelevant when it comes to arguing about Perl.

nothing to do with orthogonality. perl will do it if you tell it to do
it. but you are wasting perl cycles doing it.

greg, i can't argue withyou anymore. you are not grasping the restricted
domain of my argument. 

uri


-- 
Uri Guttman  -----------------  SYStems ARCHitecture and Software Engineering
uri@sysarch.com  ---------------------------  Perl, Internet, UNIX Consulting
Have Perl, Will Travel  -----------------------------  http://www.sysarch.com
The Best Search Engine on the Net -------------  http://www.northernlight.com


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

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


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