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, 2547👍, 0💬
Popular Posts:
Do You Know the Book "JUnit in Action"? You should know this book. It received some good reviews. Ti...
Can you prevent a class from overriding ? If you define a class as “Sealed” in C# and “NotInheritab...
How do we access attributes using “XmlReader”? Below snippets shows the way to access attributes. Fi...
How Is the Width a Parent Element Related to Child Elements? - CSS Tutorials - Understanding Multipl...
What Is Posting? Posting is an event that writes Inserts, Updates and Deletes in the forms to the da...