<?xml version="1.0" encoding="windows-1252"?>
<node id="971277" title="Re: accessing a part of a string" created="2012-05-18 07:11:12" updated="2012-05-18 07:11:12">
<type id="11">
note</type>
<author id="293748">
phenom</author>
<data>
<field name="doctext">
You want everything but a part of the string?  You could play with this and alter it as needed:

&lt;code&gt;
my $string = 'some/very/varied_length/string';

my $subs = substr( $string, 0, length($string) - 6 );
say $subs;
&lt;/code&gt;

Don't forget to add the OFFSET portion of substr.</field>
<field name="root_node">
971273</field>
<field name="parent_node">
971273</field>
</data>
</node>
