I am trying to do something like this:
Click on a self-made Download button which will cause the Win 98 Save As window to pop up and then i will be able to save the data i queried from a table in Sybase as a text file, say test.txt.
In PHP, i can do it using these 3 lines:
<CODE>
header( "Content-type: application/x-something" );
header( "Content-Disposition: attachment; filename=$type.txt" );
header( "Content-Description: PHP3 Generated Data" );
</CODE>
but how to do it using Perl?
Click on a self-made Download button which will cause the Win 98 Save As window to pop up and then i will be able to save the data i queried from a table in Sybase as a text file, say test.txt.
In PHP, i can do it using these 3 lines:
<CODE>
header( "Content-type: application/x-something" );
header( "Content-Disposition: attachment; filename=$type.txt" );
header( "Content-Description: PHP3 Generated Data" );
</CODE>
but how to do it using Perl?