|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
How do I create a directory, directories for that matter, in Perl?
TIA, Kyu |
|
#2
|
||||
|
||||
|
Assuming this is on a UN*X box, something like this would work:
Code:
mkdir("$path_to_new_folder");
# Adjust chmod setting as needed
chmod 0777, "$path_to_new_folder";
unless (-w "$path_to_new_folder") {
# Test if folder created
# Generate an error, not a valid directory folder
}
Very basic Perl! ![]() Mickalo
__________________
Thunder Rain Internet Publishing Custom Programming & Database development Providing Personal/Business Internet Solutions that work! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Directory Creation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|