Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Anonymous Monk
on May 17, 2017 at 20:30 UTC ( [id://1190501]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1190501]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found