Also:
my @cmd = qw[/sbin/route add default gw 172.16.0.200 dev enxb827eb9540 +0d];
or
my @cmd = split/\ +/, "/sbin/route add default gw 172.16.0.200 dev enx +b827eb95400d";
In reply to Re^2: How to execute a linux system command with perl?
by cavac
in thread How to execute a linux system command with perl?
by introdev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |