Hi friend,
after some hours of works I think I've finally understood the problem, in few words in the source code
our @AS = qw(
driver
interface
_drv
_context
);
__PACKAGE__->cgBuildAccessorsScalar(\@AS);
__PACKAGE__->cgBuildIndices;
sub new {
my $self = shift->SUPER::new(
driver => "madwifing",
interface => "wlo1",
@_,
);
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:
udo perl -e '
use Net::Lorcon2 qw( :subs );
my $lorcon = Net::Lorcon2->new();
use Data::Dumper;
print Dumper($lorcon);
'
outputs
$VAR1 = bless( [
'madwifing',
'wlo1',
\152948280,
\152839568
], 'Net::Lorcon2' );
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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.