Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDL::IO::Misc: Undefined subroutine &PDL::Ops::assgn called #212

Closed
amba opened this issue Nov 18, 2017 · 3 comments
Closed

PDL::IO::Misc: Undefined subroutine &PDL::Ops::assgn called #212

amba opened this issue Nov 18, 2017 · 3 comments

Comments

@amba
Copy link
Contributor

amba commented Nov 18, 2017

Hey,
If I run (PDL-2.018)


#!/usr/bin/env perl
use PDL::IO::Misc;

my @cols = rcols('data.dat', {EXCLUDE => '/^#/'});

I get

simon@buero ~/perl/lab (master)$ ./rcols.pl
Undefined subroutine &PDL::Ops::assgn called at /home/simon/.plenv/versions/5.24. /lib/perl5/site_perl/5.24.0/x86_64-linux/PDL/Core.pm line 810, <GEN0> line 2.

The error disappears when adding use PDL or use PDL::Lite

@devel-chm
Copy link
Member

Could you provide a small data.dat that gives the problem? Thanks.

@amba
Copy link
Contributor Author

amba commented Nov 19, 2017

you can just use a file that contains a single ascii number.

@d-lamb
Copy link
Member

d-lamb commented Jun 6, 2018

The reason that error is coming up is that PDL::Ops is never used directly in Misc.pm. Since the docs for PDL::Lite say that PDL::Lite is the minimum required to required to have a working PDL, and that is not present in the example code, I'm going to close this as not-a-bug.

@d-lamb d-lamb closed this as completed Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants