The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

tmaher (37) [Avatar] Offline
#1
When running Perl on Unix systems, you can always run the <TT>ls -l</tt> command
via <tt>system</tt> or command interpolation to obtain a file listing. To demonstrate
techniques for achieving OS-portability, pages 217-218 show how to obtain <tt>ls</tt>-like
reports by harvesting file-data from Perl's <tt>stat</tt> function.

But that script becomes much more valuable with certain enhancements, such as
error checking and symbolic link handling, using techniques covered in Part 2 of the book.

To show you what I mean, I've provided an enhanced version called <tt>listfiles</tt> at
MinimalPerl.com.


-Tim