On Feb 13, 2008 8:34 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" > > > > but I've never seen the "./" and "../" things at the > > beginning of the path. I've tried to google these > > but had no luck. I've googled "file specification" and > > "directory specification" and got a lot of hits on stuff > > but nothing on what those symbols mean. So, I thought > > I'd ask here....so if you wouldn't mind explaining what > > they are to a newbie I'd appreciate it very much. Thank > > you. > > > That has less to do with perl than with the OS and how you navigate through directories. "./" refers to the current directory you are in so if you type "./file" it will look for file in your current location. "./directory/file.txt" refers to file.txt under "director" under your current location. Similarly ../ refers to parent directory. See http://en.wikipedia.org/wiki/Path_%28computing%29 for more info. I'd suggest looking up unix/linux basics on google.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/