[8470] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 2087 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Mar 13 03:07:38 1998

Date: Fri, 13 Mar 98 00:00:48 -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 Mar 1998     Volume: 8 Number: 2087

Today's topics:
    Re: Are There Any Snazzy Perl Editors for Windows? <tkho@technologist.com>
    Re: Are There Any Snazzy Perl Editors for Windows? (dk smith)
    Re: c.l.p.mod and TPI <rjk@coos.dartmouth.edu>
        cgi-lib.pl available on oracle webserver3.0.1.8 ? (Lee Sang Joon)
    Re: cookies? <qdtcall@esb.ericsson.se>
        File locking for writing in CGIs (henri)
        Help needed on I/O in CGI written with perl!!! <kose@cae.wisc.edu>
    Re: How to export an environment variable ? <vallon@pearl.fi.bear.com>
    Re: HTTP_USER_AGENT - any others? (David Oswald)
    Re: Is there a "Newsgroup" for Newbies to Perl? (David Oswald)
    Re: Local File handles? <qdtcall@esb.ericsson.se>
        locking files while processing them (remove)@dial.pipex.com (Rod Borland)
        mod_perl installation %) <antony@fabric8.com>
        Perl for Win32 runtime questions..... <alex.simpson@bigfoot.com>
    Re: Perl for Win32 runtime questions..... (Vincent Fatica)
        Printing Hash of Hashes Problem <toml@synnet.com>
        Q: "Use Warnings" - semantics/usage are? (Joseph R. Justice)
        read/write file while locked <gchun@anim.dreamworks.com>
    Re: Sorry... Need A DBM to USE! <qdtcall@esb.ericsson.se>
    Re: splice -- useful uses? <rjk@coos.dartmouth.edu>
    Re: Where are the Win32 docs? <metcher@spider.herston.uq.edu.au>
        Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: Thu, 12 Mar 1998 22:43:29 -0800
From: Tommy <tkho@technologist.com>
Subject: Re: Are There Any Snazzy Perl Editors for Windows?
Message-Id: <3508D591.3546EF56@technologist.com>

I have seen the question on Win95 Perl Editor many times. You know what
should we do. We should do a chart of comparison together and post it to
Perl's FAQ. How is this idea?

BTW, If anyone knows anything web page have already done this. Please
let perl.com and I know.

Rob Wilson wrote:
> 
> I would recommend textpad (http://www.textpad.com).  This has a nice clip
> library feature where you simply double-click the function you want (it even
> lets you know what kind of arguments to use with the functions.  Also, it
> supports auto-indenting and other fun features.  I regularly use this program
> and recommend it highly.
> 
> Tommy (tkho@technologist.com) wrote:
> : May be I don't know much about Multi-Edit, or Perl element is an extra,
> : my Multi-Edit does not support Perl tag. However, it support BASIC, C,
> : COBOL, and HTML. If you have the Perl's Tag file, could you send it to
> : me. Thanks.
> :
> : BTW, I agree Multi-Edit is very well-developed authoring program. Its
> : "Find and Replace", "Line Numbering", "Hex Mode", and "File Comparing"
> : functions are superb. You may not find these function on other editors.
> :
> : scott@softbase.com wrote:
> : >
> : > Keith Turner (rkturner@us.ibm.com) wrote:
> : > > Are there any text editors for windows  that can recognize perl syntax and
> : > > color code and such?
> : >
> : > Well, there's GNU Emacs. It's the best thing going for Perl on Windows.
> : >
> : > Multi-Edit is a great commercial editor that supports Perl syntax
> : > highlighting. It has a very Windows look and feel, if you're not
> : > used to Emacs. It also does really great printing, something
> : > Emacs doesn't.
> : >
> : > For more on Windows editors, check out www.skwc.com/essent/cyberreviews.html
> : > and look for the text editor review.
> : >
> : > Scott
> :
> : --
> :
> : Tommy Ho
> :
> : ---------------------------------------------------------------
> :    Email: tkho@technologist.com
> :      URL: http://www.geocities.com/ResearchTriangle/Lab/4670/
> : WebPager: http://wwp.mirabilis.com/4763891
> :
> : Virtual Network and Conference available on Request
> 
> --
> Rob Wilson
> EH.Net Systems Administrator
> rwilson@eh.net

-- 

Tommy Ho

---------------------------------------------------------------
   Email: tkho@technologist.com
     URL: http://www.geocities.com/ResearchTriangle/Lab/4670/
WebPager: http://wwp.mirabilis.com/4763891

Virtual Network and Conference available on Request


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

Date: Thu, 12 Mar 1998 23:19:16 -0800
From: dks@mediaweb.com (dk smith)
Subject: Re: Are There Any Snazzy Perl Editors for Windows?
Message-Id: <dks-1203982319160001@tulini.mediaweb.com>

In article <3508D591.3546EF56@technologist.com>, Tommy
<tkho@technologist.com> wrote:

> I have seen the question on Win95 Perl Editor many times. You know what
> should we do. We should do a chart of comparison together and post it to
> Perl's FAQ. How is this idea?
> 

Please include Mac OS editors too. BBEdit is excellent. Metrowerks mayhave
Perl coloring but I do not know.

-dk smith

-- 
DK Smith                                  MediaWeb, Inc.
dks@mediaweb.com                          Mountain View, CA, USA
======================================>>> http://www.mediaweb.com
Quality Web Hosting, Excellent Rates                 


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

Date: Fri, 13 Mar 1998 00:55:10 -0500
From: Ronald J Kimball <rjk@coos.dartmouth.edu>
Subject: Re: c.l.p.mod and TPI
Message-Id: <3508CA3F.D12A105D@coos.dartmouth.edu>

Chris Nandor wrote:
> 
> In article <889584849.326190@cabal>, ? the platypus {aka David Formosa}
> <dformosa@st.nepean.uws.edu.au> wrote:
> 
> # >Sigh.  Not one person on TPI's board was listed as one of the moderators.
> # >What, you mean the provision that TPI can post "ads" makes it a
> # >moderator?  That is nonsensical.
> #
> # I was told on this thread that ads would be sent to TPI, thay would look
> # at them and decide wether or not thay where apporprate to the newsgroup
> # and then post them. In other words thay are acting just as a moderator
> # would.
> 
> No, they are not.  Don't spread lies.  Even were this to be the case, this
> is only one function of being a moderator.  That's like saying that the
> Oval Office janitor is the President just because he flushes the toilet
> for Bill.

What a ridiculous analogy!  Flushing the toilet is not a function of being
president; your analogy is completely facetious.  A better analogy would be:
That's like saying the Oval Office janitor is the President just because he
vetoes bills passed through congress.

-- 
 _ / '  _      /         - aka -             rjk@coos.dartmouth.edu
( /)//)//)(//)/(    Ronald J. Kimball           chipmunk@m-net.arbornet.org
    /                                   http://www.ziplink.net/~rjk/
        "It's funny 'cause it's true ... and vice versa."


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

Date: 13 Mar 1998 06:27:18 GMT
From: passman@taewool.co.kr (Lee Sang Joon)
Subject: cgi-lib.pl available on oracle webserver3.0.1.8 ?
Message-Id: <6eajk6$o0t$1@green.kreonet.re.kr>

Hi all,

cgi-lib.pl available on oracle webserver3.0.1.8 ?
Plz tell me about that by detail.
Thanks in advance.  


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

Date: 13 Mar 1998 08:47:19 +0100
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: cookies?
Message-Id: <ispvjrf2wo.fsf@godzilla.kiere.ericsson.se>

"Keith L. Miller" <miller@bigsky.net> writes:

> Can anyone tell me how to use cookie's to bring information into my
> forms?  I have seen some things on this, but really would like more
> details.

Someone in one of the www-technical newsgroups probably can. This is a
newsgroup about the Perl programming language. May I suggest that you
upgrade to a newsreader that tells which group you're posting to, so
that you won't make this silly mistake again?
-- 
		    Calle Dybedahl, UNIX Sysadmin
       qdtcall@esavionics.se  http://www.lysator.liu.se/~calle/


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

Date: Thu, 12 Mar 1998 19:04:10 -0800
From: henri@binaryCompass.com (henri)
Subject: File locking for writing in CGIs
Message-Id: <henri-ya023080001203981904100001@losangeles01.news.internex.net>

Hello Perl gurus,

I have a little issue that I thought would be covered in some docs, but isn't.

I have a CGI that needs to append form data to a file. I want to make sure
it is totally thread-safe.

The Camel book says to:

open(OUT, ">>test.out");
flock(OUT, 2);
seek OUT, 0, 2;

 ...do the writing...

flock(OUT, 8);


Now what happens if the script tries to flock(OUT, 2) when the file is
locked by another thread? Does it die, or does it wait for the unlock to
happen? And if it does wait, what's the timeout?
Or do I need to use select()? (if so, how do I use it... docs are quite dense)

Finally, the CGI module has the $q->save(OUT) function. Does it implement
file locking and is it by itself thread-safe?

Thanks in advance, and if you could please also cc by email that would be great.

+-------------------------------------------------------------------+
 Henri Asseily
 henri at binarycompass.com
 Binary Compass Enterprises
+-------------------------------------------------------------------+


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

Date: Fri, 13 Mar 1998 01:22:07 -0600
From: Sadi Kose <kose@cae.wisc.edu>
Subject: Help needed on I/O in CGI written with perl!!!
Message-Id: <3508DE9D.FDE6298D@cae.wisc.edu>

Hi everyone,

This is the first time I am visiting this new group.  Like some of you I
came to know about perl news group(s) through Randal's excellent book
"Learning Perl". Thus I am new to perl.

I wrote a CGI program using perl. It first opens a file (  i.e
open(FOUT,">somefile.ext")  ) and writes some things in there. The when
I try to open it in append mode ( i.e open(ADD,">>somefile.ext") ) it
deletes all the previous data.

Also when I try to open it to read (i.e open(FIN,"somefile") ) it again
deletes all the previous information in the file.

Both the perl code and the file are residing in the cgi-bin directory.
If I try to run the above mentioned code from the unix promt outside the
cgi-bin directory I am able to
read write and append to the file.

I was wondering if this might have anythig to do with the file and
directory permitions?
Any help will be appreciated.
Thanks in advence
Sadi




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

Date: 12 Mar 1998 22:51:18 -0500
From: Justin Vallon <vallon@pearl.fi.bear.com>
Subject: Re: How to export an environment variable ?
Message-Id: <x6eogzbmeo9.fsf@pearl.fi.bear.com>

If you're talking about /bin/sh export, there is no need.  All %ENV vars
are exported.  In shells, there is a need for local variables ($x) vs 
exported variables ($MANPATH), so a shell script does not pollute the 
name space of its children.  In perl, only %ENV vars (and exactly those 
vars) are exported.


myself@technologist.com writes:

> Is it possible to export an environment variable in a perl script ?We want
> to call PGP and to pass it some environment variables.Thanks for your help.
> [QSD]
> 
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/   Now offering spam-free web-based newsreading

-- 
-Justin
vallon@bear.com


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

Date: Fri, 13 Mar 1998 05:18:49 GMT
From: doswald@xmission.com (David Oswald)
Subject: Re: HTTP_USER_AGENT - any others?
Message-Id: <3508bea4.179040861@news.xmission.com>

On Thu, 12 Mar 1998 11:38:47 -0000, "Ben" <ben@wallroyds.demon.co.uk>
wrote:

>Hiya!
>

>I wonder if any1 know the one for ... HTTP_REFERER or something? When I run
>the program, it didn't show where I came from .... And, what about the one
>"TZ" or something? But, can any1 show me where to find, for ALL of them?
>A-Z!
>

Ben,

In a book or in a FAQ.... not in a Usenet group that has nothing to do
with what you're after.

There isn't a single text written regarding CGI that doesn't enumerate
the CGI Environment variables, and there are precious few books that
discuss programming within the Unix environment that don't expound
upon the standard Unix environment variables.  Show a little
initiative by researching the information yourself.  There is no
knowledge funnel through which we can pour smarts into your head,
you're just going to have to work at it yourself.


But first get yourself a grammar and a spelling book; you really need
it.  It's ok to be a little lazy at the keyboard within the confines
of the social etiquette applicible to your audience, but taken to your
extreme it's simply insulting and annoying.  Express yourself in an
intelligent and respectful manner and you're liable to fool folks into
believing that you actually are intelligent and deserving of respect.
This lesson in life is probably off topic here, but so was your
request for information, so deal with it.

Dave


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

Date: Fri, 13 Mar 1998 05:55:14 GMT
From: doswald@xmission.com (David Oswald)
Subject: Re: Is there a "Newsgroup" for Newbies to Perl?
Message-Id: <3508c605.180930773@news.xmission.com>

On Thu, 12 Mar 1998 17:12:36 -0600, Mark Stackhouse
<stackhou@execpc.com> wrote:

>I've only been playing with Perl for about a week now but
>I'm amazed by it's power and versatility!  Using this
>"Newsgroup" (as the book 'Learning Perl' suggests) seems to
>offend some of you "old timers".  Sorry... but we
>have no place else to go!  If someone would start a group
>for "Newbies", I'd unsubscribe from this one in a minute.

But don't you understand?  This isn't a helpdesk.  There *are*
resources out there for those learning. After all, every one of the
'masters' started somewhere.  I am far from being a master myself, but
I've been putting in the effort; got a minor in Comp. Sci., read cover
to cover (and re-read) the Camel, Llama, Owls, and Mouse books, spent
a lot of time at www.perl.com, worn holes in the soles of DejaNews,
and received clarification through the FAQs.  There is practically no
'newbie' question that isn't answered online already without turning
to the keyboard and this Usenet group.  Why do people resent being
asked FAQ type questions on this group?  Because most of those who
have a firm grasp on Perl obtained it through nothing less than
painstaking study and practice; not by asking a bunch of already-asked
questions on this Usenet group.  ...and asking questions here isn't
really going to help you to learn the language.  You'll learn the
answer to your question (maybe) but not how to think in Perl.  You can
only learn that through time-consuming study.

>Don't you Pros know that suggesting we look in this perldoc
>or that perldoc doesn't really help someone who can't
>understand the docs because we don't know enough about the
>language yet?  Most of the online docs I've read just add
>more to the confusion!  These are fine for someone who
>already knows the language and just needs a refresher
>but for someone just learning... they suck.

They're accurate and to the point.  For a more sugar-coated approach
turn to Learning Perl, www.perl.com, etc.

>We need a good list of tutorials, our own Newsgroup, some
>good books, and a few  mentors who don't mind answering (and
>explaining) our "Newbie" questions.  Then we get out of your
>bandwidth.


A newbie newsgroup would indeed be a nightmare; a zillion questions
(not unlike this group's current state of affairs) and a half zillion
wrong answers.  Go to the books; that's where you'll find the truth.
There are pleanty of mentors at the University.  They get paid, and
they're called professors, tutors, teaching assistants, etc.

Your attitude is the Internet's version of a street beggar, who with
his ragged appearence manages to avoid all of the legitimate channels
for assistance in favor of bumming quarters off of unsuspecting
citizens on the street corner.  Make something of yourself, don't
expect our pittance to carry you through your education.  We're fresh
out of quarters.




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

Date: 13 Mar 1998 08:40:43 +0100
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: Local File handles?
Message-Id: <isra47f37o.fsf@godzilla.kiere.ericsson.se>

Scott Starks <scotts@ptp.hp.com> writes:

> Is there a way to make this file handle local (ie my) to the
> function so that each recursive call to the function has it's own
> copy of the file handle?

Yes, but not quite in the way you think. Look at the FileHandle
module, included in your Perl installation.
-- 
		    Calle Dybedahl, UNIX Sysadmin
       qdtcall@esavionics.se  http://www.lysator.liu.se/~calle/


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

Date: Fri, 13 Mar 1998 06:07:45 GMT
From: rodb(remove)@dial.pipex.com (Rod Borland)
Subject: locking files while processing them
Message-Id: <3508c7fe.3120139@news.saix.net>

When you have a script that users may be running simultaneously and it
accesses a file as in 

open (FILE,">>$basedir/$subscribe");
  print FILE "$FORM{'email'}\n";
  close(FILE);

how do you lock the file so that only one person can write to it at a
time, adding their email address?

do you use chmod as you would on the command line in unix before the
call to open the file? what happens if it has already been locked by
another instance of the script - do you have to check the state and
then lock if its not locked - do you prevent reading of the file
rather than writing? because its no use reading a file which may be
changed by the time you write to it? 

If you check to see if you can read it first then read it and lock it
must you have a loop that continuously checks reading and waits until
it can perform the read?

I am getting pretty confused here!!!!!

Rod Borland
rodb(remove)@dial.pipex.com
http://www.ten.org/


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

Date: Thu, 12 Mar 1998 20:21:20 -0800
From: antony quintal <antony@fabric8.com>
Subject: mod_perl installation %)
Message-Id: <3508B440.11E6514B@fabric8.com>

greetings, perl wizards

ok. i searched the faqs to no avail. promise.

why is it possible to compile mod_jserv with only the apache header
files, while mod_perl wigs out when it can't find the entire source
tree? does mod_perl require a whole new compilation of apache?


any installation hints?


thanks in advance.

laterz.
antony

-- 
   8888
 888  888   
888    888  :::::::::::::::::::::::
 888  888   http://www.fabric8.com
   8888     san francisco
 888  888   415.487.9702
888    888  :::::::::::::::::::::::
 888  888   
   8888


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

Date: Fri, 13 Mar 1998 04:43:02 -0000
From: "Alex Simpson" <alex.simpson@bigfoot.com>
Subject: Perl for Win32 runtime questions.....
Message-Id: <6eadj1$iem$1@probity.mcc.ac.uk>

Hi, I have a very short Perl script (about one page) that uses the Win32 and
the Win32::ChangeNotify modules.

This runs in the background, and WinNT Taskmanager says that it takes 2.5Mb
of memory!
Can someone tell me if this is correct, or if it is possible to cut the size
down? (the script only uses a few scalars, so I wouldn't expect it to be a
large data space)

On a related subject, to get the script to run in the background, I had to
have a boot script that used the Win32::Process module to start it up, and
then ended. Is there a better way to do this? (e.g. some way to have
Perl.exe run as a background task from the offset)..... I never had these
problems with good old UNIX..... ;-)




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

Date: Fri, 13 Mar 1998 07:20:26 GMT
From: vefatica@syr.edu (Vincent Fatica)
Subject: Re: Perl for Win32 runtime questions.....
Message-Id: <3508d255.1047936@news.ican.net>

On Fri, 13 Mar 1998 04:43:02 -0000, "Alex Simpson" <alex.simpson@bigfoot.com>
wrote:

>Hi, I have a very short Perl script (about one page) that uses the Win32 and
>the Win32::ChangeNotify modules.
>
>This runs in the background, and WinNT Taskmanager says that it takes 2.5Mb
>of memory!
>Can someone tell me if this is correct, or if it is possible to cut the size
>down? (the script only uses a few scalars, so I wouldn't expect it to be a
>large data space)

WindowsNT is rather generous when it provides a working set (physical memory)
for a process (sometimes several times what actually may be needed). I have a
similar perl script which notifies a remote host (by FTP) of changes in my
(dynamic, dialup) IP address (in case of a disconnect/redial). I have written a
little WORKSET.EXE (syntax "workset PID") which causes NT to minimize the
working set of the process whose PID is spec'd by calling:

 	HANDLE hndl = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid); 
	SetProcessWorkingSetSize(hndl, ~0L, ~0L);

I use it in 4NT batch files and perl scripts which run for a long time, sleeping
a lot ... placed just before the sleep, as in:

	system "h:\\uty\\workset $$" ;
	sleep 900;

This affects the working set of PERL.EXE. Since my 4START.BAT also includes such
a command (to keep down the working set of the 4NT shell), the perl script
mentioned above runs in about 800 KB (conbined, PERL and 4NT), vs. the
approximately 2.2 MB it would otherwise use. If you like seeing big free
physical memory numbers, try it, but I must admit, its effect is pretty much
"smoke and mirrors" (or "creative accounting") since processes readily give up
the extra memory when it's needed without any swapping to disk. WORKSET.EXE
essentially makes a process swap stuff to cache immediately rather than later,
when it may be necessary. Apparently, no special rights are needed to
SetProcessWorkingSetSize(); it works for me as a regular user as when I am
administrator. You can grab a copy of WORKSET.EXE from my homepage. The C source
is below. SPWSS() is pretty harmless, so I didn't include much checking for
errors. From a command line, you can (for example) cut EXPLORER's working set
from a few MB to about 600 KB, but, of course, in the case of EXPLORER, like any
demanding program, the effect is only temporary; the working set grows again as
needed.

/* WORKSET.CPP */
#include <windows.h>

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                  PSTR szCmdLine, int iCmdShow) {
	DWORD pid = ( __argc > 1 ) ? strtoul(__argv[1], NULL, 10) : 0;
	if ( pid == 0 ) return 1;
	HANDLE hndl = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid); 
	if ( hndl == NULL ) return 2;
	SetProcessWorkingSetSize(hndl, ~0L, ~0L);
	CloseHandle(hndl);
	return 0;
}

 - Vince
___
   Vincent Fatica
   Syracuse University Mathematics
   vefatica@syr.edu
   http://barnyard.syr.edu/~vefatica/


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

Date: Tue, 10 Mar 1998 10:38:37 -0500
From: Tom Lynch <toml@synnet.com>
Subject: Printing Hash of Hashes Problem
Message-Id: <35055E7D.23DC222A@synnet.com>

Greetings:

        I have a script which prints out expiring entries
        in a flexlm license file. I'm getting different
        results in different windows. It's built as a hash
        of hashes:

$matrix = [$_, $file, $result];
push (@{$file_index{$file}}, $matrix);

        How I print it is like so:

foreach $i (sort keys %file_index) {
  foreach $rl (sort @{$file_index{$i}}) {
    if (($rl->[1] ne $filename) || ($rl->[2] != $days)) {
       print "\n";
       print "The license(s) in $rl->[1] will expire in $rl->[2]
days:\n";
       $filename = $rl->[1];
       $days = $rl->[2];
     }
     printf "  %-96s\n",$rl->[0];
  }
}

        Sometimes the results are like so:

The license(s) in /d/l1/flexlm/key will expire in 1 days:
  FEATURE clio_sos cliolmd 1.000 5-Mar-1998 5

The license(s) in /d/l1/flexlm/key will expire in 6 days:
  FEATURE fcengine             attcad     5.000 10-mar-1998    1
  FEATURE odan                 attcad     5.000 10-mar-1998    1
  FEATURE fcheck               attcad     5.000 10-mar-1998    1

The license(s) in /d/r2/flexlm/key will expire in 27 days:
  INCREMENT hspice metasoftd 1997.1231 31-mar-98 3
  INCREMENT metawaves metasoftd 1997.1231 31-mar-98 1
  INCREMENT hspice metasoftd 1997.1231 31-mar-98 3
  INCREMENT metawaves metasoftd 1997.1231 31-mar-98 1



        Which is what I want. The license(s) expiring first at the top, but
        in a different window with the LM_LICENSE_FILE enviornment variable
        set the same I get:

The license(s) in /d/l1/flexlm/key will expire in 6 days:
  FEATURE fcengine             attcad     5.000 10-mar-1998    1
  FEATURE odan                 attcad     5.000 10-mar-1998    1
  FEATURE fcheck               attcad     5.000 10-mar-1998    1

The license(s) in /d/l1/flexlm/key will expire in 1 days:
  FEATURE clio_sos cliolmd 1.000 5-Mar-1998 5

The license(s) in /d/r2/flexlm/key will expire in 27 days:
  INCREMENT hspice metasoftd 1997.1231 31-mar-98 3
  INCREMENT metawaves metasoftd 1997.1231 31-mar-98 1
  INCREMENT hspice metasoftd 1997.1231 31-mar-98 3
  INCREMENT metawaves metasoftd 1997.1231 31-mar-98 1

        Any ideas? Thanks any help in advanced.

                Tom

--
#--------------------------------------------------------------+
# Tom Lynch                 |  Email: toml@synnet.com          |
# Switching Division        |  Phone: (978)-264-1443           |
# 3COM Corporation          |  Fax  : (978)-264-1418           |
# 80 Central Street         |  MS   : MA#35                    |
# Boxborough, Massachusetts |  Zip  : 01719                    |
#--------------------------------------------------------------+





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

Date: 12 Mar 1998 23:22:15 -0500
From: jrj@access.this-is.a-false.address  (Joseph R. Justice)
Subject: Q: "Use Warnings" - semantics/usage are?
Message-Id: <6eac9n$n3e@access2.digex.net>

[Boilerplate warning: This post contains a deliberately corrupted
From: address, in an attempt to foil spammers.  If you are trying to
send me e-mail, edit the address you are using for me before you send
it.  My correct e-mail address has (at the end) "access.digex.net",
begins with "jrj", and has an at-sign in the middle.  Thanks.  -- J]

[P, not M.  -- J]

I was reading through the long thread on the "-w" switch, and whether
it should or should not be used in production programs, etc etc etc,
and I suddenly thought to myself:

    "Gee, wouldn't it be nice if a programmer could *control* the set
    of warnings Perl generates when sie specifies -w on the command
    line (or the equivalent)?  Perhaps sie could say something like "I
    want warnings of this severity class and more severe" (not
    severity in the form of Warning/Recoverable Error/Fatal Error
    Program Crash NOW!, but in the form of "This is a warning about
    something no one "should" do", or "This is a warning about
    something most (non-Perl-guru) programmers would not want to do",
    or "This is a warning about something you *can* do, and might
    *want* to do, but on the other hand often people are confused by
    it so be careful").

    "Or, maybe sie could say "I want only want warnings lumped under
    this general class and that general class, but no others", or "I
    want all warnings *except* those lumped under this general class
    or that general class".

    "Or, maybe sie could say "I want to see these specific warning
    messages, and no others", or "I want to see all warning messages
    *except* these specific ones (which I've previously determined are
    not applicable to what I am doing)", or perhaps the above combined
    with "I want to see no errors specified by a version of Perl later
    than X.X" [Note: this last concept I believe at least one other
    person has already mentioned here].""

So, anyway, I was thinking about how to write up such an idea post and
insert it into the current long -w flame thread, when I saw a post
(which I now cannot find in my news spool) about something I assume is
a module being discussed or that was discussed on the p5p list (which
I do not get) called something like "Use Warnings".  And, from the
context of the post, it seemed like this module would or could do some
or all of the things I speculate on above.

I found this of interest, so I tried finding the pertinent posts in
the Web-accessible p5p archives, as linked to by www.perl.com.
Unfortunately, the archive set I found, as accessed by the available
search engine (Glimpse), gave me far too many hits to be able to
reasonably skim through (IMHO).  I see nothing about this in the
current Perl FAQ document.

So, would anyone be willing to, I guess, summarize what the general
semantics, usage, etc of this module, as discussed on p5p, might be?
'Cause, I can well see that, while I *like* compiling and/or running
programs I write with all the warnings I can turn on, and I *like*
being as strict in my usage (e.g. "use strict") as I can be, etc etc
etc, I can see times when I *might* want to ignore certain warnings or
classes or levels of warnings while still generally running under -w,
and I wonder if this module, Use Warnings, might allow for that.

Any information would be appreciated.

Oh, and if per chance something in the speculations I made above *is*
new and novel to the Perl internals gurus in general, and is seen as
something that might be fruitful to add or implement, please, feel
free to steal the idea.  I'd be honored.  Besides, I didn't make it up
myself; I stole it from other people in the first place!  :-)

Thanks.  Be well.

Joseph, not really a Perl programmer at this time, but, if you want
some Omnimark written...  :-)

-- 
	  Joseph R. Justice  ==  jrj, at access.digex.net ==
     an69616, at anon.penet.fi == anon-16439, at anon.twwells.com
 (EFNet) IRC: jrj, jrjx, jrjxx      http://www.access.digex.net/~jrj
 I have a job!  Now if I can keep it...  Next up, the *Personal Ad*!


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

Date: Thu, 12 Mar 1998 18:41:18 -0800
From: Greg Chun <gchun@anim.dreamworks.com>
Subject: read/write file while locked
Message-Id: <35089CCE.41C6@anim.dreamworks.com>

I seem to be in quite a spot here.  I have a file that just contains a
single line with a four-digit number.  I'm hoping to use this as a
sequence number for a unique identifier field in a database.  Now, the
problem is, when I "select" from this sequence, I need to open the file,
flock it, read the current value, and then somehow increment the value
in the file without breaking the lock.  I could open the file for read,
get the current value, and then close it and reopen it for write, but
the first close blows away the lock.  The whole open +> seems to blow
away the value before I can even read it.  And I believe using temp
files will also mess up the locking.  Anyone have any wonderful ideas?
=)
------------------------
Greg Chun
DreamWorks SKG
gchun@anim.dreamworks.com 
(818) 695-6727


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

Date: 13 Mar 1998 08:35:04 +0100
From: Calle Dybedahl <qdtcall@esb.ericsson.se>
Subject: Re: Sorry... Need A DBM to USE!
Message-Id: <issoonf3h3.fsf@godzilla.kiere.ericsson.se>

hazzard@usa.net (Jason Hazzard) writes:

> Ohh, please help. I need some basic instruction i am missing :(

Ok, here's a basic instruction: When you ask the net for help, provide
some details about the problem! The clairvoyant Perl programmers have
better things to do than to peer at your error messages.
-- 
		    Calle Dybedahl, UNIX Sysadmin
       qdtcall@esavionics.se  http://www.lysator.liu.se/~calle/


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

Date: Fri, 13 Mar 1998 01:57:55 -0500
From: Ronald J Kimball <rjk@coos.dartmouth.edu>
To: Michael W Peterson <michael@flash.net>
Subject: Re: splice -- useful uses?
Message-Id: <3508D8F7.30B93843@coos.dartmouth.edu>

[posted and mailed]

Michael W Peterson wrote:
> 
> Interestingly, the quadratic algorithm is faster (at least on my box):
> 
> [Benchmark comparing quadratic and linear shuffling of 10-element arrays]

Now try it with arrays that actually have a significant number of elements. 
As the size of the array increases, the time for the quadratic algorithm will
increase faster than the time for the linear algorithm.

-- 
 _ / '  _      /         - aka -             rjk@coos.dartmouth.edu
( /)//)//)(//)/(    Ronald J. Kimball           chipmunk@m-net.arbornet.org
    /                                   http://www.ziplink.net/~rjk/
        "It's funny 'cause it's true ... and vice versa."


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

Date: Fri, 13 Mar 1998 14:10:22 +1000
From: Jaime Metcher <metcher@spider.herston.uq.edu.au>
Subject: Re: Where are the Win32 docs?
Message-Id: <3508B1AE.273B69D@spider.herston.uq.edu.au>

Installing from the binary distribution, the docs for Win32 modules end
up in <perl directory>/html/lib/site/Win32, but I don't think there's
any Win32-specific documentation for the perl core.  The Win32 FAQ
refers to the ActiveState port, which does have a small amount of Win32
documentation .  It consists of the module docs (which come with the
bindist) and a list of broken functions (which doesn't apply to the
Sarathy port anyway).  I don't think you're missing much.

-- 
Jaime Metcher

Michael Kairys wrote:
> 
> I installed 5.04.04 from the standard source distribution and libwin32 0.10
> likewise. The core Perl documentation ended up in lib\Pod\html\pod\*.html;
> the Win32 documentation if any didn't end up anywhere.
> 
> The Win32 FAQ says "Documentation for Perl for Win32 is provided in HTML
> format in the docs subdirectory of your perl directory. This has the
> documentation from the standard perl distribution, as well as documentation
> for Win32- specific extensions". This doesn't seem to apply.
> 
> Three directories of the libwin distribution had docs subdirectories, and
> some but not all of the others had pod blocks in the pm files, and from
> these I was able to assemble my own docs dirctory, but it is (1) not
> complete, and (2) not easy to access, since it is not cross-linked or
> indexed.
> 
> Is there a complete set of docs out thre anywhere, and/or was there
> something wrong with my installatio nthat I didn't get a docs directory with
> all this sutff in it as per the FAQ?


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

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

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