in reply to Put "ls" in array

Hello, You could do so via the glob operator.
#!/usr/bin/perl use strict; use warnings; my @list = glob(".* *"); print $_, "\n" for (@list);