Learning Perl on Win32 Systems

Learning Perl on Win32 SystemsSearch this book
Previous: 13.5 Modifying TimestampsChapter 13
File and Directory Manipulation
Next: 14. Process Management
 

13.6 Exercises

See Appendix A, Exercise Answers for answers.

  1. Write a program that works like del, deleting the files given as command-line arguments when the program is invoked. (You don't need to handle anfREFncargumeofEM CLASS="emphasis" >del, .)P >a SC>@ARGVCITODEL>hafrayhen the program isamprt

      Write a program that works like derenameEM >, derenamg the filer thmmand-line arguments o has fict1o Dimmand-line arguments (You don't need to handle anfREFncargumeofEM CLASS="emphasis" >derenameEM >, de anmeilhat theworguments w.) u domayhehero ha1o sidtr howo handle ans firenamehen the prd, tinion

            Previous: 13.5 Modifying TimestampsNext: 14. Process Management&nL ALIGN="LEFT" WIDTH="515" TITLE="footer"> fo|A CLEF="../sepgraedex.htm" ALTLE="13rgram tmg Perl oAL>rgram tmg Perl oEM> fo|A CLEF="../seadvpgraedex.htm" ALTLE="13Advanc torl onrgram tmg P>Appdvanc torl onrgram tmg PEM> fo|A CLEF="../secks ok">edex.htm" ALTLE="13rl onCks ok">SC>rl onCks ok">EM> fo]FONT >