in reply to Re: Perl App , files and directories
in thread Perl App , files and directories
When I create the .exe using PerlApp(I've set --tmpdir to c:\test for the time being) and run it , the exe cannotsub chfile { ....... my $datafile = "myfile.txt"; my $filename = PerlApp::extract_bound_file($datafile); die "$datafile not bound to application\n" unless defined $filename; my $fh="LEX"; open($fh,'$filename') or die "Can't open $datafile $filename)\n"; while(<LEX>){ ...... } }
What am I doing wrong here? Please help!Tk:Error:Can't open myfile.txt <c:\test\pdk-myname--121077199/myfile.t +xt>[\&main::chfile]
|
|---|