note
Happy-the-monk
<i><blockquote><p><tt>$ssh->cmd(qq[ls -l $remotefile]); # Then parse the info I want from $stdout with an easy regex</tt></p>
<p>But I can't rule out the possibility that the remote filename might contain shell metacharacters.</p></blockquote></i>
<p>This should do it: <tt>$ssh->cmd(qq[ls -l "$remotefile"]);</tt></p>
<p>Cheers, Sören</p>
<div class="pmsig"><div class="pmsig-146055">
<p><small>(hooked on the Perl Programming language)</small></p>
</div></div>
1040994
1040994