On Thu, 4 Oct 2001, Gary L. Armstrong wrote:
> system qw( /usr/lib/lpd/pio/etc/piomisc_ext mkpq_remote_ext -q $qname
> -h $newhost.$domain.ko.com -r jfsrvrsap -t bsd -d $qname
> "Jetforms NT Server TEMPORARY" );
>
> Nevermind what I am doing (adding a remote print queue), I am mainly
> interested in using the qw() properly. It splits on whitespace, so I
> figure that this will do exactly what I want, but I am not sure if it will
> split on the whitespace inside the double-quotes. Will double-quotes
> suffice to keep that string intact?
Try doing something like
my @a = qw( ... );
print join "\n", @a, "";
then you can see what happens.
You wil also see that $variables doesn't get interpolated in
qw(). :)
system (qw( /usr/lib/lpd/pio/etc/piomisc_ext mkpq_remote_ext -q),
$queue, '-h', "$newhost.$domain.ko.com", qw(-r jfsrvrsap -t bsd
-d), $qname, "Jetforms NT Server TEMPORARY");
would work, but then it's a bit messy. =)
Remember that => can be used instead of a , here, so you could also
do something like,
system ('/usr/lib/lpd/pio/etc/piomisc_ext',
'mkpq_remote_ext',
'-q' => $queue,
'-h' => "$newhost.$domain.ko.com",
...
);
- ask
--
ask bjoern hansen, http://ask.netcetera.dk/ !try; do();
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]