IO::File inherits from IO::Handle, so the parent methods are also available to you. (You might have better luck with the ambiguous syntax if you use a Perl-style loop. I have not tested that, however.)
Update: PSI::ESP will only be available when the already-complex Perl grammar is complete enough to DWIMHM (might have meant). :)
Anyone who can figure out how to allow post-expression for clauses while retaining the standard procedural loop and adding support for finding missing semicolons in the first case, should feel free to send me a message. We could fix a parser bug. *shiver* | [reply] |
True, but all of the perl-style loops do the sensible thing and flatten the syntax to a simple scalar, I was just curious about why the array element didn't work. I'd forgotten the ambiguous syntax print problem (if I'd ever really known!). I sort of got caught up in the notion that not only is there more than one way to do it, but that any logical way should work as well— here's that expectation thing again…hsm
| [reply] |
Yeah well, so I'm not using it directly, IO::Handle that is. Insert sheepish grin here[ ____ ]. In defense of self, this whole exercise arose from someone else's code—which same I reduced to a test case, so that we could look at the array reference problem. In real life, I don't mix approaches like that— no really I don't. Nope, not me, my evil twin (who fires from the hip enough to get hip burns) might, but no, not me!hsmp.s. thanks again... | [reply] |