Did you say that you are writing this script on windows box? Before I thought you said that you weren't. The more correct information you can give us, the more useful help we can give you. | [reply] |
Oh, sorry man, I guess there was a little missunderstanding (I'm not so familiar with this terminology). I am working on a Windows OS, but my site's server is a FreeBSD one. I thought you meant the server's OS. sorry.
| [reply] |
Well, just cahnge your she-bang line. It is probably #/usr/bin/perl
make it #/usr/bin/perl -W
and you will get more warnings. | [reply] |
Update: The shell script fixed the problem for me. Cool thing. It gave me a message that I used mkdir() with not enough arguments, which is weird 'cause the MASK argument is optional. I added 0777, and the script works great now.
Thanks a lot for that.
P.S. I used Internet Explorer first to execute the shell script, but the browser wanted to download it. Mozilla executed it good.
Now I'm gonna read the article about the strict, warnings and diagnostics pragmas and see how it goes on.
Thanks again guys, you've been very helpful, and I hope in the (not so long) future I will be able to consider myself as a Perl monk (Some boring notes about myself: I'm 19 from Israel, studying Mechanical Engineering in University with a full scholarship from the Israeli Army. Currently working on Windows, but soon moving to Debian GNU/Linux. I started with Perl about 10 months ago. I've taken a few books from my university's library - Programming Perl, Perl Cookbook and Mastering Regular Expressions. My studies pretty much delayed my progression in Perl, but I'm on vacation now so I'm hoping to take some serious progress with my Perl experience. Hey weird thing: I've taken those books 10 months ago, and nobody ordered them every since, they're still at my house...).
Am I rambling? I'm definitely rambling. | [reply] |
In 5.00503 the mask argument was required, not optional. It became optional in 5.6.
What version of perl is running on the server? If it is 5.00503, perldoc.com has the docs available online. A good read of 5.6's perldelta should be quite useful.HTH
| [reply] |