in reply to Re^2: Forgot variable syntax for $var = funct() or "Funct failed\n";
in thread Forgot variable syntax for $var = funct() or "Funct failed\n" / Any experience with is_hostname()

Yes of course, it was implied in my first proposition. My point was that splitting a complex statement in two was also a valid way to disambiguate and obtain the expected value. I just used || in one case and // in the second for diversity.

  • Comment on Re^3: Forgot variable syntax for $var = funct() or "Funct failed\n";

Replies are listed 'Best First'.
Re^4: Forgot variable syntax for $var = funct() or "Funct failed\n";
by AnomalousMonk (Archbishop) on Jan 05, 2016 at 18:18 UTC
    ... implied in my first proposition.

    Yeah, on second look, I have to agree that the point I was trying to make was quite adequately made in your reply above.


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