Hello Monks,
I wrote a simple script to display a list of files in a directory:-
The files in the directory are f1 f2 and g3. But I'm getting an output as:-opendir(DIR, $dirname); @FILES= readdir(DIR); foreach $FILE (@FILES){ print $FILE."\n"; } closedir DIR;
In reply to Problem in displaying files by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |