Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Transform Sequence Problem

by wbirkett (Novice)
on Jun 19, 2013 at 11:45 UTC ( #1039758=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    use B::Deparse;
    ...
    
    print "@out\n";
    
  2. or download this
    # some code references
    $f1 = sub {map {$_ + 1} @_};
    $f2 = sub {map {log($_)} @_};
    $f3 = sub {map {$_ * 3} @_};
    
  3. or download this
     # combined transform
    sub trans1 {&$f3(&$f2(&$f1))};
    
    ...
    @trans = trans1(@data);
    
    print "@trans\n";
    
  4. or download this
    # make a sequence array
    @seq = ($f1, $f2, $f3);
    ...
    @trans = trans2(@data);
    
    print "@trans\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1039758]
Front-paged by Corion
help
Chatterbox?
[LanX]: nite! :)
[Discipulus]: or a spanish one: ' qui mucho se despide no quiere despedirse'
shmem slides into the envelope
[shmem]: Discipulus *quien*
[Discipulus]: quien ..
[Discipulus]: me too, i need a Dumas time, see you
[shmem]: que descanses bien, aprendiz
shmem wuff & wech
[shmem]: erm. wrong link. wrong link!

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2017-04-29 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.