Frank: CCing the list since you didn't indicate that this was a private message. I'm assuming you meant to "reply to all" (which is probably what you should have done anyway). :)
On Wed, Sep 28, 2011 at 12:55 PM, Frank Kleinburg <fklei...@gmail.com> wrote: > Brandon, > > You nailed it.. The one change from "INSTNCE => {%Instance}," > to "INSTNCE => \%Instance" and presto.. I'm glad I could help. :) > And sadly once again, once you have the correct answer, it is > as obvious as the nose on ones face.. > > The key "INSTNCE" doesn't contain a hash, but instead refers to > a hash.. So when It is defined it must be defined as being a > reference to a hash.. > > The order and all of that were fine.. The order might be fine with no strict, but I think with strict enabled it would fail (unless you had already declared the variables). > Thanks mucho, and know the first two lines I ever add to a perl > script are: > > #!/usr/bin/perl -w use strict; perl -w and the 'warnings' pragma are not entirely the same. The -w option will enable warnings for the entire program, *including* any modules that you use, some of which may not be warnings-compatible (meaning that you could get warnings for other people's code that actually works fine and isn't your concern). For this reason I think that it is generally recommended to use the 'warnings' pragma in each source file instead. > > They are even in my test little scripts.. > > Thanks millions.. > > Flk > > p.s. As far as the name go, I agree, I've had to cut and paste > to make sure I spelled the names consistently (thank goodness > for notepad++).. > > I do it so the code looks pretty and to minimize the number of > lines of code which extend beyond about 132 characters.. This > way I can print my code with the printer set to portrait mode, > and save a little paper.. I'm all for limiting line length, but it's give and take. There's no gain if the shorter line lengths are more difficult to read and write due to the obscure naming convention. :) I limit my line lengths to 75 characters (74 actually[1], so there's a little bit of buffer room before 80), and I have no trouble doing so with descriptive names. Even in C#, which tends to be quite a bit more verbose than Perl. You just have to break your lines up at appropriate word boundaries. [1] In E-mail I try to remember to limit them to 65 characters so they hopefully won't wrap for anybody. Regards, -- Brandon McCaig <http://www.bamccaig.com/> <bamcc...@gmail.com> V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl. Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org> -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/