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.