<?xml version="1.0" encoding="windows-1252"?>
<node id="1008421" title="Re: Trouble with a string" created="2012-12-11 18:14:00" updated="2012-12-11 18:14:00">
<type id="11">
note</type>
<author id="401112">
johngg</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;&lt;code&gt;@VMSHUT = `cat /tmp/virshlist_shutdown`;&lt;/code&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;p&gt;You will also need to remove the line terminator from each line of the array using [doc://chomp] otherwise each file name will have a spurious line terminator at the end.&lt;/p&gt;
&lt;code&gt;
$ cat zzz
Line 1
Line 2
Line 3
$ perl -e '
&gt; @lines = `cat zzz`;
&gt; print qq{&gt;$_&lt;\n} for @lines;'
&gt;Line 1
&lt;
&gt;Line 2
&lt;
&gt;Line 3
&lt;
$ perl -e '
&gt; @lines = `cat zzz`;
&gt; chomp @lines;
&gt; print qq{&gt;$_&lt;\n} for @lines;'
&gt;Line 1&lt;
&gt;Line 2&lt;
&gt;Line 3&lt;
$
&lt;/code&gt;
&lt;p&gt;I hope this is helpful.&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-401112"&gt;
&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;JohnGG&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1008416</field>
<field name="parent_node">
1008416</field>
</data>
</node>
