Hi, I should mention that I am a beginner. I would also like to apologize if anyone has seen this message already, as I posted on a few other lists as well. I...
236
Greg Flowers
gregoryf@...
Apr 9, 2000 5:26 pm
Check the permissions on the directory/file that you are trying to write to....
237
Angi
angib@...
Apr 9, 2000 5:39 pm
Hi, The permissions have been set to execute, there is read/write access on the directory. I am able to open and write to this file using ASP, so I am assuming...
238
Aram Mirzadeh
awm@...
Apr 9, 2000 5:45 pm
Just as a test, try writing a very simple perl program and just opened the file and closes the file. See if that works, because the code looks right. ...
239
Ingenue
nikita@...
Apr 9, 2000 9:18 pm
Did you use "die" to see if there's any problems that get put into '$!' ? open (F, "> /path/to/file") or die "$!\n"; ... From: "Angi" <angib@...> ...
242
Ingenue
nikita@...
Apr 10, 2000 6:37 pm
Angi, You should use the absolute path to the file, not the relative one. For example: open (F, "/home/www/foo.com/cgi-bin/temp/550330623.html") or die...
243
Angi
angib@...
Apr 10, 2000 7:22 pm
Hi, I just sent a reply about my directory path, and it seems that I should not have had a / before cgi-bin. Thanks to everyone who helped (on all lists!) Angi...
244
Greg Webster
greg@...
Apr 12, 2000 1:17 am
Weird situation... I have a script which right now creates an array like: $FORM{adminemail} (where adminemail is the key to a value) I would like to convert...
245
Greg Webster
greg@...
Apr 12, 2000 3:26 am
The line below that says: $$adminemail = $FORM{adminemail} should say: $adminemail = $FORM{adminemail} Thanks! ... -- "The world's as ugly as sin, and almost...
246
Tom Barron
tbarron@...
Apr 12, 2000 1:16 pm
... How about this? foreach $key (keys(%FORM)) { eval("\$$key = \"$FORM{$key}\""); }...
247
Dan Boger
dan@...
Apr 12, 2000 4:00 pm
On Wed, 12 Apr 2000 08:14:54 -0500 Tom Barron <tbarron@...> wrote ... or this (without the eval): foreach $key (keys %FORM) { ${$key} = $FORM{$key};...
248
Leeloo Dallas
leeloo.dallas@...
Apr 16, 2000 7:09 pm
I am trying to make a ffa link page for my site but am having trouble modifying the code as there are no instructions any help is appreciated. thanks...
249
Leeloo Dallas
leeloo.dallas@...
Apr 16, 2000 7:21 pm
i need some help editing a perl script. Thanks...
250
Tom Barron
tbarron@...
Apr 17, 2000 12:45 am
... What is that you're trying to do? We can't really help much without details. Tom...
251
Dan Boger
dan@...
Apr 19, 2000 4:18 pm
Does anyone know offhand how to do a "touch -r" from within perl? I want to modify the timestamp of a file, and I'd rather not launch any outside commands......
252
Smith, Eric - WPAFB/Y...
eric.smith@...
Apr 19, 2000 4:48 pm
... Sounds like you want Perl's "utime" function. You can set atime and mtime with utime... utime($atime, $mtime, $file); If you only want to change one, you...
253
pdistant@...
Apr 21, 2000 3:49 pm
Does anyone know how to create a RE to filter out all html tags within a file or string? i.e. matching all tags (bold, font, table tags etc.). I would...
254
Dan Boger
dan@...
Apr 21, 2000 3:53 pm
On Fri, 21 Apr 2000 15:49:17 -0000 pdistant@... wrote ... well, this is not a perfect solution, but this will work for most basic html... $file =~...
255
Ingenue
nikita@...
Apr 21, 2000 5:08 pm
s/<.*>//g; or in vi... :1,$:s/<.*>//g ... From: <pdistant@...> To: <perl-beginner@egroups.com> Sent: Friday, April 21, 2000 8:49 AM Subject:...
256
Antonio A R N
antonio.neves@...
Apr 21, 2000 9:10 pm
Hi, Supose that I have a file called "t.txt" which is not empty. After I run ###Program 1### it empties the file "t.txt", but when I run ###Program 2### it...
257
Ingenue
nikita@...
Apr 21, 2000 9:21 pm
Program 1 is wrong. You do not open a file in one sub, then close the file handle in another. Using ">file" sets the fp to the begging of the file for write. ...
258
Dan Boger
dan@...
Apr 21, 2000 11:09 pm
what's wrong with it? why can't you do what program #1 does? the In typeglob is a global one, no? if it is, it should work just the same in both cases? Dan...
259
Ingenue
nikita@...
Apr 21, 2000 11:17 pm
It's wrong because the structure isn't correct -- for the exact reason that I gave. If you had ever contributed to a program project, you would know this as a ...
260
Dan Boger
dan@...
Apr 21, 2000 11:30 pm
... yes, that's all very true - I don't think you should write code like this. However, I still don't know why the two programs work in different ways.....
261
Tom Barron
tbarron@...
Apr 21, 2000 11:45 pm
... They don't work in different ways on my machine. With both programs, t.txt winds up truncated to 0 bytes. One possibility I can think of is that perhaps...
262
Ingenue
nikita@...
Apr 21, 2000 11:52 pm
They don't work in different ways -- they both delete file's contents and create an empty file (not literally, but to the end-user). He just didn't run his...
263
antonio.neves@...
Apr 23, 2000 1:03 pm
Hello everyone, and thanks for the help. I guess I should make clear the purpose of the code I sent before. It seems that the flock wouldn´t work (would not...
264
Jayson Williams
jaysonjfw@...
Apr 24, 2000 12:58 pm
Hello all, I have read quite a bit of information on ref's, and as an advanced newbie I get very confused when it comes to working with them. Perls "more than...
265
Chris Javillonar
javillonarc@...
Apr 24, 2000 5:09 pm
Help, I pray that you would help me. First of all, I have to admit that I am relatively new to Linux and Perl. I am a computer literate biochemist who had to...
266
Tom Barron
tbarron@...
Apr 24, 2000 6:26 pm
... Hi, Chris. It sounds like you need to install or reinstall the perl module builtin. There are instructions for updating modules from CPAN (I think for...