"I'm trying to print all the files and directories..."
Someone else did it already for you:
#!/usr/bin/env perl use strict; use warnings; use IO::All; use feature qw(say); my $dir = shift || q(.); my $io = io($dir); say for $io->all(0);
See also IO::All and File::Find::Rule.
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
In reply to Re: Recursive Directory print
by karlgoethebier
in thread Recursive Directory print
by zavo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |