I sometimes need to upload code samples that are awkward to cut/paste. How should we do so in the absence of a fileupload option?

Replies are listed 'Best First'.
RE: how to upload long source code
by BBQ (Curate) on May 27, 2000 at 05:29 UTC
    Why would they be awkward to cut/paste?

    At any rate, whenever I have a big post, I usually write it in a text editor till I remove the real names for variabls (replace them with foo, bar, etc) make the appropriate comments, and then cut/paste. If the section I'm in doesn't have a preview, I'll go back one level and check my post. If something looks bad, I go back in and change it.

    My posts usually aren't that big, but I've done this one time or another... (also cutting and pasting from console sometimes when I want to double-check code and make sure it works). I suppose having a input type=file wouldn't help me much.

    #!/home/bbq/bin/perl
    # Trust no1!