in reply to Code Download Mislabeled

There is no original name.

print "this is perl.\n";

That's a snippet that even I have no name for, so the engine does not know what to name it. But it is downloadable. The fact that it's called "index.pl" is because that's the file that was called (perlmonks.org/index.pl)

Note: Some browsers (Mozilla) will display the code and not present you with a Save dialog box.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Replies are listed 'Best First'.
Re: Code Download Mislabeled
by Abigail-II (Bishop) on Aug 06, 2003 at 07:49 UTC
    What Mozilla will do with a received document depends on its document type. Which is text/plain for the "downloaded code". Displaying it seems like a very sensible thing to do. But I guess there are browsers written by people who find plain text something alien (what? *anyone* can read this!) and present the user with a save dialog box.

    Abigail