Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 1922👍, 0💬
Popular Posts:
What are the standard ways of parsing XML document? XML parser sits in between the XML document and ...
What will be printed as the result of the operation below: main() { int x=10, y=15; x = x++; y = ++y...
What is a delegate ? Delegate is a class that can hold a reference to a method or a function. Delega...
What is shadowing ? When two elements in a program have same name, one of them can hide and shadow t...
Can you please post OpenLink Endur related FAQ's,tutorials,document s.Thanks