[13157] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 567 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 17 15:07:14 1999

Date: Tue, 17 Aug 1999 12:05:13 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Tue, 17 Aug 1999     Volume: 9 Number: 567

Today's topics:
    Re: %0 %1 %2 ???? <Joe.Kline@sdrc.com>
    Re: %0 %1 %2 ???? (Lack Mr G M)
    Re: %0 %1 %2 ???? (Michel Dalle)
        a2p -- how to use? <maxima@mainsoft.com>
        Anyone have an example...Uploading Images? <splinter@monmouth.com>
    Re: Anyone need an INDEPENDENT CONTRACTOR??? <kperrier@blkbox.com>
    Re: Automatic htpasswd entries <cpdog@rma.edu>
    Re: Calling all PERL & DBI gurus <makkulka@cisco.com>
        connecting my database to my website <sjnoakes@lineone.net>
    Re: connecting my database to my website <emschwar@rmi.net>
    Re: dynamic random image CGI script needed <makkulka@cisco.com>
    Re: HARASSMENT -- Monthly Autoemail (Dave Salovesh)
    Re: help running Perl Scripts in win95 deguzmaf@my-deja.com
    Re: Modulo of a string <makkulka@cisco.com>
        newbe question about use strict hillr5543@my-deja.com
    Re: newbe question about use strict <crt@kiski.net>
    Re: newbe question about use strict <emschwar@rmi.net>
        Not echoing passwords inputted on screen... <mshenoy@us.oracle.com>
    Re: Not echoing passwords inputted on screen... <makkulka@cisco.com>
    Re: Perl Image Processing Problems!! <David.Jonsson@Ellemtel.se>
        Problems with acos?? <p8e77@keele.ac.uk>
    Re: Problems with acos?? <sariq@texas.net>
    Re: Q:Two perl programs printing to one txt file <makkulka@cisco.com>
        Release/Build Management <pgrucza@shell1.interlog.com>
        renaming a subroutine <khowe@performance-net.com>
    Re: Uploading? Please help! <erict@cc.wwu.edu>
        What editors are folks using for PerlScript development <ksnyde@pacbell.net>
    Re: Write - multiple access (Michel Dalle)
    Re: www.perl.org <kperrier@blkbox.com>
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

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

Date: Tue, 17 Aug 1999 13:25:40 -0400
From: Joe Kline <Joe.Kline@sdrc.com>
Subject: Re: %0 %1 %2 ????
Message-Id: <37B99B14.55EF88E@sdrc.com>

brian d foy wrote:

> In article <7pbne4$p96$1@sylvester.vcn.bc.ca>, Rick Lim <ricklim@vcn.bc.ca> posted:
>
> > brian d foy <brian@pm.org> wrote:
> > : In article <7p8bgu$1e$1@sylvester.vcn.bc.ca>, Rick Lim <ricklim@vcn.bc.ca> wrote:
>
> > :>are the %0 %1 %2 the same as command line parameters
> > :>in the statment
>
> > :>perl -S %0 %1 %2
> <SNIP>
>
> > what I am trying to find out is what do
> > the %0 %1 %2 indicate
>
> where did you see this line?

I think he might be messing with browser plugins/MIME-types.

The only reason I say this, is that I wrote an application to be kicked off by my
browser when I hit certain files.

In my Netscape preferences, under Navigation->applications, I've defined a MIME-type and
associated application. The application has a command-line of:

/path/to/script %s

%s is normally the path to a temp dir (IIRC). I can't recall if that is a MIME thing or
a Netscape thing.

At least that's my best guess.

joe - stumbling around confused now


--

/===================================================\
| Joe Kline                       | I used to be    |
|                                 | anonymous - Anon|
\===================================================/





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

Date: Tue, 17 Aug 1999 18:52:57 BST
From: gml4410@ggr.co.uk (Lack Mr G M)
Subject: Re: %0 %1 %2 ????
Message-Id: <1999Aug17.185257@ukwit01>

In article <7p8bgu$1e$1@sylvester.vcn.bc.ca>, Rick Lim <ricklim@vcn.bc.ca> writes:
|> are the %0 %1 %2 the same as command line parameters
|> in the statment
|> 
|> perl -S %0 %1 %2

   Are you by any chance a MS Windows user?  The %0 %1 etc. look like
the way it denotes parameters in scripting.

   If so, the "%0 %1 %2" in "perl -S %0 %1 %2" is nothing to do with
perl, but rather it is to do with the scripting language that this
particular line was written in. 



-- 
--------- Gordon Lack --------------- gml4410@ggr.co.uk  ------------
This message *may* reflect my personal opinion.  It is *not* intended
to reflect those of my employer, or anyone else.


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

Date: Tue, 17 Aug 1999 17:53:36 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: %0 %1 %2 ????
Message-Id: <7pc7on$lc7$1@news.mch.sbs.de>

In article <7p8bgu$1e$1@sylvester.vcn.bc.ca>, Rick Lim <ricklim@vcn.bc.ca> wrote:
>are the %0 %1 %2 the same as command line parameters
>in the statment
>
>perl -S %0 %1 %2
>

They are, in DOS batch files. But the actual syntax is usually as follows :
        perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
or for Windows NT :
        perl -x -S "%0" %*

%0 represents the command itself, and %1..%9 are the command line
arguments.

Have a look at the pl2bat.bat file in your ...\Perl\bin directory, for 
instance.

Have fun,

Michel.


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

Date: Tue, 17 Aug 1999 19:32:15 +0200
From: "Maxim Avezbakiev" <maxima@mainsoft.com>
Subject: a2p -- how to use?
Message-Id: <7pc2la$288$1@news.netvision.net.il>

Hello.
I just started study PERL and I have few scripts that I wrote in AWK.
I found the utility a2p that supposed to convert awk script to perl script
with same functionality, but somehow I didn't manage to make it work.
What I did is the following:
issue the "a2p my_script.awk" command from my tcsh console, it seems that
command is completed (without producing any output) and exit status is "1".
Any ideas?

Thanks in advance.
Maxim.





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

Date: Tue, 17 Aug 1999 14:59:04 -0400
From: "Matt" <splinter@monmouth.com>
Subject: Anyone have an example...Uploading Images?
Message-Id: <7pcbcq$17o$1@news.monmouth.com>

Hi,

Does anyone know where I can see an example script of someone's in which the
script takes the multipart/form data from an image field and writes it in
binary to a remote server (or the local computer for perl).

Any help appreciated,

-Matt

PS. I sort of have an example script but it doesn't want to work...keeps
reporting 0 images uploaded almost as if my web browser didn't even send
anything there.  Weird.




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

Date: 17 Aug 1999 13:53:53 -0500
From: Kent Perrier <kperrier@blkbox.com>
Subject: Re: Anyone need an INDEPENDENT CONTRACTOR???
Message-Id: <CC85966F2BF89728.1649A7B0D9BA32EB.0F61A3AD0BB6A33D@lp.airnews.net>

toby <toby@venice.cas.utk.edu> writes:

> Chirayu Shah wrote:
> 
> > Please e-mail me at shah_chirayu@hotmail.com if this interests you.
> 
> Yes,I am looking for someone to pour a new concrete floor in my
> basement.

And I am looking for someone to clear 4.6 acres of land.....


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

Date: Tue, 17 Aug 1999 17:28:06 GMT
From: "Tim Clark" <cpdog@rma.edu>
Subject: Re: Automatic htpasswd entries
Message-Id: <GYgu3.23$ci.2706@news.cwix.com>


> i suggest going with one of the auth by database options.  it's much
> easier to manage and you don't have the external program nonsense.

I think it still need a crypted password.




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

Date: Tue, 17 Aug 1999 11:48:00 -0700
From: Makarand Kulkarni <makkulka@cisco.com>
Subject: Re: Calling all PERL & DBI gurus
Message-Id: <37B9AE60.A6C393E0@cisco.com>

[Geoffrey Toogood wrote:

> How do I retrieve the next 20 rows from the database where I left off in the
> other Script? (ie. retrieve  rows 20-40 from my SELECT query to the
> database.)
>

There is more than one approach here. You could save the results
of entire search in a temp file and then read next 20 from this file.
The 'NEXT 20' URL contain information to read from this file.
However, this is a good approach if the number of results is manageable.

Databases like Oracle have a pseudo column like rownum that
numbers your rows so that you can say --
select  whatever from table where rownum > x and rownum < y.
You could use such a facility if it is provided.

Lastly, you can resort to some ordering mechanism on a column
to make this possible.  For example if you are currently displaying
employees with employee id upto 200 the next 20 records
should have employee id > 200.

> Do I create some kind of reference to an aray or something?

No. You cannot do this because once the page is displayed
the script exits.

Articles --
An approach using session-ids is described in one of Randal Schwartz's
artciles that appeared in WebTechniques magazine ( May, 1996).
http://www.stonehenge.com/merlyn/WebTechniques/col02.html

Hope this is helping.

--Makarand





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

Date: Tue, 17 Aug 1999 17:56:51 +0100
From: "Simon J Noakes" <sjnoakes@lineone.net>
Subject: connecting my database to my website
Message-Id: <KKgu3.95$jm3.1243@newreader.ukcore.bt.net>

I am trying to connect my MS Access database to my website. I am using perl
as my scripting language, but am having alot of trouble getting it to work.
All i want is a cgi script that will read the input from a form on my web
site and post the data into my database, and another script to allow users
on my web site to search my database using certain criteria. Are their any
standard scripts available? Any help will be greatlky appreciated

Regards

Simon J Noakes





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

Date: 17 Aug 1999 12:09:32 -0600
From: Eric The Read <emschwar@rmi.net>
Subject: Re: connecting my database to my website
Message-Id: <xkflnbajn37.fsf@valdemar.col.hp.com>

"Simon J Noakes" <sjnoakes@lineone.net> writes:
> I am trying to connect my MS Access database to my website. 

That's a bad idea.  Access doesn't scale well at all, it isn't designed
for access by multiple users at once, and its mother dresses it funny.
Get a real database.  Even if you must use Windows, there are plenty of
databases, some free, that you can use instead of Access.

> All i want is a cgi script that will read the input from a form on my web
> site and post the data into my database, and another script to allow users
> on my web site to search my database using certain criteria. Are their any
> standard scripts available? Any help will be greatlky appreciated

Look at DBI.  It lets you access any number of databases (assuming you
have the right DBD (database driver)) from perl.   It's well-documented
("perldoc DBI"), and easy to use-- I figured it out from the
documentation and had a simple program running in about 10 minutes after
installing my DBD driver.  See CPAN for the right DBD driver for your
database.

-=Eric


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

Date: Tue, 17 Aug 1999 11:26:43 -0700
From: Makarand Kulkarni <makkulka@cisco.com>
Subject: Re: dynamic random image CGI script needed
Message-Id: <37B9A962.9E925033@cisco.com>

[David Ford wrote:

> I need a CGI script that calls up a random image on a WWW page each time
> it is hit or re-loaded. For an example of how I want for this to work, go
> to Food.com and re-load the page a few times.  See the picture that
> changes?  That is the model.

The page you are referring to is a dynamically generated page.
I am saying this because If you try to follow http://www.food.com/index.html
you will not find this index.html page.

Each time the serverside program/script that is responsible for creating
this page is invoked it generates this page with a different image
tucked in each time. No special cgi scripts are needed. If the
image had been displayed earlier then it will be loaded from
the cache -- no harm done.

The other technique you could use is having a image tag ( that
will differ every time ) like
<img src=/cgi-bin/imagegenerator?random=12232 border=0>
with a different value for random each time. Names of gif
files are never displayed.  The imagegenerator then dumps
the image file randomizing the display using the random value
passed to it using some simple algorithm.

The imagegenrator script could be something like this ( in pseudo code..)

read the random value ;
choose the  GIF file to display;
open gif file and read it entirely
print "image/gif\n\n"
print entire contents of gif file
exit ;

Hope this helps..

-- Makarand



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

Date: Tue, 17 Aug 1999 17:41:11 GMT
From: darsal@erols.com (Dave Salovesh)
Subject: Re: HARASSMENT -- Monthly Autoemail
Message-Id: <37b99102.81973@news.erols.com>

In article <7pavp9$8ot$1@news.NERO.NET>,
stanley@skyking.OCE.ORST.EDU (John Stanley) opined:

>No, Dave, you have it backwards. If you want to prove I am wrong, then
>you show me the document I signed that says I must accept email in
>response to USENET postings. You show me something besides someone
>else's opinion that I must accept such email. 

Oh, now you're only gonna follow the rules you signed.  Does that apply
everywhere, or just in arguments you can't win?  Like you never signed
the Constitution, the Geneva conventions, the golden rule, the ten
commandments, gravity...  It's all just opinion, and you never signed it
anyway.

Here are some sources that reinforce what I said:

FYI28/RFC1855.  There's the "Rules for posting to Usenet" article that
appears in *.answers .  If you speak satire, there's the classic "Emily
Postnews" article.  There's the Usenet guide at LSU, or another at the
University of Alberta, or another at the University of Cincinnati,
etcetera.

Over and over, I see this line:

    Reply to other people's articles by mail unless there is a specific 
    reason to do otherwise.

Now, -please- tell me what source you've seen which contradicts that.

Or tell me it's your opinion, and others might have a different one.

>Thank you so much for granting me the right to have an opinion. 

You give me too much credit.  All I did was agree that what you're
saying -is- an opinion.  I wouldn't argue with your opinion if you
wanted to say you had one, but once you try to tell me it's the rule, I
want to ask why.

>>As to your point about UCE, IMNSHO UCE is not objectionable just because
>>it's U, or just because it's C, but because the U and the C come
>>together.  
>
>But you have told me it is not unsolicited, thus it is not U at all. There
>goes the "U and C come together" excuse for objecting to spam.

No, here comes that gray area.

>That's right. That is the logical conclusion to the claim that posting
>to USENET is solicitation for email. "I saw you posting to x.y.z and
>thought you might be interested in this..." is sufficient defense to the
>charge of spamming.

If active usenauts are no longer able to discern the difference between
Usenet replies that use the email channel and UCE, then the spammers
have won by obscuration.  I'll worry when the net abuse admins lose that
distinction.  You might want to ask them what they think, if you're
still on speaking terms with any of them.

Where's that FAQ of yours?



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

Date: Tue, 17 Aug 1999 18:51:13 GMT
From: deguzmaf@my-deja.com
Subject: Re: help running Perl Scripts in win95
Message-Id: <7pcaut$djs$1@nnrp1.deja.com>

How about using the "yuck_fou.pm" which eliminates idiotic flames,
thereby minimizing bandwith on the net. Either you can help or you
can't- decide before you click "Send"- jerk.

Original Post:
This is a common problem that is not directly addressed in the FAQ. Make
sure your web server has defined the folder with the scripts as
"executable". This is done differently depending on your web server, but
on Personal Web Server it is an "Advanced" setting.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Tue, 17 Aug 1999 10:49:44 -0700
From: Makarand Kulkarni <makkulka@cisco.com>
Subject: Re: Modulo of a string
Message-Id: <37B9A0B8.F8EE373D@cisco.com>

[ tsreyb@my-deja.com wrote:

> What I was hoping to do is reduce arbitrary strings
> to a number between 0 & N-1, where N is the modulo
> value.

--{Sample code deleted..}

> and got this output:
> x[0]: 0
> x[1]: 0
> x[2]: 0
> x[3]: 0
> x[4]: 0
> x[5]: 0

When strings get interpreted as numbers they are constructed by reading
digits one at a time from the beginning of the string stopping when a
non-digit is encountered. So "a" will be 0 when interpreted as a
number.  Your results are as expected.
--



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

Date: Tue, 17 Aug 1999 17:07:26 GMT
From: hillr5543@my-deja.com
Subject: newbe question about use strict
Message-Id: <7pc4s4$8r6$1@nnrp1.deja.com>

Hello all,

I am new to perl and have a question about "use strict vars" I consulted
the perldoc on this subject and it mentions
`strict vars'
      ...Because this is to avoid variable suicide problems and subtle
         dynamic scoping issues, ...
I do not understand what this means?? Can anyone shed some light on
this?
Is it a good practice to use "use strict"

Thanks


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Tue, 17 Aug 1999 13:51:52 -0400
From: "Casey R. Tweten" <crt@kiski.net>
Subject: Re: newbe question about use strict
Message-Id: <Pine.OSF.4.10.9908171347150.8731-100000@home.kiski.net>

On Tue, 17 Aug 1999 hillr5543@my-deja.com wrote:

: Is it a good practice to use "use strict"

Yes!   "JUST DO IT!!!" - Billy Madison, Billy Madison

This is a Perl standard, consult nearly any column written by Randal.

-- 
   Casey R. Tweten    <joke> This
    Web Developer      is 100% certified
HighVision Associates    virus and bug
 crt@highvision.com     free code. </joke>



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

Date: 17 Aug 1999 12:19:10 -0600
From: Eric The Read <emschwar@rmi.net>
Subject: Re: newbe question about use strict
Message-Id: <xkfiu6ejmn5.fsf@valdemar.col.hp.com>

hillr5543@my-deja.com writes:
> `strict vars'
>       ...Because this is to avoid variable suicide problems and subtle
>          dynamic scoping issues, ...
> I do not understand what this means?? Can anyone shed some light on
> this?

Fortunately for you, this very question is answered in perlfaq7: "What is
variable suicide and how can I prevent it?"

There's another FAQ that answers the question about dynamic scoping
issues in the same manpage (perlfaq7): "What's the difference between
dynamic and lexical (static) scoping?  Between local() and my()?"

> Is it a good practice to use "use strict"

Always.  I use it in all my production Perl code, and I can honestly say
that it has made me a better Perl programmer.  I'm only half-joking when
I say that the BUGS section of the perl manpage should also say 
"use strict is not mandatory."

-=Eric


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

Date: Tue, 17 Aug 1999 13:58:07 -0400
From: Manoj Shenoy <mshenoy@us.oracle.com>
Subject: Not echoing passwords inputted on screen...
Message-Id: <37B9A2AF.FBE0C8AF@us.oracle.com>


  Hi all, I was wondering if someone could help me with the following
problem:

I am trying to take in some input through STDIN as a password, but I
dont want what the user types to be echoed to the screen (as with any
standard GUI password dialog box that pops up).  How can I make it such
that the password typed comes up as generic *s instead of the actual
text they typed?  Thanks in advance...Manoj



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

Date: Tue, 17 Aug 1999 11:54:24 -0700
From: Makarand Kulkarni <makkulka@cisco.com>
Subject: Re: Not echoing passwords inputted on screen...
Message-Id: <37B9AFE0.4CC28CDD@cisco.com>

[Manoj Shenoy wrote:

> I am trying to take in some input through STDIN as a password, but I
> dont want what the user types to be echoed to the screen (as with any
> standard GUI password dialog box that pops up).  How can I make it such
> that the password typed comes up as generic *s instead of the actual
> text they typed?

This is directly from the perl faq (8).
You can also do this for most systems using the Term::ReadKey module from
CPAN, which is easier to use and in theory more portable.
    use Term::ReadKey;
    ReadMode('noecho');
    $password = ReadLine(0);
--




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

Date: Tue, 17 Aug 1999 20:01:13 +0200
From: "David Jonsson" <David.Jonsson@Ellemtel.se>
Subject: Re: Perl Image Processing Problems!!
Message-Id: <7pc7td$272j@news1.newsguy.com>

You should make a predefined set of omages, say 100, for each interval
0,1,2,3...%
Then you just need a little script to get the right picture.

David Jonsson




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

Date: Tue, 17 Aug 1999 19:13:48 +0100
From: "Andrew Weller" <p8e77@keele.ac.uk>
Subject: Problems with acos??
Message-Id: <7pc8on$qf5$1@cfs2.kis.keele.ac.uk>

Dear all,

I am curently writing a simple script that will work out distances and
angles between points and either reject or keep these points based on the
angles and distances. At present I am getting this error:

Undefined subroutine &main::acos called at .....

So I presume it is my use of acos. This is the context in which I am using
it:

$theta = acos ($p1/$p2);

Is this right?? Any clues?

Thanks in advance,

Andy

--
Andy Weller
M.Sc. Computing in Earth Sciences
Dept. of Earth Sciences
Keele University
Staffordshire, ST5 5BG, UK
e-mail: p8e77@keele.ac.uk
Tel. (+44) 01782 246883




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

Date: Tue, 17 Aug 1999 13:43:26 -0500
From: Tom Briles <sariq@texas.net>
Subject: Re: Problems with acos??
Message-Id: <37B9AD4E.C3DCC444@texas.net>

Andrew Weller wrote:
> 
> Dear all,
> 
> I am curently writing a simple script that will work out distances and
> angles between points and either reject or keep these points based on the
> angles and distances. At present I am getting this error:
> 
> Undefined subroutine &main::acos called at .....
> 
> So I presume it is my use of acos. This is the context in which I am using
> it:
> 
> $theta = acos ($p1/$p2);
> 
> Is this right?? Any clues?
> 

I'd guess that you aren't defining acos...imagine that!

Try:

perldoc -f cos

for hints.

- Tom


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

Date: Tue, 17 Aug 1999 10:55:28 -0700
From: Makarand Kulkarni <makkulka@cisco.com>
Subject: Re: Q:Two perl programs printing to one txt file
Message-Id: <37B9A20F.2E2F08D9@cisco.com>

[ danmex@my-deja.com wrote:

> I have a problem: there are two perl programs that append to the same
> TXT file, but when both of them try to do it at the same time the TXT
> file end all messed up.
> Is there any way for the programs to "take turns" or to know that the
> other program is not finished and wait until its done?
> Could you point me to a script that has some example code?

You need to lock the file and seek to the end before attempting
to do a write to the file. Read perldoc -f   flock.
There is some sample code also.
--




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

Date: Tue, 17 Aug 1999 14:02:44 -0400
From: Peter Grucza <pgrucza@shell1.interlog.com>
Subject: Release/Build Management
Message-Id: <Pine.BSI.3.96r.990817134009.24822A-100000@shell1.interlog.com>


I'm currently writing a large system that needs to be
distributed to multiple locations. This system includes
multiple scripts, modules, config files and documentation.
All of this is being managed directly through cvs. 

If anyone has pointers as to how the perl sources 
are managed and packaged together for release I would really
like to hear about it. 

I've been using h2xs for setting up the perl modules, but I think
I need something a little different to manage the entire release.
It looks like a custom Release/Build Management tool may be in my
future so if anyone has tips for binding cvs and perl, they could
come in handy.

thanx
peter

------------------------------------------------------
Peter Grucza
pgrucza@interlog.com
------------------------------------------------------ 




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

Date: Tue, 17 Aug 1999 15:51:51 -0300
From: "Kevin Howe" <khowe@performance-net.com>
Subject: renaming a subroutine
Message-Id: <T4iu3.47602$5r2.98798@tor-nn1.netcom.ca>

Is it possible to rename a subroutine? I would do this to allow the user to
modify the object function calls to their liking.

Example:

package main;
use food;
$food = new food;

# default call
print $food->GetPriceOf('Apple');

# rename the function name
$food->rename_functions(
    GetPriceOf = 'Price',
);

# new call
print $food->Price('Apple');


Thanks




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

Date: Tue, 17 Aug 1999 10:45:15 -0700
From: Eric Turner <erict@cc.wwu.edu>
Subject: Re: Uploading? Please help!
Message-Id: <37B99FAB.90A16523@cc.wwu.edu>

Daniel Vesma wrote:
>
> If anyone could point me toward a tutorial or a nice easy script (well
> documented) that I could use to see how it's done.

perldoc CGI

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
You can send something to me securely by encrypting it using PGP.
My public PGP key is available from hkp://keys.pgp.com/erict@cc.wwu.edu
Free PGP software is available from http://bs.mit.edu:8001/pgp-form.html
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


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

Date: Tue, 17 Aug 1999 11:27:52 -0700
From: "Ken Snyder" <ksnyde@pacbell.net>
Subject: What editors are folks using for PerlScript development?
Message-Id: <IRhu3.367$06.44136@typhoon-sf.snfc21.pbi.net>

What editors are folks using for PerlScript development under Windows?  I
have had some success with Homesite but would like to use Visual Interdev.
Is there anyway to get Interdev to parse Perl?  Is there a better editor I
should use instead?

ken




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

Date: Tue, 17 Aug 1999 17:11:14 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: Write - multiple access
Message-Id: <7pc59b$kf3$1@news.mch.sbs.de>

In article <7pc0ca$gds$1@jaydee.iway.fr>, "Pascal HOARAU" <pascal@stnfrance.com> wrote:
>hello
>who can give me a valid and profesionnal solution to keep people from
>writing in a file that is already opened for writing.
>That is for a forum which can be visited 10M times per day ...
>
Allright, let's assume a peak hour of 2M (why not), so we'll have
about 556 updates/appends per second. That's not bad at all.

So you may not want to do an exclusive locking on the whole
file, but only on the relevant part(s) to be updated/appended, maybe ?
So if flock() is not for you, maybe you could try fcntl().

Oh, but what systems are you going to run this thing on ?
Do they support flock, fcntl, lockf, ... ?
And how big a file are we talking about ?

>(please to avoid telling me about the "lock" file/sleep(1) method)
>
BTW, with Time::HiRes you could sleep for microseconds :-)

HTH,

Michel.


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

Date: 17 Aug 1999 13:52:44 -0500
From: Kent Perrier <kperrier@blkbox.com>
Subject: Re: www.perl.org
Message-Id: <29FD66378A8BDD52.90400767003CB131.E3E27BA0A4897396@lp.airnews.net>

brian@pm.org (brian d foy) writes:

> 
> that wouldn't have worked for what i needed to accomplish.  i have,
> however, added a pointer in the realm string so that the new address
> shows up (hopefully) in the auth dialog.
> 

It does...

Kent


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

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 99)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

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" from
almanac@ruby.oce.orst.edu. The real FAQ, as it appeared last in the
newsgroup, can be retrieved with the request "send perl-users FAQ" from
almanac@ruby.oce.orst.edu. 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" from
almanac@ruby.oce.orst.edu. 

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V9 Issue 567
*************************************


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