in reply to Re^3: looking for feedback on my first script
in thread looking for feedback on my first script
We are off of my main point!
The return value of sprintf() means nothing in this context, but it will returned absent an explicit return statement. Why return a string that the caller doesn't care about and means nothing as opposed to returning a more simple undef value? I am simply saying that I prefer having explicit return values. What your post said is "correct". Please do not take this as any real argument. We are talking about a very fine point here, not any real criticism.
Ok, I see the situation better now.
I would have written return sprintf "...."
That is just a matter of coding style. Not any real "problem".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: looking for feedback on my first script
by shmem (Chancellor) on Jan 09, 2021 at 19:20 UTC | |
|
Re^5: looking for feedback on my first script
by Anonymous Monk on Jan 09, 2021 at 20:01 UTC | |
by Marshall (Canon) on Jan 09, 2021 at 22:21 UTC | |
by haukex (Archbishop) on Jan 10, 2021 at 00:58 UTC | |
by shmem (Chancellor) on Jan 10, 2021 at 02:53 UTC | |
by Marshall (Canon) on Jan 14, 2021 at 03:36 UTC |