<?xml version="1.0" encoding="windows-1252"?>
<node id="163496" title="Re: Yoda Speak Translator" created="2002-05-02 06:23:29" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="3568">
ChOas</author>
<data>
<field name="doctext">
Very, VERY cool!!!!&lt;BR&gt;
&lt;BR&gt;
As the master said: "More than one way to do it there is" :&lt;BR&gt;
&lt;CODE&gt;

sub yoda {
    my ($sentence) = @_;

    my $Pivot=join '|',qw/is be will show do try are teach have/;

    # Move along, nothing to see here
    return $sentence unless ($sentence=~/\b$Pivot\b/);
    
    # Rearrange our words
    $sentence="$' $`$&amp;";

    # Clear leading spaces and Capitalise
    $sentence =~ s/^\s+//;
    $sentence = ucfirst(lc($sentence));
};
&lt;/CODE&gt;
&lt;BR&gt;

&lt;BR&gt;
GreetZ!,&lt;BR&gt;&lt;UL&gt;ChOas&lt;/UL&gt;
&lt;BR&gt;
&lt;FONT SIZE="1"&gt;print "profeth still\n" if /bird|devil/;&lt;/FONT&gt;</field>
<field name="root_node">
162190</field>
<field name="parent_node">
162190</field>
</data>
</node>
