<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippets for the robert</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this member.</description>
		<pubDate>Fri, 05 Sep 2008 02:14:28 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Search your Gmail account for any string</title>
	<link>http://www.bytemycode.com/snippets/snippet/451/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/451/comments/</comments>
	<pubDate>Tue, 10 Oct 2006 12:39:40 +0000</pubDate>
	<dc:creator>robert</dc:creator>
	<category>blurb, Email, Gmail, message, regex</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/451/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Oct. 10th, 2006  12:39 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/451/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/robert/" title="Beginner">robert</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/blurb">blurb</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Email">Email</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Gmail">Gmail</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/message">message</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/regex">regex</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/451/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 4
			<p>This perl subroutine uses the CPAN module Mail::Webmail::Gmail to iterate through a Gmail account searching for a particular string. If a match is found, the sender's name along with his/her email address, the subject, and the "blurb" is printed to standard out. Also, all messages found will be archived automatically within Gmail to clear the message from the inbox folder. The subroutine returns the number of messages found back to the calling environment.<br /><br />Sample invocation: check_email(username, password);<br /><br />By default, the subroutine will use encryption to connect to Gmail however, by setting encrypt_session to '0' will disable encryption.</p>
		]]>
	</description>
</item><item>
	<title>Record current time</title>
	<link>http://www.bytemycode.com/snippets/snippet/442/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/442/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 13:14:08 +0000</pubDate>
	<dc:creator>robert</dc:creator>
	<category>"record time", day, hour, localtime, minute, Perl</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/442/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  1:14 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/442/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/robert/" title="Beginner">robert</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22record+time%22">"record time"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/day">day</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/hour">hour</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/localtime">localtime</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/minute">minute</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Perl">Perl</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/442/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 0
			<p>This perl function will output to a file of your choosing the current localtime as defined by perl's localtime function. It will output the date in ISO 8601 date format plus the current localtime such as: <br />                    2006-08-21 09:26:35 am<br />The function also returns the localtime without the date to the calling environment.</p>
		]]>
	</description>
</item>
	</channel>
</rss>