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 |
“Perl regular expressions match the longest string possible”. What is the name of this match?
How can the user execute a long command repeatedly without typing it again and again?
How many types of operators are used in the Perl?
How to code in perl to implement the tail function in unix?
Explain subroutine?
How many types of primary data structures in Perl and what do they mean?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
write a script to generate n prime no.s?
Explain goto label, goto name, and goto expr?
If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?
How to read a file into a hash array?
When would `local $_' in a function ruin your day?