Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re (tilly) 2: (Golf) Per Mutations

by tilly (Archbishop)
on May 04, 2001 at 19:16 UTC ( #77981=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub permute{
    @r=[];$e=$_,@r=map{@a=@$_;map{@b=@a;splice(@b,$_,0,$e);[@b]}0..@a}@r f
    +or@_;@r
    }
    
  2. or download this
    sub permute{
    @r=[];$e=$_,@r=map{@a=@$_;map[@a[0..$_-1],$e,@a[$_..$#a]],0..@a}@r for
    +@_;@r
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://77981]
help
Chatterbox?
[RonW]: Why not ytdl >data then ffmpeg <data ?
[RonW]: (I use Windows as little as possible)
[LanX]: RonW: yes I think something like inline::Rperl would be great, but Will is AFAIK not interested to go that way
[james28909]: well now i am using a for /f delims= %i IN(yt-dl) do set var=%i & ffmpeg -i "%var%" -a:c mp3 output.mp3 & set var=
[james28909]: just to get around not being able to do yt-dl | ffmpeg
[james28909]: learning is fun ISNT IT?!?!!??
[RonW]: that seems very weird to me
choroba submitted 2 talks to (YA|T)PC::EU

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2017-05-22 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?