Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

RFC: Implicit Parallelization Pragma

by hardburn (Abbot)
on Jan 25, 2005 at 16:47 UTC ( [id://424933]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (defun func1 (x) (+ 1 (* 2 x)))
    
  2. or download this
    (func1 3)      ; Function call
    (+ 1 (* 2 3))  ; All occurrences of 'x' replaced with '3'
    (+ 1 6)        ; Reduce
    7              ; Reduce
    
  3. or download this
    (defun func2 (x) (+ 1 (* 2 x) (* 3 x)))
    
  4. or download this
    (func2 3)              ; Function call
    (+ 1 (* 2 3) (* 3 3))  ; All ocurrences of 'x' replaced with '3'
    
  5. or download this
    my @str_lengths = map { length } @strs;
    
  6. or download this
    my @str_lengths = do {
        use threadsafe;
        map { length } @strs;
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://424933]
Approved by Tanktalus
Front-paged by BrowserUk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-24 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found