<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Gugu's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 08:55:34 GMT</pubDate>
    <description>DZone Snippets: Gugu's Code Snippets</description>
    <item>
      <title>Cutting of part of the unicode line</title>
      <link>http://snippets.dzone.com/posts/show/3066</link>
      <description>// description of your code here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;sub left_subject{&lt;br /&gt;	my $self=shift;&lt;br /&gt;	my $count=shift;&lt;br /&gt;	use utf8;&lt;br /&gt;	my $topic=$self-&gt;subject;&lt;br /&gt;	utf8::decode($topic);&lt;br /&gt;	utf8::upgrade($topic);&lt;br /&gt;	my ($subtopic)=($topic=~/(.{0,$count})/);&lt;br /&gt;#	utf8::decode($subtopic);&lt;br /&gt;	$subtopic=~s/\b\w{1,5}$//;&lt;br /&gt;	utf8::downgrade($subtopic);&lt;br /&gt;	return $subtopic.'...';&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 01 Dec 2006 18:52:04 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3066</guid>
      <author>gugu (Andrey Kostenko)</author>
    </item>
  </channel>
</rss>
