in reply to Re^2: Using Net::Telnet Module on Windows machine
in thread Using Net::Telnet Module on Windows machine
Skip the comma between the arguments, they are delimited by whitespace. You only need the "s around them if they might contain spaces or tabs.
If the arguments could contain quotes, things start getting messy if not impossible, so avoid that if you can.
Running this may help clarify things.
#! perl -slw use strict; my $command = q[ perl -le"print $_ for @ARGV; print 'Enter to exit'; < +STDIN>" ]; system qq[ start $command A B C "D E" F "G H I" ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using Net::Telnet Module on Windows machine
by Edge118 (Initiate) on Jul 08, 2004 at 16:38 UTC |