View Single Post
Old 21st November 2011, 17:12   #18  |  Link
vampiredom
Registered User
 
Join Date: Aug 2008
Posts: 233
Quote:
No need for the 'default' line, since you have made err_msg a mandatory parameter (by not putting quotes around the name in the function header). However it should be declared as a string:
Oops! Pure sloppiness on my part. Edited and fixed. Thanks!

Quote:
Why don't you keep it simple and call your variable ScriptName?
Well, whether "_" or "ScriptName" is simpler is a matter of opinion, I guess. I like the _ because it is so amazingly brief (I am actually surprised you can use that as a variable name!) Really though, it reminds of using Perl's $_ variable ... and I love Perl.

Last edited by vampiredom; 21st November 2011 at 17:20.
vampiredom is offline   Reply With Quote