Paul Seamons skribis 2005-03-18 9:46 (-0700):
> eval slurp "foo";
That requires foo to have an #line directive (or whatever its Perl 6
equivalent will be) in order to be useful when debugging.
See also http://tnx.nl/include (I want Perl 6 to have this function that
evals a file such that in
Larry Wall wrote:
On Fri, Mar 18, 2005 at 10:28:18AM -0500, Aaron Sherman wrote:
: Thus:
:
: eval read :file("foo");
:
: There you have it.
The problem being that it will now report errors in some random
temporary string rather than at some line number in a file. Not good.
Orthogonality strike
Larry Wall wrote:
On Fri, Mar 18, 2005 at 10:28:18AM -0500, Aaron Sherman wrote:
: Thus:
:
: eval read :file("foo");
:
: There you have it.
The problem being that it will now report errors in some random
temporary string rather than at some line number in a file. Not good.
Orthogonality strike
Larry Wall wrote:
On Fri, Mar 18, 2005 at 10:28:18AM -0500, Aaron Sherman wrote:
: Thus:
:
: eval read :file("foo");
:
: There you have it.
The problem being that it will now report errors in some random
temporary string rather than at some line number in a file. Not good.
Orthogonality strike
On Fri, Mar 18, 2005 at 10:28:18AM -0500, Aaron Sherman wrote:
: Thus:
:
: eval read :file("foo");
:
: There you have it.
The problem being that it will now report errors in some random
temporary string rather than at some line number in a file. Not good.
Orthogonality strikes again.
Lar
> eval read :file("foo")
How about:
eval slurp "foo";
Paul Seamons
On Fri, 2005-03-18 at 10:28, Aaron Sherman wrote:
> On Fri, 2005-03-18 at 05:42, Rod Adams wrote:
>
> > Hmm. maybe we just need a function that loads an entire file and returns
> > a string of it, then feeds that to eval.
>
> Well, I wasn't getting into the IO stuff, but since you said it, this
On Fri, 2005-03-18 at 05:42, Rod Adams wrote:
> Hmm. maybe we just need a function that loads an entire file and returns
> a string of it, then feeds that to eval.
Well, I wasn't getting into the IO stuff, but since you said it, this
crosses a line with many related IO operations. I would call t
Brent 'Dax' Royal-Gordon wrote:
Larry Wall <[EMAIL PROTECTED]> wrote:
: C I'll tackle at the same time as C. It's likely
: staying in some form. I use it from time to time when I'm patching
: together several automation scripts. (Remember that Perl gets used for
: the quick and dirty as well as