Actually, this is the way I ended up doing these system calls due to its relative simplicity:
# Declare dependencies use File::Slurp; # Declare variables we'll be using my $name = ""; my @args = (); my $result = ""; # Set computer name based on MAC address of en0 my @entries = qx(ifconfig en0 | awk '/ether/ { gsub(":", ""); print \$ +2 }'); chomp(@entries); $name = $entries[0];
In reply to Re^2: Strange system call failure in OS X
by endor-moon
in thread Strange system call failure in OS X
by endor-moon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |