in reply to Useless use of string in return statement

FWIW, note also that the
    return "SOMETHING";
statement in the OPed code is unreachable.


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^2: Useless use of string in return statement
by Bod (Parson) on Apr 13, 2021 at 14:59 UTC
    FWIW, note also that the
    return "SOMETHING";
    statement in the OPed code is unreachable.

    Yes - I should have pointed out the reason for that line in the question...
    It was added as part of trying to work out what was actually happening. Having a definite return ensured that I was not getting a return value from the last evaluated expression. I did try to eliminate some of the possibilities before turning to the Monastery.