RE: file script and cmd script difference





my($addr,$mac) = (split(/s+/))[0,2];

You maybe would check your scripts carefully at first.
Here should be:
my($addr,$mac) = (split(/\s+/))[0,2];

You have lost the '\' before 's+' in your regex.


.