in reply to Re^15: Help with Lorcon XS library
in thread Help with Lorcon XS library
the @_ (under the "new" ) assign a value to $self->_drv and $self->_context, this explain the "undef" obtained in the previous posts, the output of this small program confirm it:our @AS = qw( driver interface _drv _context ); __PACKAGE__->cgBuildAccessorsScalar(\@AS); __PACKAGE__->cgBuildIndices; sub new { my $self = shift->SUPER::new( driver => "madwifing", interface => "wlo1", @_, );
outputsudo perl -e ' use Net::Lorcon2 qw( :subs ); my $lorcon = Net::Lorcon2->new(); use Data::Dumper; print Dumper($lorcon); '
including the $lorcon variable into the Net::Lorcon2::lorcon_open_inject( $lorcon ) still crash but I think that the problem now stands in the BLESS reference, some hints? Regards Edoardo M$VAR1 = bless( [ 'madwifing', 'wlo1', \152948280, \152839568 ], 'Net::Lorcon2' );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^17: Help with Lorcon XS library
by Bpl (Scribe) on Jul 22, 2020 at 22:10 UTC |