Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How do I do fill_in_the_blank for each file in a directory?
How do I do fill_in_the_blank for each file in a directory?
✍: Guest
Here's code that just prints a listing of every file in the current directory:
#!/usr/bin/perl -w
opendir(DIR, ".");
@files = readdir(DIR);
closedir(DIR);
foreach $file (@files) {
print "$file\n";
}
2013-08-23, 2349👍, 0💬
Popular Posts:
How To Select All Columns of All Rows from a Table? - MySQL FAQs - SQL SELECT Query Statements with ...
What is hashing? To hash means to grind up, and that's essentially what hashing is all about. The he...
How To Specify Two Background Images on a Page? - CSS Tutorials - Page Layout and Background Image D...
How To Assign Query Results to Variables? - Oracle DBA FAQ - Working with Database Objects in PL/SQL...
Where Do You Download JUnit? Where do I download JUnit? I don't think anyone will ask this question ...