in reply to Re^2: Syntax Perl Version support $c = () = $a =~ /\./g
in thread Syntax Perl Version support $c = () = $a =~ /\./g

Note that the content of the "anonymous" reply you replied to indicates it was authored by our Worst Nodes champion - who's recently introduced an annoying new tactic of replying "anonymously" ... and then sometimes agreeing with himself by replying to the "anonymous" post as sundialsvc4! I don't know why he's started doing this only recently.

FWIW, I've often used the goatse operator in production code at work without wrapping it in a sub - though I always provide a one-line comment pointing to the goatse operator documentation. Having discussed the use of this operator during code reviews with a number of serious C++ programmers (but occasional Perl programmers) at work, I can report they've all been happy with this approach because, as skilled programmers, once they became aware it's a standard Perl idiom, they found the perlsecret documentation clear and easy to understand.

  • Comment on Re^3: Syntax Perl Version support $c = () = $a =~ /\./g

Replies are listed 'Best First'.
Re^4: Syntax Perl Version support $c = () = $a =~ /\./g
by h2 (Beadle) on Jul 17, 2018 at 22:36 UTC
    In my case, I do want this wrapped up and safely out of view, because the potential contributors would be confused by such syntax, plus I do actually want it used as a utility subroutine to avoid scattering this type of stuff around the program, specifically to be able to update/tweak/optimize these tools as I go along. But thanks for the heads-up.