print Net::Lorcon2::lorcon_create("wlo1", $driver); #where $driver can be madwifing or other it says: Net::Lorcon2::lorcon_create: driver is not a reference at -e line 3. #### print Net::Lorcon2::lorcon_create("wlo1", \$driver); #where $driver can be madwifing or other it says segmentation error (core dump created) #### my $driver = "madwifing"; my $if = "wlo1"; my $drv = lorcon_find_driver($driver); if (! $drv) { print STDERR "[-] Unable to find DRV for [$driver]\n"; exit 1; } my $lorcon = lorcon_create($if, $drv); if (! $lorcon) { print STDERR "[-] lorcon_create failed\n"; exit 1; }