Keep It Simple, Stupid | |
PerlMonks |
Re: Reading the file table off a CDby webdaemon (Acolyte) |
on Mar 16, 2001 at 22:49 UTC ( [id://64972]=note: print w/replies, xml ) | Need Help?? |
perl -e'@a=`find /mnt/cdrom`=~ /\n(.*)\n/g;print @a;' This one line will fill and dispay the @a array with all the files on of the cdrom Some perl gurus will say that using find and quotes is for lazy people .. but isn't it perl philosophy ?
In Section
Seekers of Perl Wisdom
|
|