in reply to Re: Download file to browser
in thread Download file to browser

Hi Corion. What is the $c variable? Please understand that I'm novice Perl programmer. Thanks, David

Replies are listed 'Best First'.
Re^3: Download file to browser
by Corion (Patriarch) on Apr 19, 2024 at 17:16 UTC

    The $c variable is the context in Mojolicious. As you don't seem to be using Mojolicious, maybe you can tell us or even better show us the relevant parts of download.pl so we can better tell you how to add the header.

Re^3: Download file to browser
by eyepopslikeamosquito (Archbishop) on Apr 20, 2024 at 08:06 UTC

    Please understand that I'm novice Perl programmer. Any help will be appreciated.

    To take your novice Perl skills out of the equation, please take the time to read and understand the following non-Perl references:

    If you're then convinced of the merit of at least attempting to create a minimal reproducible example, have a go at doing that in Perl (you might find Short, Self-Contained, Correct Example useful in this endeavour). If you get stuck, please feel free to ask for assistance, we will be glad to help.

    Attempting to create a minimal reproducible example (even if unsuccessful) should have an added benefit of improving your general Perl skills and knowledge.

    👁️🍾👍🦟

      Nine thousand and seventy four times this. You’ve asked the programmer equivalent of, “Hey what’s the name of that movie? You know the one with that guy that wears a shirt?”

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

Re^3: Download file to browser
by marto (Cardinal) on Apr 19, 2024 at 22:49 UTC