in reply to Re^3: Any differences between method and method()? (=>)
in thread Any differences between method and method()?

thanks for your detailed reply. I have one more question. What do the syntax +FUD and -FUD mean here?

  • Comment on Re^4: Any differences between method and method()? (=>)

Replies are listed 'Best First'.
Re^5: Any differences between method and method()? (=>)
by AnomalousMonk (Archbishop) on Aug 19, 2012 at 05:11 UTC

    -FUD is intended (by the authors of Perl) to emulate the  -whatever syntax of Tcl/Tk options. The leading '-' is appended to the string into which the  FUD bareword is converted in the presence of the fat comma, any stricture against such conversion being locally nullified.

    +FUD is intended (by various monks replying) to illustrate the effect of the unary  + operator on the string into which the  FUD bareword is converted in the presence of fat comma: none at all. Contrast this with the effect of the  ! logical negation operator in the  !FUD case.

    To answer your question more generally, the syntax +FUD and -FUD (and !FUD and ~FUD and maybe some others) means that someone had a bright (and well intended) idea and far too much time on their hands, and now we're stuck with it.

Re^5: Any differences between method and method()? (=>)
by Anonymous Monk on Aug 19, 2012 at 04:38 UTC
    :)

    + means + and - means -

    + stringifies to "" while - stringifies to "-"