Zitoune has asked for the wisdom of the Perl Monks concerning the following question:

I have 2 files.
dummy1.wmv and dummy2.wmv
I want to do only one file with these 2

Replies are listed 'Best First'.
Re: Concatenation Files
by tachyon (Chancellor) on Nov 11, 2002 at 15:18 UTC
    # on unix you can just use cat `cat file1 file2 > output.file` # on Win32 use type `type file1 file2 >output.file`

    cat/type just output the contents of a file(s) to STDOUT and the > reditects the output to a file thus joining the files. Do it at the command prompt or using backtics from Perl as shown.

    Update

    As noted above this will probably not work for .wmv files. You can downlad a tool to do the join at http://www.geocities.com/myasftools/index.html

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Re: Concatenation Files
by Bird (Pilgrim) on Nov 11, 2002 at 15:18 UTC

    This problem is not as simple as concatenation, from the sound of it. wmv files are windows media, and you'll need to know the specific format of the files before you can strip off the header of the second, add it to the end of the first, then modify the header of the first to contain info about the newly created file (and there's likely much more to it than that). You're probably better off using a third party editor to do this. I'm not aware of any modules (and a quick cpan search didn't turn up with any) that handle wmv files specifically.

    -Bird
Re: Concatenation Files
by Zitoune (Beadle) on Nov 12, 2002 at 14:34 UTC
    I found a way to do it.
    you just have to use the FILE::Copy
    you open a file (append) and you copy both files to the open file. and that's it :-)