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, 2469👍, 0💬
Popular Posts:
How To Check the Oracle TNS Settings? - Oracle DBA FAQ - ODBC Drivers, DSN Configuration and ASP Con...
Should synchronization primitives be used on overrided bean methods? No. The EJB specification speci...
Can you explain why your project needed XML? Remember XML was meant to exchange data between two ent...
Can Java object be locked down for exclusive use by a given thread? Yes. You can lock an object by p...
How To Run a JUnit Test Class? A JUnit test class usually contains a number of test methods. You can...