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

Mathematical functions like sqrt() are normally pure.

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

  • Comment on Re^6: I'm trying to consolidate my functions into subroutines