in reply to Problems Uploadng a file

Try this. I think that you'll see what I did differently.
#!/usr/bin/perl -slw use strict; use CGI qw( :standard escapeHTML ); my $query = new CGI; my $directory = '/root'; my @names = $query->param; my $url = $query->param("URL"); my $upload = $query->upload('upload_file'); my $name = $query->param('name'); my $file = 'tick.html'; print "Content-type: text/html"; binmode STDOUT, ":encoding(utf8)"; open my $fh, '<', "$directory/$file" || die $!; my $buffer; my $bytesread = read( $fh, $buffer, 80 ); print "$directory/$file"; close $fh;

Replies are listed 'Best First'.
Re^2: Problems Uploadng a file
by lmck2 (Initiate) on Sep 14, 2011 at 20:03 UTC

    Thank you Monks for your assistance

    I got my simple script to work, now I have to look at the original script. Thanks for your assistance