On 6/12/2010 12:39 PM, David Mertens wrote:
>
> I was reading through the comparison in the Perldl2/TODO file and
> noticed the 'use package' difference. I'm not sure what you mean when
> you say that the current perldl doesn't support this. I mean, I 'use
> PDL::Graphics::PLplot' all the time and it works.
>
> Thanks.
> David

Compare this Perldl2 session segment:

   PDL> package hello
   PDL> $var = 3
   PDL> package main
   PDL> p $var
   Use of uninitialized value $_[0] in print at (eval 312) line 5.
   PDL> p $hello::var
   3

with this one from perldl:

   perldl> package hello
   perldl> $var = 3
   perldl> package main
   perldl> p $var
   3
   perldl> p $hello::var
   perldl>

The lexical context is also preserved across command lines
with Perldl2.  What it boils down to is that the Perldl2
shell supports more of Perl syntax and usage with PDL as
compared with perldl which supports PDL programs with Perl
syntax partially supported.  Not really an issue for using
PDL but definitely nice to have for more general program
development with Perl and PDL...

Cheers,
Chris

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to