ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activeperl
activeperl
Re: Single file access through multiple perl programmes
by Andy Bach other posts by this author
Sep 1 2008 12:23PM messages near this date
Re: Single file access through multiple perl programmes | Re: Single file access through multiple perl programmes
>  What i am trying to do is,i have to run multiple perl programmes all at
once
to change the contents of a text file. and the text file would contain 2
things. Test name and status.

Yeah, I'd say this is more a computer science/methodology question, rather
than a perl code question.  Using a single flat file for this is probably
the least effective solution.  You'll be doing all the locks, access,
update work yourself and likely running into unexpected results. A database
(even something like sqlite) will do this much better and avoid reinventing
20 wheels.  But that's a different point.

The Perl Cookbook does have a section on this sort of file locking/shared
access you might want to read over.  As long as all your scripts behave and
such, you can do it w/ a single file but ...

a

a
-------------------
Andy Bach
Systems Mangler
Internet: andy_bach@[...].gov
Voice: (608) 261-5738 Fax: 264-5932

Don't get suckered in by the comments -- they can be terribly misleading.
Debug only code.
                -- Dave Storer

_______________________________________________
ActivePerl mailing list
ActivePerl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Sattapattu
Sattapattu
Andy Bach
Geoff
John Hornbuckle
Moshe Sharon
Howard A. Bullock
Lyle
Bill Luebkert

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved