punk.kish at gmail dot com writes:
>
> I am using pdl2, the new command line replacement for
> perldl. I am not sure what I am gaining, but I do know that
> I don't like its error reporting. It spews out loads of
> error messages, none of which are really helpful to me as a
> user. Here is an example
>
> PDL> p 4c
> Bareword found where operator expected at (eval 528) line 5, near "4c"
> (Missing operator before c?)
> Compile error: syntax error at (eval 528) line 7, near "4c
>
> "
This much I get, it pretty much is the error you get from perl
for an invalid construct.
> BEGIN not safe after errors--compilation aborted at (eval 528) line 7.
> at (eval 528) line 7
> eval 'package main;
> sub {
> BEGIN { if ( $_REPL->_has_hints ) { ( $^H, %^H ) = @{ $_REPL->_hints }
> } }{ no warnings \'void\'; \'\'; }
> BEGIN { $Devel::REPL::Plugin::Commands::COMMAND_INSTALLER->(__PACKAGE__) }
> p 4c
>
> ; BEGIN { $Devel::REPL::Plugin::Packages::PKG_SAVE = __PACKAGE__; };
> BEGIN { $_REPL->_hints([ $^H, %^H ]) }
> }
>
> ...snip...
I don't get these. A couple of things to note: (1)
the number of lines of output is alot but it is just
a stack trace with pretty much a report of a problem
with its location in file/line for each level of the
stack, and (2) reading through I see an error in
.../Devel/REPL/Plugin/Commands.pm line 62.
That is a problem since the latest Perldl2 loads
PDLCommands.pm as the plugin. Commands.pm conflicts and
will give a compile time error. Make sure you are using
the latest Perldl2 from the latest PDL CPAN Developers
release.
Also, try using the find command to see if you have a
duplicate install of the Perldl2.pm profile file which
would also explain the compile error. When you get the
huge backtraces, that usually idicates a compile issue
at the shell internals level.
In future, attaching the startup message with its
information on version and plugins loaded will help
make this more like debugging and less speculation.
Cheers,
Chris
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl