in reply to Tk Bandwidth use indicator
#specify interface on commandline or here my $iface = $1 || 'eth0';
$1 is only valid after a successful regular expression match with capturing parentheses.
That should be:
#specify interface on commandline or here my $iface = shift || 'eth0';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk Bandwidth use indicator
by zentara (Cardinal) on Jun 29, 2018 at 18:56 UTC |