On Mon Sep 30 08:29:12 2013, l.mai@web.de wrote:
Show quoted text> use P;
> P "%s", [1, \*DATA, 2];
>
> Output:
> [1, <*=# line ' .__LINE__ . ' "' ' __FILE__ . "\"\n" . '
> >, 2]
>
> What the heck is this?
-----
It did exactly what you asked it to do (for that version of P).
It printed the 1st line of the DATA stream in the P file -- which is supposed to be a short demo/self-test.
However, the current version won't do that since I don't try to print from file handles or globs, by default, anymore. I decided that wasn't like a helpful/safe thing to do by default (not really needed in debugging).
I implemented an OO switch-passing mechanism for some of less standard options -- requiring an OO-style call
when "implicit_io" is wanted.
Very much appreciate the reports -- otherwise I'd have "no clue". Your execution issues are especially interesting!
FWIW, I got behind in sending updates to CPAN, as my local development got ahead of my testing & documentation... (hmmmm...bet you never heard of that happening before)...