How to remove a directory in perl?



How to remove a directory in perl?..

Answer / Jogendra Singh Rathore

To remove a directory in Perl, you can use the 'rmdir' function. Here's an example: rmdir('<directory_path>') or die "$!";

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

“Perl regular expressions match the longest string possible”. What is the name of this match?

1 Answers  


How can the user execute a long command repeatedly without typing it again and again?

1 Answers  


How many types of operators are used in the Perl?

1 Answers  


How to code in perl to implement the tail function in unix?

1 Answers  


Explain subroutine?

1 Answers  


How many types of primary data structures in Perl and what do they mean?

1 Answers  


In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?

1 Answers  


write a script to generate n prime no.s?

2 Answers   Persistent,


Explain goto label, goto name, and goto expr?

1 Answers  


If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?

1 Answers  


How to read a file into a hash array?

1 Answers  


When would `local $_' in a function ruin your day?

1 Answers  


Categories