<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Average CEL Perl Script</title>
	<link>http://biowhat.com/2006/10/30/average-cel-perl-script/</link>
	<description></description>
	<pubDate>Thu, 20 Nov 2008 21:10:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Anna7</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-12195</link>
		<author>Anna7</author>
		<pubDate>Mon, 04 Aug 2008 18:35:58 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-12195</guid>
		<description>Good job. :) Interesting indeed.</description>
		<content:encoded><![CDATA[<p>Good job. <img src='http://biowhat.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Interesting indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RAJASHEKAR</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-4458</link>
		<author>RAJASHEKAR</author>
		<pubDate>Wed, 12 Sep 2007 06:22:47 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-4458</guid>
		<description>please can u help me with programming in perl, 
iam just a bigginner , please helpp me with some examples for bioinformatics using perl 
awaiting ur reply 
raj</description>
		<content:encoded><![CDATA[<p>please can u help me with programming in perl,<br />
iam just a bigginner , please helpp me with some examples for bioinformatics using perl<br />
awaiting ur reply<br />
raj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-3568</link>
		<author>Matt</author>
		<pubDate>Wed, 15 Aug 2007 15:41:36 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-3568</guid>
		<description>In answer to 'why heck Perl?', because sometimes that is the only language available other than DOS bat files.

And given the choice, Perl wins.

Cheers,

Matt</description>
		<content:encoded><![CDATA[<p>In answer to &#8216;why heck Perl?&#8217;, because sometimes that is the only language available other than DOS bat files.</p>
<p>And given the choice, Perl wins.</p>
<p>Cheers,</p>
<p>Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GugaRedy</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-2693</link>
		<author>GugaRedy</author>
		<pubDate>Sat, 16 Jun 2007 21:11:35 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-2693</guid>
		<description>Hi.
Very useful resource. THE BEST. I liked your site.

Thanks.

Sincerely,</description>
		<content:encoded><![CDATA[<p>Hi.<br />
Very useful resource. THE BEST. I liked your site.</p>
<p>Thanks.</p>
<p>Sincerely,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnny</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-9</link>
		<author>johnny</author>
		<pubDate>Tue, 31 Oct 2006 04:48:53 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-9</guid>
		<description>hya,
    lOl yah I sux at html, I'm a complete n00b I'll confess.  By the way why the heck Perl?  (*suppressed shudders*).  Anyway good luck with all that stuff.</description>
		<content:encoded><![CDATA[<p>hya,<br />
    lOl yah I sux at html, I&#8217;m a complete n00b I&#8217;ll confess.  By the way why the heck Perl?  (*suppressed shudders*).  Anyway good luck with all that stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Castillo</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-8</link>
		<author>Ryan Castillo</author>
		<pubDate>Tue, 31 Oct 2006 02:40:26 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-8</guid>
		<description>Johnny - you're a coding genius.  Well as far as C++, C and Perl are concerned.  But you're html knowledge seems to be a bit off.  You actually can't include tabs in html.  Just doesn't work I've fooled with it.  Thanks for the help bro!</description>
		<content:encoded><![CDATA[<p>Johnny - you&#8217;re a coding genius.  Well as far as C++, C and Perl are concerned.  But you&#8217;re html knowledge seems to be a bit off.  You actually can&#8217;t include tabs in html.  Just doesn&#8217;t work I&#8217;ve fooled with it.  Thanks for the help bro!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnny</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-6</link>
		<author>johnny</author>
		<pubDate>Tue, 31 Oct 2006 01:42:24 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-6</guid>
		<description>OK I give up.  If you want whitespace removed, run it through this "Leave a Reply" box, it does a great job!  If you can't read the above code due to lack of indents, I'll be happy to send you a copy.</description>
		<content:encoded><![CDATA[<p>OK I give up.  If you want whitespace removed, run it through this &#8220;Leave a Reply&#8221; box, it does a great job!  If you can&#8217;t read the above code due to lack of indents, I&#8217;ll be happy to send you a copy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnny</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-5</link>
		<author>johnny</author>
		<pubDate>Tue, 31 Oct 2006 01:40:52 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-5</guid>
		<description>jye again,
    Crud, that main() got all messed up, it makes no sense.  OK, I'm gonna try main() again with no tabs, and no lesser than - greater than symbols (I guess it got interpreted as HTML???):

sub main {
    #  use the subs we've defined:
    $str = " Oh, woe is me! ";
    print "Now str == ($str)...\n";
    $str = &#38;rm_ws_head($str);
    print "Now str == ($str)...\n";
    $str = &#38;rm_ws_tail($str);
    print "Now str == ($str)...\n";
    $str = &#38;rm_ws_all($str);
    print "Now str == ($str)...\n";

    print "Now gonna use splits to do it...\n";

    #  do it brute force using splits:
    $str = " Oh, woe is me! ";
    print "Now str == ($str)...\n";
    my @wrds = split(/\s/, $str);
    my $newstr = "";
    foreach $w (@wrds) {
        $newstr .= $w;
    }
    print "Now str == ($newstr)...\n";
}

&#38;main();</description>
		<content:encoded><![CDATA[<p>jye again,<br />
    Crud, that main() got all messed up, it makes no sense.  OK, I&#8217;m gonna try main() again with no tabs, and no lesser than - greater than symbols (I guess it got interpreted as HTML???):</p>
<p>sub main {<br />
    #  use the subs we&#8217;ve defined:<br />
    $str = &#8221; Oh, woe is me! &#8220;;<br />
    print &#8220;Now str == ($str)&#8230;\n&#8221;;<br />
    $str = &amp;rm_ws_head($str);<br />
    print &#8220;Now str == ($str)&#8230;\n&#8221;;<br />
    $str = &amp;rm_ws_tail($str);<br />
    print &#8220;Now str == ($str)&#8230;\n&#8221;;<br />
    $str = &amp;rm_ws_all($str);<br />
    print &#8220;Now str == ($str)&#8230;\n&#8221;;</p>
<p>    print &#8220;Now gonna use splits to do it&#8230;\n&#8221;;</p>
<p>    #  do it brute force using splits:<br />
    $str = &#8221; Oh, woe is me! &#8220;;<br />
    print &#8220;Now str == ($str)&#8230;\n&#8221;;<br />
    my @wrds = split(/\s/, $str);<br />
    my $newstr = &#8220;&#8221;;<br />
    foreach $w (@wrds) {<br />
        $newstr .= $w;<br />
    }<br />
    print &#8220;Now str == ($newstr)&#8230;\n&#8221;;<br />
}</p>
<p>&amp;main();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnny</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-4</link>
		<author>johnny</author>
		<pubDate>Tue, 31 Oct 2006 01:35:27 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-4</guid>
		<description>Uh....   I guess I shoulda used spaces instead of tabs.  My formatting got ate.  I'll send you another copy of this babble if you need it.
     johnny</description>
		<content:encoded><![CDATA[<p>Uh&#8230;.   I guess I shoulda used spaces instead of tabs.  My formatting got ate.  I&#8217;ll send you another copy of this babble if you need it.<br />
     johnny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnny</title>
		<link>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-3</link>
		<author>johnny</author>
		<pubDate>Tue, 31 Oct 2006 01:34:15 +0000</pubDate>
		<guid>http://biowhat.com/2006/10/30/average-cel-perl-script/#comment-3</guid>
		<description>hyr,
    Dunno if this will help or not, this will take a string &#38; chop the leading whitespace (tab, space, newline, etc.) off of it, returning the thus-beheaded string:

sub rm_ws_head {
	my $str = shift;
	$str =~ s/^\s+//;
	return $str;
}

    This will get rid of trailing whitespace:

sub rm_ws_tail {
	my $str = shift;
	$str =~ s/\s+$//;
	return $str;
}

     And this will get 'em all:

sub rm_ws_all {
	my $str = shift;
	$str =~ s/\s+//g;
	return $str;
}


     Here's code to test it:

sub main {
	#  use the subs we've defined:
	$str = " Oh, woe is me! ";
	print "Now str == ...\n";
	$str = &#38;rm_ws_head($str);
	print "Now str == ...\n";
	$str = &#38;rm_ws_tail($str);
	print "Now str == ...\n";
	$str = &#38;rm_ws_all($str);
	print "Now str == ...\n";

	print "Now gonna use splits to do it...\n";

	#  do it brute force using splits:
	$str = " Oh, woe is me! ";
	print "Now str == ...\n";
	my @wrds = split(/\s/, $str);
	my $newstr = "";
	foreach $w (@wrds) {
		$newstr .= $w;
	}
	print "Now str == ...\n";
}

&#38;main();

     Err...  I also snuck a bit of array madness in there at the end, you can split your line on whitespaces if you want then just fish out whatever fields you like, I actually do this a lot in my Perl-ing.  For instance, if you know each such line produces an array with 5 "wrds" in it, and you know you want the 3rd wrd, or $wrds[2], then that can be very nice rather than dealing over &#38; over with the whole string.

    Hope that makes some sort of sense &#38; helps in some way.  Take it easy &#38; good luck with your Perl attacks.
     johnny</description>
		<content:encoded><![CDATA[<p>hyr,<br />
    Dunno if this will help or not, this will take a string &amp; chop the leading whitespace (tab, space, newline, etc.) off of it, returning the thus-beheaded string:</p>
<p>sub rm_ws_head {<br />
	my $str = shift;<br />
	$str =~ s/^\s+//;<br />
	return $str;<br />
}</p>
<p>    This will get rid of trailing whitespace:</p>
<p>sub rm_ws_tail {<br />
	my $str = shift;<br />
	$str =~ s/\s+$//;<br />
	return $str;<br />
}</p>
<p>     And this will get &#8216;em all:</p>
<p>sub rm_ws_all {<br />
	my $str = shift;<br />
	$str =~ s/\s+//g;<br />
	return $str;<br />
}</p>
<p>     Here&#8217;s code to test it:</p>
<p>sub main {<br />
	#  use the subs we&#8217;ve defined:<br />
	$str = &#8221; Oh, woe is me! &#8220;;<br />
	print &#8220;Now str == &#8230;\n&#8221;;<br />
	$str = &amp;rm_ws_head($str);<br />
	print &#8220;Now str == &#8230;\n&#8221;;<br />
	$str = &amp;rm_ws_tail($str);<br />
	print &#8220;Now str == &#8230;\n&#8221;;<br />
	$str = &amp;rm_ws_all($str);<br />
	print &#8220;Now str == &#8230;\n&#8221;;</p>
<p>	print &#8220;Now gonna use splits to do it&#8230;\n&#8221;;</p>
<p>	#  do it brute force using splits:<br />
	$str = &#8221; Oh, woe is me! &#8220;;<br />
	print &#8220;Now str == &#8230;\n&#8221;;<br />
	my @wrds = split(/\s/, $str);<br />
	my $newstr = &#8220;&#8221;;<br />
	foreach $w (@wrds) {<br />
		$newstr .= $w;<br />
	}<br />
	print &#8220;Now str == &#8230;\n&#8221;;<br />
}</p>
<p>&amp;main();</p>
<p>     Err&#8230;  I also snuck a bit of array madness in there at the end, you can split your line on whitespaces if you want then just fish out whatever fields you like, I actually do this a lot in my Perl-ing.  For instance, if you know each such line produces an array with 5 &#8220;wrds&#8221; in it, and you know you want the 3rd wrd, or $wrds[2], then that can be very nice rather than dealing over &amp; over with the whole string.</p>
<p>    Hope that makes some sort of sense &amp; helps in some way.  Take it easy &amp; good luck with your Perl attacks.<br />
     johnny</p>
]]></content:encoded>
	</item>
</channel>
</rss>
