This shows you the differences between two versions of the page.
kurs:opendir [2014/09/10 21:22] |
kurs:opendir [2014/09/10 21:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <code> | ||
+ | use strict; | ||
+ | use warnings; | ||
+ | opendir (DIR, '.'); | ||
+ | my @dir = readdir(DIR); | ||
+ | $, = "\n"; | ||
+ | print @dir; | ||
+ | </code> |