Re: Need help with a simple Perl script

Discussion in 'Perl' started by Netlurker, May 29, 2008.

  1. Netlurker

    Netlurker Guest

    Grab the file content and print it out after your type header...

    open(FILE,"<$pdffile");
    @file = <FILE>;
    close(FILE);

    print "Content-Type:application/pdf\n\n";
    print @file;

    - Netlurker
     
    Netlurker, May 29, 2008
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.