in reply to
Re: random file selection
in thread
random file selection
The code at the bottom of this post seems to work nicely. Except that it only works with .pl files in the directory. Why?
Comment on
Re: Re: random file selection
Replies are listed 'Best First'.
Re: Re: Re: random file selection
by
derby
(Abbot)
on Jun 13, 2003 at 10:42 UTC
because the others are directories? The -f portion of the snippet extracts only the plaintext files from the list (see
perlfunc:_X
). Without a listing from the target directory, I cannot be more specific.
-derby
[reply]
In Section
Seekers of Perl Wisdom