<?xml version="1.0" encoding="windows-1252"?>
<node id="997480" title="Re^3: Entry widget not accepting /" created="2012-10-05 09:56:12" updated="2012-10-05 09:56:12">
<type id="11">
note</type>
<author id="131741">
zentara</author>
<data>
<field name="doctext">
I get your code to run, and observe the error of / not being accepted. Your code is a bit complicated, and I will look at it, but just as a first comment I noticed one oddity. If you enter a \ instead of a /, a / will be inserted properly. ?? This link &lt;a href=http://stackoverflow.com/questions/922221/perl-getcwd-ending-forward-slashes&gt; perl-getcwd-ending-forward-slashes&lt;/a&gt; may yield a clue.&lt;p&gt;
I'm wondering why you even use File::Spec's catdir? The docs say 
&lt;p&gt; catdir&lt;br&gt;
Concatenate two or more directory names to form a complete path ending with a directory. But remove the trailing slash from the resulting string, because it doesn't look good, isn't necessary and confuses OS/2. Of course, if this is the root directory, don't cut off the trailing slash :-)
&lt;p&gt;When I comment out all the File::Spec canonpath and catdir lines from your script, it adds a / just fine.







&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-131741"&gt;
&lt;hr /&gt;
I'm not really a human, but I play one on earth.&lt;br&gt;
[id://630805] ................... &lt;a href=http://zentara.net/japh.html&gt; flash japh &lt;/a&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
997416</field>
<field name="parent_node">
997462</field>
</data>
</node>
