|
|||||||||||
|
Perl code Question -
From: Douglas Brantz <brantzdr(at)appstate.edu>
Date: Fri Sep 28 2007 - 13:30:10 EDT
I thought I could do this somewhere in this part of the code?
sub Get_File_Name{
my $file_handle = shift; my $file_name = shift; my $data; #my $mime = uploadInfo($File_handle)->{'Content-Type'}; open (STORAGE, ">$dir/$file_name") or die "Error: $!\n"; #if($mime !~ /text/){ binmode ($file_handle); binmode (STORAGE); #} while( read($file_handle, $data, 1024) ){ print STORAGE $data; } close STORAGE; } -- Douglas Brantz Computer consultant College of Fine & Applied Arts Appalachian State University Boone, NC 28608 828-262-6549 – office 828-262-6312 - fax -- MySQL Perl Mailing List For list archives: http://lists.mysql.com/perl To unsubscribe: http://lists.mysql.com/perl?unsub=lists@pantek.comReceived on Fri Sep 28 13:30:29 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:15:36 EDT |
||||||||||
|
|||||||||||