in reply to Modules for catching the output of UNIX/Linux commands
If you want Perl structures, maybe consider looking at the Perl functions. For example, ls is basically readdir combined with stat.