Date: 5 Sep 2001 03:44:00 GMT From: Damian James Subject: Re: Perl Commands Not Working Message-Id: In article <3B95927C.ABB834AF@home.com>, What A Man ! wrote: > Can anyone tell me why the following perl commands will not work in a > script on my webserver? > > unlink Needs write permission to the directory containing the file > chmod Needs to be owner of the file (or root) > open > close Needs read permission only for open FH, "file". > I've asked my webhost, and they don't know. These are running on a Linux > server with Apache and Perl version 2.6. I think you might want to check that version number again. Try typing perl -v at the command line. > I have my files chmodded to > 755, but I don't think it's a permissions problem (could be wrong > though). I think it's a permission problem. 755 means only the owner of the file has write permission for it. Is the script in question running as the user who owns the file, or as some other user (like, the web server user)? > I'm wondering since they use SSH telnet, if that could be > what's messing up these commands. No, I think that's extremely unlikely. Are we talking about command line or CGI scripts here? > Any ideas would really be appreciated. I've spent 3 days trying to > figure this out. Cheers, Damian -- @:=grep!(m!$/|#!..$|),split//,;@;=0..$#:;while($:=@;){$;=rand $:--,@;[$;,$:]=@;[$:,$;]while$:;push@|,shift@;if$;[0]==@|;select$,, $,,$,,1/80;print qq x\bxx((@;+@|)*$|++),@:[@|,@;],!@;&&$/} __END__ Just another Perl Hacker, ### rev 3.3 -- stupidectomy performed :-)