Help for this page

Select Code to Download


  1. or download this
    sub process_files {
        my ($function, $parm, $message, $extension, @list) = @_;
        ...
    
  2. or download this
    sub process_files {
        my ( $SubArgs ) = @_;
    ...
        my $extension = $SubArgs->{ extension };
        my @list      = @{ $SubArgs->{ list } };
        ...
    
  3. or download this
        foreach my $file (@list) {
            my $Newfile = substr($file, 0, 2);
    ...
    
            push @returnlist, $Newfile;
        }
    
  4. or download this
    # rename files to 01.mp3, 02.mp3, etc.
    my @mp3list = 
    ...
    # call sox to convert each .wav to .cdr
    my @cdrlist = 
       process_files( { function => "sox", message => "converting", extens
    +ion => "\.cdr", list => @wavlist } );