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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing directory

Status
Not open for further replies.

Perl

Programmer
Joined
Aug 24, 2001
Messages
2
Location
FR
how do i print the contents of a directory using perl - i am using unix.

please help
 
There might be an easier way but this is how I do it.

opendir(DIR, "/path/to/your/directory");
@dir = readdir(DIR);
print("@dir");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top