Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

RFC: Implicit Parallelization Pragma

by hardburn (Abbot)
on Jan 25, 2005 at 16:47 UTC ( #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
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? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2014-08-01 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (27 votes), past polls