[8271] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1888 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Feb 13 13:09:02 1998

Date: Fri, 13 Feb 98 10:00:30 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Fri, 13 Feb 1998     Volume: 8 Number: 1888

Today's topics:
    Re: A Pubilc Apology. (Sitaram Chamarty)
        Building Perl on Solaris - I am *not* using GNU ls and  <chris@ixlabs.com>
    Re: combine lines(swap 2)for novice user <"John Porter <jdporter"@min.net>>
        Constants in Perl? <jgoerzen@southwind.net>
    Re: Constants in Perl? (Mike Stok)
    Re: dbm files (Carol Lynn Smith)
    Re: Elements in a hash <SNIPhsommer@micro.ti.comSNIP>
    Re: FAQless Forays (was: Code Example Needed) (Chip Salzenberg)
    Re: FAQless Forays (was: Code Example Needed) (Chip Salzenberg)
    Re: FAQless Forays (was: Code Example Needed) (Chip Salzenberg)
    Re: FAQless Forays (was: Code Example Needed) (Chip Salzenberg)
    Re: FAQless Forgays (Chip Salzenberg)
    Re: How the Hell do I...? (Andrew M. Langmead)
    Re: Killfile Triage <spt@cstr.ed.ac.uk>
    Re: Learning Perl <jason@primal.ucdavis.edu>
    Re: Location: returns empty document? <SNIPhsommer@micro.ti.comSNIP>
    Re: MS Visual Perl (A Satire!) <ptimmins@netserv.unmc.edu>
    Re: MS Visual Perl (A Satire!) (Chris Adams)
        Newbie Regexp question! (KMartino1)
    Re: on reading FAQs and gurus answering questions <camerond@mail.uca.edu>
    Re: on reading FAQs and gurus answering questions (I R A Aggie)
    Re: on reading FAQs and gurus answering questions <mike@ns.minivend.com>
    Re: on reading FAQs and gurus answering questions <dfan@harmonixmusic.com>
    Re: on reading FAQs and gurus answering questions <doug@tc.net>
        opening files in subroutine <xkn14@dial.pipex.com>
    Re: perl -e in Win95? (Andrew M. Langmead)
    Re: Perl Compilers (Clay Irving)
        portable gettimeofday or similar (NT AND UNIX) Frederic.Garzon@sycomore.fr
        Question concerning backreferences (StarScream)
        Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: 13 Feb 1998 16:14:19 GMT
From: sitaram@diac.com (Sitaram Chamarty)
Subject: Re: A Pubilc Apology.
Message-Id: <slrn6e8rha.gro.sitaram@ltusitaram.diac.com>

On Fri, 13 Feb 1998 02:24:47 -0500, Larry D'Anna <ldanna@hotmail.com> wrote:
>I wish all of the morons saying "Tom is a rude elitist ass hole"
                                                ^^^^^^^
>would see the light like that. :-)

I'm not sure if I was included in your list of morons, but I did
use the word "elitist" to Tom, so I'd like to clarify things a
bit.

I only responded to a post about munging FROM addresses.  That's
the only one I do not agree with him on - for reasons stated in
that post, which I will not repeat.  That whole post was *only*
about that and nothing else.

The word "elitist" was only with respect to the fact that not
everyone *can* have as effective sp am filters as he does.  (I
can, and do.  I wasn't even speaking for myself there...)

ON *ALL* OTHER ISSUES (FAQs being asked for the nth time, CGI
questions being asked here, bad subject lines, etc.), I agree
wholeheartedly with Tom and indeed my sympathies are with him and
Randal and the other gurus in this respect.

Sitaram
-------
wondering how many "gurus" kf'd him because of that post <sigh>

PS:

FWIW... I believe I post answers (simple ones anyway) to this NG
too.  And the last time I *asked* a question on clpm was Oct 23rd!
And of course I have a llama, 2 camels, and a panther at home - a
veritable zoo :-)


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

Date: Fri, 13 Feb 1998 09:28:51 -0800
From: Chris Schoenfeld <chris@ixlabs.com>
Subject: Building Perl on Solaris - I am *not* using GNU ls and as!!!!
Message-Id: <34E482D3.CC0EBD4D@ixlabs.com>

I'm building Perl 5.004_03 on a Sparc Solaris box - having lots of
trouble though....

gcc 2.7.2 is in /usr/local/bin/gcc
as, ld are in /usr/ccs/bin

All of these binaries are found in these location first in my PATH as
confirmed by which(1).

I've compiled a "hello, world" with gcc so I know that at least pretends
to work...

But Configure keeps complaining that I am not using /usr/ccs/as & ld,
and that these are the GNU versions which won't work....

I know these aren't the GNU versions because they don't accept --version
as a command line parm (as the GNU versions on my Linux box do).

And if I ignore this warning, Configure will give me a whoa! and tell me
my compiler isn't working...

What am I doing wrong? I've never had this much trouble building on
Sparc Solaris.

-Chris

PS I tried patchlvel 04 as well.


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

Date: Fri, 13 Feb 1998 10:49:54 -0500
From: John Porter <"John Porter <jdporter"@min.net>>
Subject: Re: combine lines(swap 2)for novice user
Message-Id: <6c1q5k$b8s$1@out2.nntp.min.net>

We on this newsgroup have a general policy of not doing people's
homework for them.

John Porter


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

Date: 13 Feb 1998 10:03:46 -0600
From: John Goerzen <jgoerzen@southwind.net>
Subject: Constants in Perl?
Message-Id: <r6z90rfa3vh.fsf@peridot.southwind.net>

Hi,

Simple question (I hope).  How to I get a "constant" in Perl?  Eg, the 
equivolent of the following C code:

const int x = 10;

Thanks,
John

-- 
John Goerzen                              Southwind Internet Access, Inc.
E-mail: Business, jgoerzen@southwind.net; Personal, jgoerzen@complete.org
Computer Science Dept., Wichita State University,    jgoerzen@cs.twsu.edu
Developer, Debian GNU/Linux                       <http://www.debian.org>


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

Date: 13 Feb 1998 16:56:19 GMT
From: mike@stok.co.uk (Mike Stok)
Subject: Re: Constants in Perl?
Message-Id: <6c1tvj$5bp@news-central.tiac.net>

In article <r6z90rfa3vh.fsf@peridot.southwind.net>,
John Goerzen  <jgoerzen@southwind.net> wrote:
>Hi,
>
>Simple question (I hope).  How to I get a "constant" in Perl?  Eg, the 
>equivolent of the following C code:
>
>const int x = 10;

With recent perl distributions there's a constant module so you can say

  use constant x => 10;

and use x (no $) in your code.  The perldoc documentation includes this:

           use constant PI             => 4 * atan2 1, 1;

       [...]

       These constants do not directly interpolate into double-
       quotish strings, although you may do so indirectly. (See
       the perlref manpage for details about how this works.)

           print "The value of PI is @{[ PI ]}.\n";

If you have an older perl 5 then you can use this trick to make a
read-only scalar:

  DB<1> *x = \10

  DB<2> print $x
10
  DB<3> $x = 3
Modification of a read-only value attempted at (eval 8) line 2, <IN> chunk
3.

but the a recent release with the constant module is my route of choice.

Hope this helps,

Mike

-- 
mike@stok.co.uk                    |           The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/       |   PGP fingerprint FE 56 4D 7D 42 1A 4A 9C
http://www.tiac.net/users/stok/    |                   65 F3 3F 1D 27 22 B7 41
stok@colltech.com                  |            Collective Technologies (work)


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

Date: Fri, 13 Feb 1998 15:47:34 GMT
From: carols@sabre.com (Carol Lynn Smith)
Subject: Re: dbm files
Message-Id: <34e46ad6.3311753@news.amrcorp.com>

On Mon, 2 Feb 1998 22:39:13 +0100, "Vladimir Kerkhoff"
<vladimir.kerkhoff@--pins.nl--> wrote:

Thanks a million!  Your recommendation is just what I was looking for.
Sorry if it took me so long to respond with gratitude!
>
>Carol Lynn Smith heeft geschreven in bericht
><34d617a7.961543@news.amrcorp.com>...
>>Hi,
>>I have a two-fold question regarding dbmfiles  that I am using to
>>store employee information:
>>1.  Is there a size restriction on either the .dir or .pag files?  I
>>am storing key/value pairs and I can't create my 29th one.
>>2.  How do I sort by value?  FYI, my key is a record number I assign,
>>but I would like to sort by last name, which makes up part of the
>>value (in essence, I have a value that might look like this -
>>Smith:Carol:46762:1-8765:13L81:etc.).
>
>Try this:
>
>        dbmopen(%db1,$filename,0755);
>        foreach $key (sort bylastname (keys %db1)) {
>          $val = $db1{$key};
>          @names = split(/$delim/,$val);
>
>          print "$names{0}\n";
>        }
>        dbmclose(db1);
>
>sub bygroup {
>   $sys_temp=$db1{$a};
>   @rec1 = split($delim,$sys_temp);
>   $sys_temp=$db1{$b};
>   @rec2 = split($delim,$sys_temp);
>   $bygroup = $rec1[0] cmp $rec2[0];
>}
>
>It works fine with my databases!
>
>
>
>>Thanks in advance.
>>Carol
>
>
>Vladimir Kerkhoff
>
>



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

Date: Fri, 13 Feb 1998 10:08:01 -0600
From: Holly Sommer <SNIPhsommer@micro.ti.comSNIP>
Subject: Re: Elements in a hash
Message-Id: <34E46FE0.6EE7C83E@micro.ti.comSNIP>

Russ Allbery wrote:

: That's because you have a typo.  If you'd run your script under -w, it
: would have warned you about that.  Hope this helps!

Most definitely.

Many thanks to those who have replied in private and on the group. And,
my condolences to David Alan Black, who seems to have gotten sucked
into the black hole of Curious As To How I Can Do This Better ;)

-Holly


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

Date: Fri, 13 Feb 1998 16:56:36 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: FAQless Forays (was: Code Example Needed)
Message-Id: <6c1u2s$mci$1@cyprus.atlantic.net>

According to bart.mediamind@tornado.be (Bart Lateur):
>Actually I was thinking of the "White hats and black" (about Netscape's
>release of the source code) and the Y2K problem articles. Both a very
>good read, but not specifically Perl related.

Well, were I moderator, I might have allowed it -- or at least an
article pointing to the URL -- because Perl advocacy among suits is
key to Perl's future.
-- 
Chip Salzenberg                - a.k.a. -                <chip@pobox.com>
      "Hoist the failure sails, men!  We're goin' home!"  // MST3K
           ->  Ask me about Perl training and consulting  <-
     Like Perl?  Want to help out?  The Perl Institute: www.perl.org


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

Date: Fri, 13 Feb 1998 17:04:03 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: FAQless Forays (was: Code Example Needed)
Message-Id: <6c1uhi$mdr$1@cyprus.atlantic.net>

According to mystra@torilmud.com (Eileen Kortright):
>You can hide in your moderated newsgroup, but evenutally you will be
>assimulated.

Self-protection is not necessarily hiding.  It can also be the first
step toward agressive action.  Or do you call it "hiding" when you
wear shoes so the sharp rocks don't cut your feet?

Moderation.  The time has come.
-- 
Chip Salzenberg                - a.k.a. -                <chip@pobox.com>
      "Hoist the failure sails, men!  We're goin' home!"  // MST3K
           ->  Ask me about Perl training and consulting  <-
     Like Perl?  Want to help out?  The Perl Institute: www.perl.org


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

Date: Fri, 13 Feb 1998 17:05:22 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: FAQless Forays (was: Code Example Needed)
Message-Id: <6c1uk3$mec$1@cyprus.atlantic.net>

According to rjk@coos.dartmouth.edu:
>                PC     non-PC
>good post       ??      ??
>bad post       Many     Few
>
>Your conclusion, that in general posts from PCs should be killfiled, does
>not necessarily follow.

It follows *if* you have limited time.  I do.  Don't you?
-- 
Chip Salzenberg                - a.k.a. -                <chip@pobox.com>
      "Hoist the failure sails, men!  We're goin' home!"  // MST3K
           ->  Ask me about Perl training and consulting  <-
     Like Perl?  Want to help out?  The Perl Institute: www.perl.org


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

Date: Fri, 13 Feb 1998 17:07:01 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: FAQless Forays (was: Code Example Needed)
Message-Id: <6c1un5$met$1@cyprus.atlantic.net>

According to bart.mediamind@tornado.be (Bart Lateur):
>? the platypus {aka David Formosa} <dformosa@st.nepean.uws.edu.au>
>wrote:
>>If it has more then one user then it is not a PC.
>
>How do you manage with the keyboard then? <GRIN>

The single-user thing is a red herring.

Windows engenders unnoticed ignorance.
MacOS engenders aggressive ignorance.
Most of the rest is just fine.
-- 
Chip Salzenberg                - a.k.a. -                <chip@pobox.com>
      "Hoist the failure sails, men!  We're goin' home!"  // MST3K
           ->  Ask me about Perl training and consulting  <-
     Like Perl?  Want to help out?  The Perl Institute: www.perl.org


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

Date: Fri, 13 Feb 1998 17:10:24 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: FAQless Forgays
Message-Id: <6c1uth$mfv$1@cyprus.atlantic.net>

According to Russ Allbery <rra@stanford.edu>:
>I think people who use Usenet had better start getting used to the idea
>that good posters are not necessarily a renewable resource ...

>>quotes

Where is Linus Torvalds?  Where is Larry Wall?  They're gone, because
Usenet is too much of a time waster.  I'm seldom here (though when I'm
here people notice :-)), for the same reason.

A moderated newsgroup, I would read regularly.  Even Larry might.
-- 
Chip Salzenberg                - a.k.a. -                <chip@pobox.com>
      "Hoist the failure sails, men!  We're goin' home!"  // MST3K
           ->  Ask me about Perl training and consulting  <-
     Like Perl?  Want to help out?  The Perl Institute: www.perl.org


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

Date: Fri, 13 Feb 1998 16:39:27 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: How the Hell do I...?
Message-Id: <EoBsxs.BEs@world.std.com>

dave.power@adpdesign.com (Dave Power) writes:

[This article was both posted publically to comp.lang.perl.misc and
mailed privately to the author of the referenced article.]

>Before posting my question, which I admitted was embarrassing, I spent
>two weeks and $150 reading books - none of which gave me the answer.

Dave, 

I'm sorry that you spent so much time, money, and effort to get an
answer to your question. I wonder if there is a way you could get the
same repsonse with less effort next time? If not, I wonder at least if
there is anything we can do to help others from your experience.

To help yourself get a better response next time. Here are some ideas.

You might want to spend a little more effort in making your subject
line inform people about your request. Instead of "Subject: How the
Hell do I...?" how about "Subject: Deleting a File." For a two week
search, maybe you could spend another two minutes trying come up with
a concise description of your problem.

My guess is that $150 dollars in books accounts for three to five
different titles. Did you find anything at all close to what you
wanted? Anything about files at all? If you describe where you have
looked so far, it diffuses a lot of flames. Even if you are off the
mark, it at least shows that you made an effort, and where your search
has gone wrong. "In the book "Plumbing Perl in 21 Days", I see entries
on how to open and close files. It says nothing about how to delete
them. I did see the function named "delete", but it doesn't seem to do
what I want."

And now in the catagory of helping others.  Now that you know how to
delete a file, can you see where the books that you purchased are
misleading in how to delete files. Is the index incomplete in any
regard?  I know most of the books that I've purchased recently have
e-mail addresses for both the publisher and the author. Maybe now that
you have the solution, you can spend a couple of minutes to describe
to them the shortcomings of the book. Hopefully these shortcomings can
be addressed in later printings of the book and others won't have to
go through the same experience.
-- 
Andrew Langmead


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

Date: 13 Feb 1998 17:03:11 +0000
From: Richard Caley <spt@cstr.ed.ac.uk>
Subject: Re: Killfile Triage
Message-Id: <eyhk9aztp2o.fsf@liddell.cstr.ed.ac.uk>

In article <6bnv7o$n1g$1@csnews.cs.colorado.edu>, Tom Christiansen (tc) writes:

tc> /spam/h:j

So, people who put requests not to be spammed in their headers should
be killed but people like me who have applied some spamproofing should
not. I'm not clear on the logic here.

-- 
Mail me as rjc not spt@cstr.ed.ac.uk		_O_
						 |<



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

Date: Fri, 13 Feb 1998 09:29:19 -0800
From: Jason Christian <jason@primal.ucdavis.edu>
Subject: Re: Learning Perl
Message-Id: <Pine.OSF.3.95.980213092318.10711B-100000@primal.ucdavis.edu>

On 13 Feb 1998, Eric D. Friedman wrote:

> open WORDLIST, "<wordlist" || die "Can't open wordlist: $!";
                  ^
(1)               ^-- Why this?  Isn't it implied?  

(2) and do "<" and ">" have cool vernacular names in redirection
contexts, like "funnel from/to" rather than "less/greater than"? If the
parenthetical question is an annoying *nix faq feel free to either
ignore me or flame me to a cinder.)
		  

---------------------------------------------------------------------------
Jason Christian                          University of California, Davis 
jason@primal.ucdavis.edu                  Agricultural and Resource Economics
Office:(530)752-1357 FAX:(530)752-5614   Davis, CA 95616



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

Date: Fri, 13 Feb 1998 09:52:12 -0600
From: Holly Sommer <SNIPhsommer@micro.ti.comSNIP>
Subject: Re: Location: returns empty document?
Message-Id: <34E46C2C.437E6322@micro.ti.comSNIP>

P. Schmitz wrote:

: print "Location: www.yahoo.com\n\n";

Because you need to give the location as a complete URL, with the
http:// and all.

: doesn't redirect my browser to Yahoo!, but instead gives a 'Document
: contains no data' message? The same thing in a C++ CGI-bin works
: perfectly. Returning HTML works perfectly. But for some reason,
: redirects like the above don't work from perl scripts...

Have you looked at the C++ sources? I bet the line with the location
is sprintf( "Location: http://www.yahoo.com\n\n" );

Anyhow, this is a question which really relates to web servers, although
perhaps you didn't know that. When using any HTTP headers in code, be
sure that you have formed them correctly.

Also, comp.lang.perl is no more :)

In the future, be sure it is a perl question you are asking, and if it's
not, then post to the "correct" newsgroups 
(like, comp.infosystems.www.authoring.cgi, in this case)

-Holly


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

Date: Fri, 13 Feb 1998 10:58:28 -0600
From: Patrick Timmins <ptimmins@netserv.unmc.edu>
Subject: Re: MS Visual Perl (A Satire!)
Message-Id: <34E47BB4.3956@netserv.unmc.edu>

John Steele wrote:
 
> Actually, the real name is MS Visual PP ...

or how about MS Visual Hump++ 

--
Patrick Timmins
U. Nebraska Medical Center


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

Date: 13 Feb 1998 17:27:58 GMT
From: cadams@ro.com (Chris Adams)
Subject: Re: MS Visual Perl (A Satire!)
Message-Id: <6c1vqu$36o$1@news.ro.com>

According to Martin Vorlaender <MARTIN@RADIOGAGA.HARZ.DE>:
>Stuart Bullock (stuart_bullock@bigfoot.com) wrote:
>:      Microstuff Announce MS Visual Perl 2.0 - A Satire
>:      =================================================
>
>P.S.: The official product name of course is MS Visual P++  :-)

That would then be MS Visual PPP, or just PPP (to be confused with the
Point-to-Point Protocol PPP).  Didn't you see that last week, Bill Gates
invented DNS, the Digital Nervous System?  I think there must be a
division at Microsoft that looks up acronyms in common use and thinks up
new things for them to stand for.
-- 
Chris Adams - cadams@ro.com
System Administrator - Renaissance Internet Services
I don't speak for anybody but myself - that's enough trouble.


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

Date: 13 Feb 1998 16:34:23 GMT
From: kmartino1@aol.com (KMartino1)
Subject: Newbie Regexp question!
Message-Id: <19980213163400.LAA03435@ladder03.news.aol.com>

Hi,
I need to replace null chars (ASCII=0) in a string with spaces and can't quite
figure out how to do it. I believe I need to use a regexp, but I can't figure
out the syntax to find a null and do the replace.  I've been able to use regexp
to do all sorts of cool replaces....but nulls elude me.  If someone could help
out a newbie... I'd appreciate it.
BTW I'm using Gurusamy Sarathy's binary version of Perl for Win32 
version 5.004_04.
Thanks in advance!
- Karl
kmartino@bellatlantic.net


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

Date: Fri, 13 Feb 1998 10:20:21 -0600
From: Cameron Dorey <camerond@mail.uca.edu>
To: Randal Schwartz <merlyn@stonehenge.com>
Subject: Re: on reading FAQs and gurus answering questions
Message-Id: <34E472C5.E354051A@mail.uca.edu>

Randal Schwartz wrote:
> 
> I used to answer about 5 to 30 messages a day in clpm.  If you've
> noticed, I don't any more.
> 
[detailed listing of his *accurate, if not optimistic* assessment of the
NG snipped, but it _does_ only add up to 90%, where's the other 10% ;^)]
> 
> I don't know how to get people to understand that turning clpm into a
> help desk has killed it.  I don't know why non-programmers write me
> questions in email about how to "configure a script".  I just don't
> know.
> 

If I might make a suggestion to the "powers that be," who administer
this NG, maybe it might cut down a little on the nuisance posts.

At the end of each message to comp.infosystems.www.authoring.cgi, there
is a little disclaimer message. I have no idea how that is done
(actually, I have some idea, but it is rudimentary). Perhaps a sentence
or two at the end of every post here can be set, directing new readers
to Nathan's NG FAQ, particularly if it could be archived at perl.com or
another suitable place. Nathan's FAQ, even though it is posted 2x week,
gets drowned in the noise just like every other useful post.

I don't expect this in my wildest dreams to solve the problem, but maybe
it would cut it down somewhat and we could get back to the interesting
issues, like uses of old punchcards (was one of the perennial Y2K
threads, but has mutated for the better, IMHO).

Cameron


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

Date: Fri, 13 Feb 1998 11:31:16 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: on reading FAQs and gurus answering questions
Message-Id: <fl_aggie-1302981131160001@aggie.coaps.fsu.edu>

In article <adelton.887382273@aisa.fi.muni.cz>, adelton@fi.muni.cz (Honza
Pazdziora) wrote:

+ fl_aggie@thepentagon.com (I R A Aggie) writes:
+ 
+ > + Those of us who want a community migrate to mailing lists or moderated
+ > + newsgroups, it seems.
+ > 
+ > A pity. I really don't like moderated newsgroups...
+ 
+ Why?

Its sort of a 'Usenet Cultural' background problem. I supose for a
_technical_ oriented group, moderation isn't so bad. Perhaps a sort
of robo-moderation like in the c.*.cgi newsgroup.

My first exposure to moderation was soc.feminism, which probably wasn't
a good first exposure...and I've had a tainted view of moderation since.

[good points]
+ That's why I would really prefer moderated newsgroup. I'm not familiar
+ with the process of creating and running such a thing but am ready to
+ offer any help I can.

>From what I understand, changing a charter from unmoderated to moderated
is a bear. Sign me up under "any help I can" list.

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: 13 Feb 1998 16:47:21 GMT
From: Mike Heins <mike@ns.minivend.com>
Subject: Re: on reading FAQs and gurus answering questions
Message-Id: <6c1tep$oao$1@ocoee.iac.net>

I R A Aggie <fl_aggie@thepentagon.com> wrote:
> In article <6bvta0$9g1@fridge.shore.net>, nvp@shore.net (Nathan V.
> Patwardhan) wrote:

> + Again, I'll ask you, when's the last time that you've seen Larry
> + around these parts?

> Ummm...Never? I don't think clp.misc existed when I last saw a live
> posting from Larry.

It did, but it's been a couple of years. The last time I saw an lwall
post here was about Aug-Sep '95, but by then it was pretty uncommon. I would
frequently see him in comp.lang.perl -- was it about the time 5.001m was
put out (early '95) that it split?

I believe he stopped reading much here by the end of '95. Much of
the discussion that used to go on here has moved to perl-porters.

-- 
Regards,
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
If you like what you're gettin',    131 Willow Lane, Floor 2  | ||  _ \
keep doin' what you're doin'.       Oxford, OH  45056         | || |_) |
 -- Hector                          <mikeh@minivend.com>     |___|  _ <
                                    513.523.7621 FAX 7501        |_| \_\


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

Date: 13 Feb 1998 11:44:19 -0500
From: Dan Schmidt <dfan@harmonixmusic.com>
Subject: Re: on reading FAQs and gurus answering questions
Message-Id: <wksopnpi8s.fsf@turangalila.harmonixmusic.com>

Randal Schwartz <merlyn@stonehenge.com> writes:

| It's my impression that this group is populated with:
| 
| 	20% FAQs
| 	20% answers to above telling them to read the FAQ/manual/etc
| 	20% stuff that should have been asked in ciwa.cgi or ciwa.html
| 	20% answers to above telling them to go to ciwac or ciwah
| 	10% *interesting stuff* -- well formed questions that aren't FAQs
| 
| I'm sorry.  I don't get enough time to clearly locate that last 10%.

When I post to c.l.p.m, I usually spend a lot of time on the Subject
line, since a lot of people (including me) will make their decision
about whether to read a post based only on that.  So I try to make it
concise but informative, and generally just as "professional" as
possible.  Hopefully it works somewhat.

I agree, by the way, that a moderated group is a good idea.
comp.lang.c++.moderated seems to work well.

-- 
                 Dan Schmidt -> dfan@harmonixmusic.com, dfan@alum.mit.edu
Honest Bob & the                http://www2.thecia.net/users/dfan/
Factory-to-Dealer Incentives -> http://www2.thecia.net/users/dfan/hbob/
          Gamelan Galak Tika -> http://web.mit.edu/galak-tika/www/


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

Date: 13 Feb 1998 11:58:28 -0500
From: Douglas McNaught <doug@tc.net>
Subject: Re: on reading FAQs and gurus answering questions
Message-Id: <m2btwbbfwr.fsf@ono.tc.net>

fl_aggie@thepentagon.com (I R A Aggie) writes:

> From what I understand, changing a charter from unmoderated to moderated
> is a bear. Sign me up under "any help I can" list.

It would probably be easier to create comp.lang.perl.moderated and
leave this group extant.  A similar thing was done in the sci.physics
hierarchy (adding sci.physics.research as a moderated group) and it
seems to have worked out fairly well.

-Doug
-- 
sub g{my$i=index$t,$_[0];($i%5,int$i/5)}sub h{substr$t,5*$_[1]+$_[0],1}sub n{(
$_[0]+4)%5}$t='encryptabdfghjklmoqsuvwxz';$c='fxmdwbcmagnyubnyquohyhny';while(
$c=~s/(.)(.)//){($w,$x)=g$1;($y,$z)=g$2;$w==$y&&($p.=h($w,n$x).h($y,n$z))or$x==
$z&&($p.=h(n$w,$x).h(n$y,$z))or($p.=h($y,$x).h($w,$z))}$p=~y/x/ /;print$p,"\n";


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

Date: 13 Feb 1998 16:03:00 GMT
From: "Jon Marshall" <xkn14@dial.pipex.com>
Subject: opening files in subroutine
Message-Id: <01bd3897$b1b83ae0$316845c2@xkn14>

could someone please tell me how to open the second file ( $groupd )
once the subroutine has finished with the first or should i just make
two calls to the routine one for the first file and one for the second. In
addition is there an easy way to tell if any of the groups
in @addgrps were not found in either file - i could delete them if 
found with an associative array - how do i pass this to a subroutine.

any advice would be very much appreciated 

jon marshall

#!/usr/bin/perl
#

$groupf = "group";
$groupd = "group.dataserv";

sub updategrp {
              local($newuser,$groupf,$groupd,@addgrps) = @_;
              open(GRP, "$groupf");   
              open(GP, ">>${groupf}.bak");
              while (<GRP>) {
                 foreach $addgp ( @addgrps ) {
                    if ( /^$addgp:.*:$/ ) {
                       s/(.*)/$1$newuser/;
                    } elsif ( /^$addgp:.*[^:]$/ ) {
                       s/(.*)/$1,$newuser/; 
                    }
                 }
                 print GP;
              }
              close(GP);
              close(GRP);
}



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

Date: Fri, 13 Feb 1998 17:35:03 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: perl -e in Win95?
Message-Id: <EoBvIG.74v@world.std.com>

lethr@dont.spam.the.net (lethr) writes:

>Does anyone know if the perl -e (not working) is being addressed/resolved?
>Is there an alternate?  Here's what I get:

>C:\perl.scripts>perl -e 'print "Hello\n;"'
>Can't find string terminator "'" anywhere before EOF at -e line 1.

Since the quoting mechinisms for COMMAND.COM are different than for
the common unix shells, you can't write one liners the same
way. Notice, this is a COMMAND.COM limitation and there is nothing
that perl can do. The command line is already garbled and can not be
recreated. Basically, COMMAND.COM does not allow single quotes to join
multiple words together as a single argument, so perl sees 'print as
the -e script, and Hello\n;' as the first argument.

The solution is to write your "-e" script fragments in a way that that
is proper for the command line interpreter you are using. The perlrun
man page shows how to to do this for various non-unix ports of perl.

One suggestion not mentioned in perlrun, but one that I find useful is
to use the alternate quoting operators in the perl scripts, so that
you can leave COMMAND.COM's notion of quoting alone. I'm talking about
perl's ability to use things like qq#string# or qq(string) for a
double quoted string. See the perlop man page for details.

C:\TMP>perl -e "for (@ARGV) { print qq($_\n)}"  'print "Hello\n;"'
'print
Hello\n;'


-- 
Andrew Langmead


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

Date: 13 Feb 1998 11:19:30 -0500
From: clay@panix.com (Clay Irving)
Subject: Re: Perl Compilers
Message-Id: <6c1rqi$jgi@panix.com>

In <6c1l7i$c8f$1@Usenet.Logical.NET> "Vince M." <vince@oxxfordinfo.com> writes:

>This may be a naive question -- does anyone know if a true compiled version
>of Perl exists? I have a need for speed...

Please don't waste our time witha question that has been asked a bazillion
times before. For example, go to Deja News <http://www.dejanews.com> and 
enter:

  Perl compiler

In the quick search box. I got 1185 matches back.

Please do a little research before you post a stupid question. It took me 
15 seconds to search Deja News...

-- 
Clay Irving <clay@panix.com>                  I think, therefore I am. I think? 
http://www.panix.com/~clay/


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

Date: Fri, 13 Feb 1998 09:51:30 -0600
From: Frederic.Garzon@sycomore.fr
Subject: portable gettimeofday or similar (NT AND UNIX)
Message-Id: <887384946.393740289@dejanews.com>

Hi,

I have to write a cross-OS benchmark perl script, with a resolution
of some milli-secs. I saw Time::Hires on CPAN but it is not usable
on NT :
Did any code some kind of similar module, available for both NT and
Unix ?

TIA

FG

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet


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

Date: 13 Feb 1998 12:23:00 -0500
From: hallm4@cortez.sss.rpi.edu (StarScream)
Subject: Question concerning backreferences
Message-Id: <6c1vhk$1enu@cortez.sss.rpi.edu>

I was writing a small program today, and I was doing a bit
of regexp'ing. Rather than deal with defining another
variable, I decided to try to modify $1 directly, since it
was holding the data I was looking for. Perl dies out,
complaining about trying to modify a read-only variable.

"Read Only?" I say, and open my camel book. Yup, sure enough,
under its definition, they are read only. Browsing through
the FAQ, I didn't notice anything concerning this topic, so
I decided to risk the killfile and ask this question: Why?

Probably for a good reason, but since I'm in a curious mood,
could someone give a -v answer?

(Tom, please don't *plonk* me! I use a real OS and a real
newsreader! *chuckle*)

Thanks.
-- 
Become an arms trafficker! -export-a-crypto-system-sig -RSA-3-lines-PERL
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)


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

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

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