Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re(4): opening new file in different directory

by graq (Curate)
on Oct 24, 2001 at 18:47 UTC ( [id://121126]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: opening new file in different directory
in thread opening new file in different directory

I am not convinced it has anything to do with the permissions on the file or directory.
From the paths used in the original post, it is not a Windoze machine, so with a little cut'n'paste from a Mandrake box:
__PASTE-ONE__ ~/temp/graq> ls -l -r-------- 1 graq graq 7 Oct 24 15:50 Testing.txt ~/temp/graq> cd .. ~/temp> chmod 100 graq ~/temp> perl relpath.pl graq/Testing.txt: Permission denied __END__
So the error is Permission denied for a file with permission problems.
__PASTE-TWO__ ~/temp> cat relpath.pl #!/usr/bin/perl -w use strict; my $file = 'graq/Testing.txt'; open( TESTING, ">$file") or die ( "$file: $!\n" ); print TESTING `date`; close TESTING; __END__

<a href="http://www.graq.co.uk">Graq</a>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://121126]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found