Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

RE: RE: #!/usr/bin/perl -w

by chromatic (Archbishop)
on Oct 04, 2000 at 04:02 UTC ( [id://35208]=note: print w/replies, xml ) Need Help??


in reply to RE: #!/usr/bin/perl -w
in thread #!/usr/bin/perl -w

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

Replies are listed 'Best First'.
(bbq) RE: RE: RE: #!/usr/bin/perl -w
by BBQ (Curate) on Oct 04, 2000 at 16:17 UTC
    > 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://35208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found