No, I meant like this:
my @macall = qw(print @input); foreach $line (@macall) { print "<$line>\n"; if ($line =~ /C4:46:19:75:C1:55:\s+(\S+)/) { $id = $1; } } print "ID = $id"; return (0);
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re^3: grep in line and print
by roboticus
in thread grep in line and print
by justbow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |