<?xml version="1.0" encoding="windows-1252"?>
<node id="1011343" title="Re: Need to change directory string." created="2013-01-02 15:54:01" updated="2013-01-02 15:54:01">
<type id="11">
note</type>
<author id="918402">
2teez</author>
<data>
<field name="doctext">
&lt;p&gt;
  &lt;i&gt;"..Is there easier way to put this?.."&lt;/i&gt;&lt;br&gt;&lt;br&gt;

Another way is to use &lt;b&gt;canonpath&lt;/b&gt; method from [doc://File::Spec] like so:

&lt;c&gt;
use strict;
use warnings;
use File::Spec qw(canonpath);

my $dir_str = "test/home/players/demo//thumbs/super.jpg";

print File::Spec-&gt;canonpath($dir_str);
&lt;/c&gt;
&lt;tt&gt;Output:&lt;/tt&gt;&lt;br&gt;
test/home/players/demo/thumbs/super.jpg&lt;br&gt;&lt;br&gt;
&lt;b&gt;NOTE:&lt;/b&gt;&lt;br&gt;
&lt;tt&gt;No physical check on the filesystem, but a logical cleanup of a path.&lt;/tt&gt;
&lt;/p&gt;
&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-918402"&gt;
If you tell me, I'll forget.&lt;br&gt;
If you show me, I'll remember.&lt;br&gt;
if you involve me, I'll understand.&lt;br&gt;
--- Author [unknown to me]
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1011302</field>
<field name="parent_node">
1011302</field>
</data>
</node>
