in reply to Re^4: I'm trying to consolidate my functions into subroutines
in thread I'm trying to consolidate my functions into subroutines

what is an example of a Perl builtin or even in a module function that is pure?
  • Comment on Re^5: I'm trying to consolidate my functions into subroutines

Replies are listed 'Best First'.
Re^6: I'm trying to consolidate my functions into subroutines
by KurtZ (Friar) on May 17, 2017 at 21:36 UTC
    Mathematical functions like sqrt() are normally pure.

    Built-ins changing $_ or other globals like m// are not.