in reply to Re: Too little biggy problems
in thread Too little biggy problems

Run the perl -c on your local machine if you are developing on a linux (or unix) box. (Of course, make sure you have the same Perl modules installed on your local box.

If there was ever a time for you to use warnings, use strict and use diagnostics, this is one of them.


Peter @ Berghold . Net

Sieze the cow! Bite the day!

Test the code? We don't need to test no stinkin' code! All code posted here is as is where is unless otherwise stated.

Brewer of Belgian style Ales

Replies are listed 'Best First'.
Re: Re: Re: Too little biggy problems
by ido50 (Scribe) on Aug 01, 2003 at 19:19 UTC
    The Mad Hatter: Thanks, I'll do that.
    blue_cowdawg: I'm writing on windows, but writing for linux (Well, FreeBSD to be quite honest). I'll try anyway to run perl -c on the script.
    And about the use strict, warnings and diagnostics pragmas, I'll read more about them and do that also.
      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.
        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.
      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.

      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.
        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