Re: Looking for a faster way of getting a directory listing from a disk
- From: rvtol+news@xxxxxxxxxxxx (Dr.Ruud)
- Date: Sat, 15 Jul 2006 00:44:12 +0200
Rob Dixon schreef:
chomp (my @files = qx($command));
chomp @files;
Why twice?
print "$_\n" foreach @files;
unchomp? ;)
Variant:
{ local ($\, $,) = ("\n", "\n"); print @files }
--
Affijn, Ruud
"Gewoon is een tijger."
.
- References:
- Prev by Date: Hash
- Next by Date: awesome help, but, a question
- Previous by thread: Re: Looking for a faster way of getting a directory listing from a disk
- Next by thread: glob and Traversing a Directory
- Index(es):
Relevant Pages
|
|