© William "Bo" Rothwell of One Course Source, Inc. 2019
William "Bo" RothwellBeginning Perl Programminghttps://doi.org/10.1007/978-1-4842-5055-6_11

11. Filesystem and Process Control

William “Bo” Rothwell1 
(1)
San Diego, CA, USA
 

Controlling the Filesystem Within Perl

Perl provides several built-in statements that allow you to control the filesystem (files and directories) while within Perl. With these statements, you can
  • Change directories

  • List files

  • Make directories

  • Remove directories

  • Remove files

  • Rename files

  • Make links (not covered in this chapter)

  • Change permissions

  • Get information regarding a file

Perl also allows you to run operating system (OS) commands from within your Perl script. Most operating systems provide commands that allow you to modify the ...

Get Beginning Perl Programming: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.