in reply to Using perl for creating project folders

Did you test it on a unix box too?
It dies on line 19:   Can't chdir to $project: Permission denied.
- for some strange reason the directory has 1407 for permissions, not 0775 as you would have wanted it (octals misunderstood and got converted to octals again?).

In   sub validate   the   s/\W//g;   does all you need, you don't have to care about blanks when you take away all non-word-characters anyway.

Cheers, Sören

  • Comment on Re: Using perl for creating project folders

Replies are listed 'Best First'.
Re: Re: Using perl for creating project folders
by neniro (Priest) on Apr 04, 2004 at 17:36 UTC
    At home I use WindowsXP for developing - the linux box is in my office. On Windows it works fine, of course chmod is silently ignored. I've just calculated it and 0775d is 1407o, thats ugly. I must test it under linux, to remove the bugs.

    I got it!

    You need to explicit oct the rights for chmod.

    Thank you!