
darian
Deleted
Mar 3, 2000, 9:26 AM
Post #3 of 3
(1531 views)
|
When you put something in single or double quotes Perl takes it as a literal. So with your code: $dir = "directory"; mkdir '$dir', 0777; Perl looks at '$dir' just as it is not value of the variable. Try this: $dir = "directory"; mkdir $dir, 0777; One thing to remember though is your permissions of 0777 means anyone can access and write to that directory. So before you go put something into production make sure that is what you really want.
|