Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about directories

Status
Not open for further replies.

DataSpy

Technical User
Nov 15, 2002
39
US
Hello, I am new to perl, I've been programming for 1 day. I was wondering if there is a way to display the name of the directory that you're in and also to to show folders of subdirectories and the files in them. Any help would be greatly appretiated.
 
at the command line type
Code:
perldoc cwd
will give you some of the info you're looking 4

also look up opendir, readdir, closedir

When you understand that, forget it and look up File::Find.
it's important to understand the basics b4 using short cuts
HTH
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top