in reply to #!/usr/bin/perl -w

cool, thanks all! :)
seems kinda weird though, that I'd have to have the variable set to something.. but that's ok..figured out a way to get it working!

perlmonks rocks as always..
-brad..

Replies are listed 'Best First'.
RE: RE: #!/usr/bin/perl -w
by chromatic (Archbishop) on Oct 04, 2000 at 04:02 UTC
    You aren't *forced* to have the variable set to something, but there's no really good reason to keep variables around without sticking something in them.

    It's just a warning, but it's a good sign that you're not quite done programming yet. :)

      > It's just a warning, but it's a good sign that you're not quite done programming yet. :)

      You mean there's a point at which one's done programming? Gee, and I always thought the client would call again tomorrow asking for something else to be included! <snicker>

      Seriously, I have found that one of the main reasons to use -w is not for immediate benefit as chromatic's post might suggest, but it keeps you from having to figure out issues later on when you come back to maintain the code. Its a win-win situation: safer now, and better later...

      #!/home/bbq/bin/perl
      # Trust no1!
        You mean there's a point at which one's done programming?

        Yes, when I've implemented all of the features I want to implement and the code generates no warnings or errors.

        (That's why I like the Jellybean screenshots up on my page.)

        If I'm getting uninitialized value warnings, that's a sign that some part of my logic is broken, and there's the potential that something really bad is lurking beneath the surface.

        Maybe that's the Chthonic school of programming -- it is uninitialized in here. You may be eaten by a grue.