Subject: | Bug Report: Inline-Files-0.62 |
Date: | Thu, 9 Oct 2008 13:06:25 -0700 |
To: | <bug-Inline-Files [...] rt.cpan.org> |
From: | "Baker, Jeff" <JVB [...] dolby.com> |
Distribution: Inline-Files-0.62
Perl: v5.8.8 built for MSWin32-x86-multi-thread
OS: Windows XP
Explanation of bug: Receive odd error message and odd script operation when script includes 'use Inline::Files'. For the attached example, the text from file input.txt is printed twice! Also, the error message refers to a nonexistent line.
Error message: "my" variable @data masks earlier declaration in same scope at test.bat line 13.
Given any plain text file, .\input.txt
/-------code--------\
use strict; # Gives better error checking
use warnings; # Gives better warnings
use Inline::Files; # Multiple virtual files at the end of your code.
my @data;
open INPUT, '<' . 'input.txt';
@data = <INPUT>;
close INPUT;
for (@data) {print}
print "\n";
\------end-code-----/
Kind regards,
Jeff Baker
Design Engineer Software Test, Technology Development
Dolby Laboratories, Inc.
100 Potrero Ave.
San Francisco, CA 94103, USA
T 415-645-5574 F 415-645-4000
www.dolby.com | jvb@dolby.com
-----------------------------------------
This message (including any attachments) may contain confidential
information intended for a specific individual and purpose. If you
are not the intended recipient, delete this message. If you are
not the intended recipient, disclosing, copying, distributing, or
taking any action based on this message is strictly prohibited.