LP10.3 Assignment: Perl Resources Directions Describe one simple problem that might be addressed using the Perl Scripting Language. Find three separate on-line resources for Perl and include their Web...

1 answer below »


LP10.3 Assignment: Perl Resources



Directions



  1. Describe one simple problem that might be addressed using the Perl Scripting Language.

  2. Find three separate on-line resources for Perl and include their Web addresses and a brief description of each one in a single document.

  3. How might any or all of the resources you've cited help solve the problem mentioned in step 1 of this assignment?


Provide answers within the body of a single document and save to a Microsoft Word or compatible RTF document format. Include chapter and page references with each answer. Submit this assignment to your instructor via the dropbox “LP10.3 Assignment: Perl Resources.”



Answered Same DayDec 22, 2021

Answer To: LP10.3 Assignment: Perl Resources Directions Describe one simple problem that might be addressed...

Robert answered on Dec 22 2021
122 Votes
Drug Testing for Welfare Recipiens
    Perl Scripting Problem and Resources
    Learning Assignment
    
Pro
blem
The task to be done using a scripting language is to delete empty directories within an existing directory. The program requires to take a directory name as an input from the user and then search for the presence of this directory on the disk. If this directory is found, then the program should move around the directory recursively and then search for the presence of all empty directories within this directory. A directory must be considered empty if it contains zero number of files. The program should also delete all such empty directories and return successfully to the calling shell.
This program can be scripted in Perl scripting language following three main steps:
· Parsing a directory structure.
· Recursively looping through the directory and its sub-directories to look for empty directories (directories with no files within them).
· Deleting the empty directories and returning to the loop to search for more such occurrences.
Problem Solution Using Perl
The script to solve the above stated problem goes below:
#!/usr/bin/perl
use strict;
foreach (@ARGV){
print...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here