Keep It Simple, Stupid | |
PerlMonks |
Re^3: Here there be camels!by Discipulus (Canon) |
on Mar 01, 2015 at 08:51 UTC ( [id://1118243]=note: print w/replies, xml ) | Need Help?? |
I do not think is a bug: is a edge case of use of very particular features... diamond <> never close the handle and __DATA__ is very near to be $0 in this case (if i remember you can seek it and print the main program too). Because you can adjust $. and you had not closed DATA handle you end with the beahviour observed. from perldata Text after __DATA__ may be read via the filehandle PACKNAME::DATA , where PACKNAME is the package that was current when the __DATA__ token was encountered. The filehandle is left open pointing to the line after __DATA__. The program should close DATA when it is done reading from it.PS. thanks for the line directive hint: never eard about.. L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|