On 02/13/2008 11:34:56 AM, [EMAIL PROTECTED] wrote:
-> I've been going over some listings and I found code
->
-> like the following:
->
->
->
-> "./directory/file.txt" and
->
-> "../directory/file.txt"

this is not really a perl question, but since perl does respect the reference:

"." and ".." are relative directories. They ALSO have a real (absolute) name.

"." refers to the directory in question, eg. your present working directory (pwd). So if you cd to /home/mine, "." now refers to /home/mine (that's the real name).

".." refers to the directory above "." in a hierarchy. In /home/mine ".." would refer to /home.

You really need to find a simple explanation of the unix filesystem, of which i am sure there are many on the web; otherwise you are going to have have more problems. Also try:

www.ss64.com/bash/

which explains shell commands like ls and cd, since those commands do not have their own manual pages.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to