RE: Read Write to file .. need help

2005-01-14 Thread Graeme St. Clair
Oddly enough, I was improving the shining hour in a hospital waiting room earlier today by reading the camel book Chapter 23 Security. There is a good discussion of this whole topic, bearing very exactly on what Luinrandir is trying to do. L, if you haven't already got this book "Programming Perl

Re: Read Write to file .. need help

2005-01-14 Thread Ovid
Hi Luinrandir, > Anyone know about this? or can I just: > #Open to read > open (DataFile, "$_[0]")||die "Sorry, I can't open $_[0]\n"; > flock (DataFile,2); >@Data =; > #open to write > open DataFile, ">$_[0]")||DieNice3("Can't write to $_[0]"); > flock (DataFile,2); > foreach $Data(@Data

Read Write to file .. need help

2005-01-14 Thread Luinrandir Hernsen
I need to read and write to a file before allowing the anyone else to read or write. I found this on the web.. but it does not work...maybe its my version of perl? http://htmlfixit.com/cgi-tutes/tutorial_Perl_Primer_011_File_manipulation_with_Perl.php File Operation modes: open: <$file&path Re

Re: Use Strict

2005-01-14 Thread Shaun Fryer
> perldoc -f my > perldoc -f package > perldoc perlmod > perldoc Exporter Also along the same lines, you can get rid of alot of the grunt work by using the following on the unix command line (not sure about win32, sorry ... but try anyway). h2xs -AXn ModuleName The result will be a fully

RE: Use Strict

2005-01-14 Thread Graeme St. Clair
Thanks for the hint - mainly, I'd misplaced the $ sign (story of my life...). The problem is by no means fixed yet, as there are several other components which have been kind of bashed to fit and need to be straightened out, but I think I now know what to do. Rgds, GStC. -Original Message---