Possible solution (stray 'my')

master
isbear 2012-11-04 07:32:49 -04:00 committed by admin
parent e6fcd802e5
commit 3b120dd767
1 changed files with 9 additions and 0 deletions

View File

@ -130,3 +130,12 @@ This is nasty-scary results ! Something missed me or this mime-filecheck is plai
--mathdesc
> > if ($mimeinfo_ok) {
> > my $mimetype=File::MimeInfo::Magic::magic($file);
> > }
>
> That seems strange to me, `my` restricts scope of $mimetype to enclosing if block, thus, assigned value will be dropped - I think, it is the problem.
> Try removing that stray `my`.
>
> --isbear