First off, I really like Ask's response, that was the sort of thing I needed: food for thought.
And Curtis, I knew I had seen that chart somewhere but this late in the afternoon I must be tired. I do want those interpolated, so tomorrow I'll play around with it and see what I can come up with. An array, you say? I'm not yet used to the way these variables act like infinitely-expandable containers: I keep thinking I'm going to break something if I just dump a load of output into a variable. I'll grow out of it, I hope. This is my first serious Perl program, and even just starting out I can tell I'll be writing far fewer ksh scripts from now on. Good job, Larry & friends. -=GLA=- --- "Gary L. Armstrong" <[EMAIL PROTECTED]> wrote: > I have written this: > > 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? > > I could just type out a big list using "," to separate, but where's the fun > in that? Sorry, no white space allowed. Further, using the 'qw()' construct does *not* allow for interpolation. Unless you want a literal '$qname' in their, you'll need an array. >From "Quote and Quote-Like Operators" (perldoc perlop): Customary Generic Meaning Interpolates '' q{} Literal no "" qq{} Literal yes `` qx{} Command yes (unless '' is delimiter) --> qw{} Word list no // m{} Pattern match yes (unless '' is delimiter) qr{} Pattern yes (unless '' is delimiter) s{}{} Substitution yes (unless '' is delimiter) tr{}{} Transliteration no (but see below) Cheers, Curtis "Ovid" Poe ===== Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://www.perlmonks.org/ __________________________________________________ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]