[8363] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1980 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Feb 26 12:14:13 1998

Date: Thu, 26 Feb 98 09:00:27 -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           Thu, 26 Feb 1998     Volume: 8 Number: 1980

Today's topics:
    Re: @array troubles <tchrist@mox.perl.com>
        [QUES} Perl Win95 <rschafe@nbnet.nb.ca>
    Re: better way to do this? <tchrist@mox.perl.com>
    Re: better way to do this? <tchrist@mox.perl.com>
    Re: Changing From address in Mail <tchrist@mox.perl.com>
        Converting a Perl4 script to Perl5 <hsmith@frontiernet.net>
    Re: extract part of a string <tchrist@mox.perl.com>
    Re: Hand over regexp to a subroutine <tchrist@mox.perl.com>
        Help : Embedded Perl and Debugging <psirr@advancedsw.com>
        Installing Problem? <mhlee@mbone1.kreonet.re.kr>
    Re: Killfile Triage <*@qz.little-neck.ny.us>
    Re: Lexical scoping of variables <tchrist@mox.perl.com>
    Re: Lexical scoping of variables <doug@tc.net>
        Newbie Q: How does TIE work?? <pbelair@geocities.com>
    Re: Newbie Question: df in a perl script <jefpin@bergen.org>
    Re: Newbie Question: df in a perl script <dnoll@execpc.com>
    Re: not require drive letter in NT Registry <jwilson@ic.ac.uk>
    Re: Off-topic (Sorry, but I need your help) <bcoleman@mindspring.com>
    Re: order of a character (Clinton Pierce)
        Questiion on record size limit (Hugh Appet)
    Re: Questiion on record size limit <tchrist@mox.perl.com>
    Re: Regex substitutions <joneil@cks.ssd.k12.wa.us>
        Regional PUGs <hsommer@micro.ti.com>
    Re: some thoughts on RTFM/FAQ/newbies/moderated <james-detg.smith@ubs.com>
    Re: Splitting on 2 line feeds? <tchrist@mox.perl.com>
    Re: splitting with a '\' (backlash) <tchrist@mox.perl.com>
        system(command) = fork + exec(command)? kill parent, ch (Michael Wang)
    Re: using a Module <tchrist@mox.perl.com>
        Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: 26 Feb 1998 16:25:05 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: @array troubles
Message-Id: <6d4511$srp$1@csnews.cs.colorado.edu>

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

In comp.lang.perl.misc, Mukund Rao <mrao@trincoll.edu>:
:I would like to extract just the 1st word or just the 2nd word, and am
:trying to do so via this method:
:
:@array = $ITEM;
:print $array[1];   # which should print out "there".

Didn't I just answer that this?  It is explained in the split() entry
in the perlfunc manpage, or in the m// examples in perlop, 
or in perlre general pattern-matching instruct.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com

    X-Windows: You'll envy the dead.
	--Jamie Zawinski


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

Date: Thu, 26 Feb 1998 11:06:16 -0500
From: rschafe <rschafe@nbnet.nb.ca>
Subject: [QUES} Perl Win95
Message-Id: <34F592F8.15F2@nbnet.nb.ca>

Does anyone out there have any experience with using perl in a 
Windows 95 environment. Everything in the script and html code
seem right, but for some reason when the Netscape browser runs
the cgi file it finds the .cgi file but will not execute the 
Perl script in there. Yet running the perl script through DOS
shell and the script works fine. :(

It is as if it cannot find the perl.exe. My question is has anyone
else run into this problem and do you not of any bug that might
be causing this (wetware or software related)?

I am currently using a copy of PERL5 from the SAMS "Learn Perl
for Windows NT" book.

Thanks in advance.

SC


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

Date: 26 Feb 1998 16:06:30 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: better way to do this?
Message-Id: <6d43u6$qpa$2@csnews.cs.colorado.edu>

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

In comp.lang.perl.misc, uri@sysarch.com writes:
:mocat@spamtrap.best.com (jay) writes:
:use \s* since there could be more than 1 whitespace

No, use \s+.   I get tired of people getting false positives
on phone-number detection who look for /\d*-\d*/ and 
find that Tim Berners-Lee is a phone number.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com


    "Don't let it get to you.  Shout happens." --Larry Wall


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

Date: 26 Feb 1998 16:09:08 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: better way to do this?
Message-Id: <6d4434$qpa$3@csnews.cs.colorado.edu>

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

In comp.lang.perl.misc, cberry@cinenet.net (Craig Berry) writes:
:Might suggest \s* rather than \s? -- can be any number of spaces before 

While this is ok for someone who was using ? for 0 or 1 before,
in general, be very careful of *.  It's often wrong.  If you have a
parent-child retreat, and parents may bring any number of children,
someone who shows up with no kids will not be well-looked upon.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com

    ""Lurking" is one metaphor that the Omniscience has allowed us to borrow."
    	--Larry Wall


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

Date: 26 Feb 1998 15:51:38 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Changing From address in Mail
Message-Id: <6d432a$qs0$1@csnews.cs.colorado.edu>

In comp.lang.perl.misc, some annoying person who screwed up his address
writes:

:I am limited to using cgi-lib.pl on my server as the sysop won't
:install cgi.pm.  Therefore I am using cgi-lib.pl.

I'm arfaid that old perl4 stuff isn't supported.  You can install CGI.pm
eyourself, you know.  *AND IT'S STANDARD*, which means you already
have it, or else you don't have a current Perl, in which case you are
again without support.  Upgrade or die.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com
> (It's sorta like sed, but not.  It's sorta like awk, but not.  etc.)
  Guilty as charged.  Perl is happily ugly, and happily derivative.
		--Larry Wall in <1992Aug26.184221.29627@netlabs.com>


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

Date: 26 Feb 1998 15:58:42 GMT
From: Chris Smith <hsmith@frontiernet.net>
Subject: Converting a Perl4 script to Perl5
Message-Id: <34F5BBBD.5010@frontiernet.net>

I am trying to clean up an old script written in Perl4, and convert it
to Perl5. For instance, the first few lines are:

  push(@INC,'/usr/local/lib/perl5');
  require "/usr/local/lib/perl5/cgi-lib.pl";

Question 1: Is there any benefit (speed of execution) to changing this
to "use CGI.pm;"?
Question 2: Are there any pitfalls I should be aware of?
Question 3: It uses &ReadParse(*input) to gather data submitted from an
HTML form.  Will I have to basically re-write the entire script to
conform to CGI.pm?

Thanks for any help!

Christopher Smith
chriss%total_information@mcimail.com
Total Information, Inc.


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

Date: 26 Feb 1998 16:18:41 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: extract part of a string
Message-Id: <6d44l1$qpa$7@csnews.cs.colorado.edu>

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

In comp.lang.perl.misc, eichner@gmx.de (eichner) writes:
:the following string is given:
:$data = "data1 data2 data3";
:How can I access one part of this string? For example I need the part
:"data2" from the string above.

Have you read about the split function in the perlfunc manpage? 
How about the perlre manpage?

:Are there any stringcopy routines?

Of course not.  Well, not beyond assignment.

I suggest reading the perldata and related manpages, and
looking through existing scrips for examples.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com

sv_magic(sv, Nullsv, 'B', Nullch, 0);     /* deep magic */
    --Larry Wall, from util.c in the v5.0 perl distribution


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

Date: 26 Feb 1998 16:22:16 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Hand over regexp to a subroutine
Message-Id: <6d44ro$qpa$8@csnews.cs.colorado.edu>

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

In comp.lang.perl.misc, "Rene G. Eberhard" <rene.eberhard@r3.ch> writes:
:I wanted to know how I can handover a regexp to a subroutine.

Is there something about the answer given in perlfaq7 that
isn't to your liking?

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com


    "Even egotists are allowed to have opinions." --Larry Wall


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

Date: Thu, 26 Feb 1998 08:26:25 -0700
From: Pat Sirr <psirr@advancedsw.com>
Subject: Help : Embedded Perl and Debugging
Message-Id: <34F589A1.E6D7E44@advancedsw.com>

We've got a perl interface to our C++ program.  The problem is that we
cannot step into the perl code and interactively debug.  We've had to
resort to using 'print' to figure out where any errors in our perl
script might be.  Has anyone found a way to interactively debug a perl
script from a C++ debugger?  We're running on Solaris, SGI, HP and NT so

if anyone has any clues on any of these platforms I'd greatly appreciate

it.

Patrick Sirr
psirr@advancedsw.com
psirr@msn.com



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

Date: Thu, 26 Feb 1998 00:10:05 +0900
From: manhee lee <mhlee@mbone1.kreonet.re.kr>
Subject: Installing Problem?
Message-Id: <34F4344D.A5A3A132@mbone1.kreonet.re.kr>

Hello,

Does anyone know why I would be getting two 'FAILED' messages when
running 'make
test' for a perl 5.003 installation on a Solaris 2.5 machine?
There is no error in ./configure and make.
but in 'make test', there are following 2 failed test.
op/rand......FAILED on test 2
lib/safe.......FAILED on test 0
I am using gcc-2.7.2.3 compiler.

Thanks in advance,
manhee





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

Date: 26 Feb 1998 15:26:15 GMT
From: Eli the Bearded <*@qz.little-neck.ny.us>
Subject: Re: Killfile Triage
Message-Id: <eli$9802261011@qz.little-neck.ny.us>

peter caffin <nospam_synic@omen.net.au> wrote:
> Eli the Bearded <*@qz.to> did cunningly address to news.software.readers..
> :If I send you mail, and it bounces, chances are very good that I will
> :never even read the bounce to see who's mail it was, let alone resend.
> Whereas if I receive a bounce message, I read it to find out:
>   (a) Who didn't get my email,
>   (b) Why they didn't get my email (system down? misspelled domain?),
>   (c) What I need to do to get the message through.

Very time consuming. Do you get paid to do this?

> :It is not my responsibility to prove to you my mail is not spam.
> It is if you want it read ;-). I mean, really..

Not. A. Fucking. Chance. If I go to the work to send you email and
you have deliberately configured things to frustrate me then you have
just pissed me off and I don't evenwant to know about it. I kind of
like helping people, if you make me jump through hoops it is no fun
at all.

> Why bother going to the effort
> of writing email if you can't be bothered making sure it gets there?

Good faith effort to tell people trying to post to the group I moderate
why I am rejecting their posts? (Eg. no uuencoded posts.) Simple question
I can answer but is not topical in the newsgroup I saw it? (Eg. MIME
questions in comp.editors.) Simple question I can answer that is a tedious
FAQ in the group I saw it? (Eg. Checking for valid email addresses in
comp.lang.perl.misc.) Good faith effort to answer some question on the
procmail list? (People there seem to be intoxicated with the powers of
that filtering program.)

Recently I have been getting five to ten bounces a week on twenty to
fifty pieces of email a week, mostly (I suspect) post rejections.

Elijah
------
whose qz.to machine is down this week


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

Date: 26 Feb 1998 16:17:17 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Lexical scoping of variables
Message-Id: <6d44id$qpa$6@csnews.cs.colorado.edu>

In comp.lang.perl.misc, 
    Frank@but_dont_use_this.address writes:
:Hello!
:
:I just fall into some state of not understanding. I tried to access a
:lexical scoped variable from an outer routine:
:  my($privat);
 ...
:print $my_sub::privat;

Lexical variables are not in packages.  You don't get
more explanation so long as you have a screwed up address.

I'm glad this won't be allowed in the moderated group.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com

    Some are born to perl, some achieve perl, and some have perl
    thrust upon them.  


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

Date: 26 Feb 1998 11:20:55 -0500
From: Douglas McNaught <doug@tc.net>
Subject: Re: Lexical scoping of variables
Message-Id: <m21zwqpcbc.fsf@ono.tc.net>

Frank@but_dont_use_this.address writes:

> I just fall into some state of not understanding. I tried to access a
> lexical scoped variable from an outer routine:
> 
> #!/bin/perl -w
> use strict;
> sub my_sub(){
>   my($privat);
>   $privat='hello';	
> }
> print $my_sub::privat;
        ^^^^^^^^^^^^^^^

This is meaningless.  Lexical variables are not in any package, and
subroutines do not define their own packages.


> Now my problem of understanding:
> 
> #!/bin/perl -w
> use strict;
> my($secret_var);
> 
> $secret_var=' HUPS ??';
> &do_ls();
> 
> sub do_ls(){
>     print '$secret_var', $secret_var,"\n";
> 
> }
> 
> results in: $secret_var HUPS ??
> 
> I thought up to now, that there is a magical master subroutine(perhaps
> called main), which gets started, when I execute my perl script. In
> this master subroutine I call &do_ls(); There seems to be an exception
> for the lexical scoping, so that I can access the $secret_var in a
> called subroutine. Why? And which keyword describes this exception, so
>  that I can find this in the documentation?

The thing you're missing is that lexical variables are visible in the
block where they're declared and *in all blocks nested within it*; ie
nested blocks 'inherit' lexical variables from the blocks that enclose
them.  Once you realize this the code above makes perfect sense.
Whether a subroutine can see a lexical depends on where the sub's
definition is, not where it's called from.  Clear?

-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: Thu, 26 Feb 1998 15:18:07 GMT
From: "Pat" <pbelair@geocities.com>
Subject: Newbie Q: How does TIE work??
Message-Id: <PIfJ.3$wu2.164091@carnaval.risq.qc.ca>

I'm trying to associate (tie) a hash table with a new file and I don't seem
to
grasp something:
- How do you do it ??

Is there a usable example anywhere?








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

Date: Thu, 26 Feb 1998 11:07:29 -0500
From: "I have a life, and I can prove it!" <jefpin@bergen.org>
To: Mark <mc-witt@students.uiuc.edu>
Subject: Re: Newbie Question: df in a perl script
Message-Id: <Pine.SGI.3.95.980226110505.10503A-100000@vangogh.bergen.org>

>Is there anyway to similulate or pass a df -k command in a perl script?
>Specifically, I need to find the percent of capacity occupied on the disk.
>I've tried to use stat but it isn't supplying the info I need.

you can get the output from practically any system command this way:
@output = print `SYSTEMCOMMAND`;

Therefore, you could try @df = print `df`;

--
| I am returning this otherwise good typing paper to you because
| someone has printed gibberish all over it and put your name at the
| top.

    Jeff Pinyan | http://users.bergen.org/~jefpin | jefpin@bergen.org
             techmaster@bergen.org | techmaster@mindless.com
                qw[jeff] on #perl,#javascript,#cgi on IRC

 &jp('"($``','','$)EDF8```','$*52J4```','$+E1G4```','#J``@','#2__`');sub
jp{for$w(@_){$c=unpack('B48',unpack('u',$w));$c=~tr/10/# /;print "$c\n"}}



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

Date: Thu, 26 Feb 1998 10:45:46 -0600
From: Dale Noll <dnoll@execpc.com>
Subject: Re: Newbie Question: df in a perl script
Message-Id: <6d466v$fms@newsops.execpc.com>




> Is there anyway to similulate or pass a df -k command in a perl script?
> Specifically, I need to find the percent of capacity occupied on the disk.
> I've tried to use stat but it isn't supplying the info I need.
>



Here is part of a script that I wrote.  Works on Perl 5 running DG/UX.
This script (basicly) reformats the output of df -k and sorts and totals the
columns.
The code may not be a Perl wizards dream, but I just got here myself.

open(DF, "df -k|");     # run the command DF and get the output
# read the first line, this is the title line
$title = <DF>;

# now read the read the rest
@drives = <DF>;

If you want the whole script, let me know.

Dale


dnoll@execpc.com







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

Date: 26 Feb 1998 15:16:21 GMT
From: "Jeff Wilson" <jwilson@ic.ac.uk>
Subject: Re: not require drive letter in NT Registry
Message-Id: <01bd42c9$7dd87780$d53ec69b@leicester>

Is it not possible to use the UNC name? I use it for remote files within
scripts on WinNT, i.e., $file="\\\\server\\share\\directory\\file";
-- 

                                Jeff Wilson
                                London - UK

Bruce Wheeler <nospambruce_wheeler@hp.com.nospam> wrote in article
<34F3679C.3A2@hp.com.nospam>...
> We have a share that contains perl and the libraries for NT. 
> However, not everyone uses the same drive letter for this share.
> I would like to be able to access perl and the libraries by
> executing from this share, unfortunately perl dies with
> 
> Can't locate Exporter.pm in @INC at s.pm line 3.
> BEGIN failed--compilation aborted at cs1.ps line 1
> 
> if I remove the drive letter with regedit from 
> PRIVLIB:REG_SZ:E:\perl\lib
> 
> Any suggestions? Thanks.
> 


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

Date: Thu, 26 Feb 98 11:26:36 +0400
From: "Ben Coleman" <bcoleman@mindspring.com>
Subject: Re: Off-topic (Sorry, but I need your help)
Message-Id: <sjsgkqlqjpycsbg.pminews@user-37kbob2.dialup.mindspring.com>

On Sun, 22 Feb 1998 04:45:11 GMT, Allie wrote:

>I know this off-topic and I apologize, but I've been
>really impressed with the knowledge and helpfulness of
>the people in this NG and I thought you might be able
>to help.

Far be it from me to doubt that you've actually read much in this
newsgroup....

>I'm new to the networking department in our company. My
>first project is to put together a packet for a
>prospective client running Groupwise who is interested
>in the benefits of Exchange.

But where did you get the idea that this group is a good place to
find people who'll help you market a Microsoft product?  (You
certainly haven't been reading Tom's posts)

Ben
-- 
Ben Coleman NJ8J                     | The attempt to legislatively
Internet: bcoleman@mindspring.com    | micromanage equality results, at
http://bcoleman.home.mindspring.com/ | best, in equal misery for all.





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

Date: 26 Feb 1998 14:32:31 GMT
From: cpierce1@cp500.fsic.ford.com (Clinton Pierce)
To: eichner@gmx.de (eichner)
Subject: Re: order of a character
Message-Id: <6d3udv$kbe1@eccws1.dearborn.ford.com>

In article <34f65a77.11697239@news.uni-augsburg.de>,
	eichner@gmx.de (eichner) writes:
>I have a string that look like that (with the print command):
>
>data1 data2   data3
>
>It looks like there is a space between data1, data2 and data3. But
>there are'n any spaces between it. The split command doesn't split the
>string between the spaces if I search for spaces. ( split(/ /,....) )
>
>Now I want to know what character is really between data1, data2 and
>data3.

Do you need to find out what's in between just for curiosities sake?
Put the output into a file and type:

	cat -v file

This will display all control-characters in octal so they stand out.
It may not really be spaces there.  Might be control-w's or some such
nonsense.  If you need to split, rather that splitting on explicit 
spaces, try splitting on Whitespace.  There's a special perl Regular
Expression metacharacter for matching whitespace, and is quite portable:

	split(/\s/, $stuff)

This will split on a single whitespace.  To split on multiples, use /\s+/.

PS:
   If you don't have cat, here's a nickle kid, get yourself a real 
   Operating System.

-- 
+------------------------------------------------------------------------+
|  Clinton A. Pierce    |   "If you rush a Miracle Man,   | http://www.  |
|  cpierce1@ford.com    |     you get rotten miracles"    | dcicorp.com/ |
| fubar@ameritech.net   |--Miracle Max, The Princess Bride| ~clintp      |
+------------------------------------------------------------------------+
GCSd-s+:+a-C++UALIS++++P+++L++E---t++X+b+++DI++++G++e+>++h----r+++y+++>y*



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

Date: Thu, 26 Feb 1998 15:00:36 GMT
From: hobson@interport.net (Hugh Appet)
Subject: Questiion on record size limit
Message-Id: <34f581db.1776965@news.interport.net>

I have a flat file database which is accessed from a search form via a
perl script. I was wondering if there is a built in limit in perl on
the size of the records. If so, where could I get info on how to
divide the records? Would I have to go to a relational database to
handle large records. 

The database is basically an address database but includes html links
if they exist. It includes multiple cities and zip codes for some
records.  I would also like to be able to include a multiline
description field of matches to the query. Thanks for any advice.

Hugh Appet 
----------------
hobson[at]interport[dot]net    No junk email please!
For your flower needs          http://www.he.net/~floradex
For New York Flowers           http://www.he.ner/~surr
----------------


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

Date: 26 Feb 1998 16:26:24 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Questiion on record size limit
Message-Id: <6d453g$srp$2@csnews.cs.colorado.edu>

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

In comp.lang.perl.misc, hobson@interport.net (Hugh Appet) writes:
:I was wondering if there is a built in limit in perl on
:the size of the records. 

In what was the discussion in the top-level perl manpage
on data-size limits unclear?

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com

There ain't nothin' in this world that's worth being a snot over.
	    --Larry Wall in <1992Aug19.041614.6963@netlabs.com>


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

Date: Thu, 26 Feb 1998 08:37:48 -0800
From: Jerome O'Neil <joneil@cks.ssd.k12.wa.us>
Subject: Re: Regex substitutions
Message-Id: <34F59A5C.CCF59CA0@cks.ssd.k12.wa.us>

Dan Boorstein wrote:

> uhh, but isn't this effectively the same as Christopher Masto's (which
> you liked)? i may have shown its effectiveness differently, but the
> regex is almost identical.

After looking at the regex, yes, you are right, it is very much the same as
Christophers.

Thanks Again!

Jerome



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

Date: Thu, 26 Feb 1998 10:47:03 -0600
From: Holly Sommer <hsommer@micro.ti.com>
Subject: Regional PUGs
Message-Id: <34F59C87.DB2076F0@micro.ti.com>

PUG - Perl User Groups.

I was wondering if there are any such beasties out there... and if not,
whether there might be interest in forming any as such.

-Holly
-- 
My opinions do not necessarily reflect those of my employer.


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

Date: Thu, 26 Feb 1998 14:33:07 +0000
From: Jim Smith <james-detg.smith@ubs.com>
Subject: Re: some thoughts on RTFM/FAQ/newbies/moderated
Message-Id: <34F57D22.5DAB38BE@ubs.com>



uri@sysarch.com wrote:

> a year or so ago, i posted to this group after a long abscence. i
> received an autoresponded message telling me to make sure i read the
> FAQ's and such before i wasted bandwidth on the net. it was funny,
> someone with my experience reading that, but i understood where it came

comp.infosystems.www.authoring.cgi (I think) is a 'self-moderated' newsgroup. All
posts get a standard reply, including pointers to FAQs et cetera, asking you to
reconfirm your post. My one and only post to that group, asking where the FAQ was
never got there to annoy anyone.

This would deal with all but the most wilfully silly posts. The only doubt I have
is whether those who spend a lot of time responding to this group find it an
unacceptable overhead.

<snip>

> The mini FAQ should be sent out more often, maybe every other day since
> we get such a large number of newbies. it should point to all the right
> URL's, groups and FAQ's. it should cover some c.l.p.m netiquette
> including the level idea (if adopted) and other info like that CGI
> problems don't belong here, unless they are perl code issues and not web
> issues.
>

I think it should be posted daily. I often need to find out things very quickly
and can't always spend a week or a month lurking until the FAQ appears.



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

Date: 26 Feb 1998 15:54:52 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Splitting on 2 line feeds?
Message-Id: <6d438c$qpa$1@csnews.cs.colorado.edu>

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

In comp.lang.perl.misc, 
    mgjv@comdyn.com.au (Martien Verbruggen) writes:
:my (@CHUNKS) = split (/\n\n/s, @DATA);

Why are you splitting on the number of elements in the
array?  I promise you that there won't be newline pairs in 
the 23 or 71 or 4 that you get back.  And what's the /s doing?

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com


    "Even egotists are allowed to have opinions." --Larry Wall


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

Date: 26 Feb 1998 16:11:14 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: splitting with a '\' (backlash)
Message-Id: <6d4472$qpa$4@csnews.cs.colorado.edu>

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

In comp.lang.perl.misc, Gilles Chong <glchy@csah.com> writes:
:Say $a="C:\X\Y\Z\test.doc";

I shall not.  Your slashes are wrong there.  Flip them.  You have done
something that isn't what you think.  "\tmp\foo" has a tab and a form
feed in it.  Go see the FAQ.  And the basename module will handle much
of this for you.

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com

Can you sum up plan 9 in layman's terms? It does everything 
    Unix does only less reliably    --Ken Thompson


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

Date: 26 Feb 1998 14:38:20 GMT
From: mwang@alhena.ibk.ml.com (Michael Wang)
Subject: system(command) = fork + exec(command)? kill parent, children?
Message-Id: <6d3uos$n4u$1@news.ml.com>

If system(command) = fork + exec(command),
then how can I get the PID of exec(command), not the
PID of the system(command) which is the parent of 
the "command". 

The reason I need the PID of exec(command) is that
I want to kill the PID of exec(command), not its parent.

This also brings up another question. On unix (solaris)
system, what happens to the children if you kill the
parent? becomes zombie or killed as well, and what
determines what will happen? Thanks. 


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

Date: 26 Feb 1998 16:15:28 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: using a Module
Message-Id: <6d44f0$qpa$5@csnews.cs.colorado.edu>

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

In comp.lang.perl.misc, Naama Kraus <naamah@haifa.vnet.ibm.com> writes:
:How can I teach perl to look for my module in
:that directory?

You mean besides the ways listed in the standard perlfaq8 manpage
shipped with every version of perl since 5.00 and which should
be sitting there right on your very own system?  

--tom
-- 
	Tom Christiansen	tchrist@jhereg.perl.com


sum to check equivalent files should use sum -a. --Andrew Hume


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

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

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