Hi endor-moon and welcome,
After bothering myself a bit with awk (i repressed the details) i decided to take the swiss katana. I'm assuming that you just want the mac address:
#!/usr/bin/env perl + use strict; use warnings; my $mac = ( split " ", ( qx(ifconfig en0) ) ); print qq($mac\n); __END__ Karls-Mac-mini:monks karl$ ./endor-moon.pl 2c:07:54:5e:3e:f0 # i faked this, really ;-)
This works for me. Please note also that your code didn't output anything (for me).
Btw, why do you load a module that you don't use (File::Slurp) as well as some variables (@args, $result)...or do i miss something?
My best regards, Karl
«The Crux of the Biscuit is the Apostrophe»