in reply to Re: Re: Re: Re: Re: Cookie not getting stores
in thread Cookie not getting stores
I would really like to thank you for making the rest of my programing days more than a million times easier to manage and debug. I looked over your code countless times and have taken to heart how you layout your script.
For example, I always wrote things like:
Which got really confusing having the trailing { on the end of the line. This made it so much more difficult to find which brackets went with which and caused so many 'missing right curly bracket' warnings in the past.if ($pass eq $admin pass) { if (defineded $this) { }
Your method, which I'm using from now on:
If nothing else, thank you for displaying that code. It really is much better than what I've been doing and will save loads of time in each script that I write.if ($pass eq $adminpass) { #print do everything here if (defined this) { #other things would go here } #nice closing bracket, you can see where they line up } #still matches the first bracket since it doesn't get attached t +o the end of the line
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Re: Cookie not getting stores
by chromatic (Archbishop) on Dec 26, 2003 at 22:07 UTC |