Not being all that observant, I've only just now noticed that code downloaded winds up with the name 'index.pl' instead of its original name. Now that I know, I can easily allow for this, but is this a feature or a gift from IE?

--hsm

"Never try to teach a pig to sing...it wastes your time and it annoys the pig."

Replies are listed 'Best First'.
Re: Code Download Mislabeled
by Chady (Priest) on Aug 06, 2003 at 06:46 UTC

    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/
      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

Re: Code Download Mislabeled
by valdez (Monsignor) on Aug 06, 2003 at 07:26 UTC
Re: Code Download Mislabeled (feature)
by tye (Sage) on Aug 07, 2003 at 16:46 UTC

    Someone could feel free to implement a <code filename="callMeThis.plx"> feature.

                    - tye