No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
... when I tried to call the setInjectMode it produces a core dump (again)
Unfortunately I know as much about Lorcon as AnomalousMonk. All I'm doing is going from the module's documentation, and the two scripts that ship with the Net-Lorcon2-2.03 source distribution (in the examples folder). One of those scripts (inject.pl) demonstrates a correct way to call lorcon_open_inject as follows: (You might want to change the strings that are assigned to $interface and $driver.) Assuming that works ok for you, my advice would be to just stick with the approaches that you know to work. Note that the SYNOPSIS section of the documentation in Lorcon2.pm (run perldoc Net::Lorcon2 to view it) mentions 2 ways to writing Net::Lorcon2 code. Firstly there's "Usage in an OO-way", which involves calling new(). This is the way taken by the code that I've provided in this post. Secondly there's "Usage with lorcon2 library API", in which new() is not called. This is the way taken by the code I provided in my earlier posts. It's best to stick to just one of those ways throughout your script. Mixing them together in the same script will likely lead to errors or segfaults. Also, if you hit a problem, please post the entire script you ran - not just bits of it. If the script is a large one you should reduce it so that it: a) still demonstrates the problem you are facing; b) is as small as possible. But, for now, while the scripts are quite small, just post them in full. Cheers, Rob In reply to Re^11: Help with Lorcon XS library
by syphilis
|
|