<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Perl Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'Perl' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Mon, 17 Jun 2013 22:45:55 -0700</pubDate>
    <lastBuildDate>Mon, 17 Jun 2013 22:45:55 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>I need to extract unique words from a text file</title>
      <link>http://www.programmersheaven.com/mb/perl/432315/432315/i-need-to-extract-unique-words-from-a-text-file/</link>
      <description>Hello programmers,&lt;br /&gt;
&lt;br /&gt;
I need to create a list of unique words from a text file using PERL...may i have the code for that please?&lt;br /&gt;
&lt;br /&gt;
Thank you&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/432315/432315/i-need-to-extract-unique-words-from-a-text-file/</guid>
      <pubDate>Wed, 12 Jun 2013 23:59:08 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>I need to extract unique words from a text file</title>
      <link>http://www.programmersheaven.com/mb/perl/432314/432314/i-need-to-extract-unique-words-from-a-text-file/</link>
      <description>Hello programmers,&lt;br /&gt;
&lt;br /&gt;
I need to create a list of unique words from a text file using PERL...may i have the code for that please?&lt;br /&gt;
&lt;br /&gt;
Thank you&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/432314/432314/i-need-to-extract-unique-words-from-a-text-file/</guid>
      <pubDate>Wed, 12 Jun 2013 23:53:26 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Search and copy the line</title>
      <link>http://www.programmersheaven.com/mb/perl/432252/432252/search-and-copy-the-line/</link>
      <description>Hi ,&lt;br /&gt;
&lt;br /&gt;
I am trying to search a particular keyword in a file which contains some 10 lines. If the key word is found i want to cut that entire line and paste the same at the end of the file. Can anyone help me please ?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/432252/432252/search-and-copy-the-line/</guid>
      <pubDate>Wed, 05 Jun 2013 21:50:13 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>PERL.........</title>
      <link>http://www.programmersheaven.com/mb/perl/432221/432221/perl/</link>
      <description>I have to merge 2 columns (separated by tab) into a single column, save as 1D array, remove duplicates and sort in ascending order...&lt;br /&gt;
How can I do it in PERL.........???&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/432221/432221/perl/</guid>
      <pubDate>Mon, 03 Jun 2013 04:29:04 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Re: HTML to PDF automatic conversion</title>
      <link>http://www.programmersheaven.com/mb/perl/332828/431983/re-html-to-pdf-automatic-conversion/#431983</link>
      <description>my friend once mentioned this image converter, and i look it up in its site and found it can do &lt;a href="http://www.rasteredge.com/how-to/csharp-imaging/pdf-convert-html/"&gt;html to pdf conversion&lt;/a&gt;, if you haven't found a good way to do that, you can have a try. good luck.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/332828/431983/re-html-to-pdf-automatic-conversion/#431983</guid>
      <pubDate>Tue, 07 May 2013 20:14:34 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Re: HTML to PDF automatic conversion</title>
      <link>http://www.programmersheaven.com/mb/perl/332828/431982/re-html-to-pdf-automatic-conversion/#431982</link>
      <description>my friend once mentioned this image converter, and i look it up in its site and found it can do &lt;a href="http://www.rasteredge.com/how-to/csharp-imaging/pdf-convert-html/"&gt;html to pdf conversion&lt;/a&gt;, if you haven't found a good way to do that, you can have a try. good luck.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/332828/431982/re-html-to-pdf-automatic-conversion/#431982</guid>
      <pubDate>Tue, 07 May 2013 20:09:26 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Re: HTML to PDF automatic conversion</title>
      <link>http://www.programmersheaven.com/mb/perl/332828/431981/re-html-to-pdf-automatic-conversion/#431981</link>
      <description>my friend once mentioned this image converter, and i look it up in its site and found it can do &lt;a href="http://www.rasteredge.com/how-to/csharp-imaging/pdf-convert-html/"&gt;html to pdf conversion&lt;/a&gt;, if you haven't found a good way to do that, you can have a try. good luck.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/332828/431981/re-html-to-pdf-automatic-conversion/#431981</guid>
      <pubDate>Tue, 07 May 2013 20:06:26 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Need a Help...</title>
      <link>http://www.programmersheaven.com/mb/perl/431894/431894/need-a-help/</link>
      <description>Hello Guys,&lt;br /&gt;
&lt;br /&gt;
I am new in Perl Programming. I want to design my Personal Control Panel for my web sites. Let me know Perl is good for it or not? and If yes, then which module we need to install on the server. Please give me suggestion.&lt;br /&gt;
&lt;br /&gt;
Thanks and Regards,&lt;br /&gt;
&lt;br /&gt;
WHDashboard&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/431894/431894/need-a-help/</guid>
      <pubDate>Thu, 11 Apr 2013 15:22:04 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Transcode Sony XDCAM EX MP4 to ProRes 422 for Final Cut Pro 7/X</title>
      <link>http://www.programmersheaven.com/mb/perl/431837/431837/transcode-sony-xdcam-ex-mp4-to-prores-422-for-final-cut-pro-7x/</link>
      <description>Summary: Follow the guide below and you will know how to import Sony XDCAM EX MP4 to Final Cut Pro 7/X without rendering or any other problems on Mac OS X(Mountain Lion included).&lt;br /&gt;
 &lt;br /&gt;
Sony XDCAM EX camcorders like PMW-EX3, PMW-200, PMW-EX1, PMW 150, etc are great for us to take high quality full HD videos. If you have got one and often use it to record 1080p video, you may have the need to edit the generated XDCAM EX MP4 files in Final Cut Pro on Mac. While, it’s a common sense that FCP cannot natively support the raw XDCAM MP4 video, the best supported video format for FCP is Apple ProRes 422.&lt;br /&gt;
 &lt;br /&gt;
The best method to solve this problem is to convert Sony XDCAM EX MP4 to ProResfor for editing in Final Cut Pro 6/7 and FCP X. You can follow the steps below to complete your task. First of all, get Brorsoft Video Converter for Mac. It will help you convert Sony XDCAM .mp4 files to ProRes for FCP on Mac at fast speed without quality loss and more import and output formats are also supported.&lt;br /&gt;
 &lt;br /&gt;
[How-To] Transfer the raw Sony XDCAM EX footage in MP4 to Final Cut Pro &lt;br /&gt;
&lt;br /&gt;
1. Download, Install and launch this XDCAM EX to ProRes Converter. Then, import Sony XDCAM EX MP4 footages to the converter.&lt;br /&gt;
 &lt;br /&gt;
2. Click format bar to choose the output format. Click and choose Final Cut Pro -&amp;gt; Apple ProRes 422 (*.mov).&lt;br /&gt;
 &lt;br /&gt;
3. You can click "settings" to customize the output parameters, adjust the resolution, bitrate as you want.&lt;br /&gt;
 &lt;br /&gt;
4. Click convert button to start transcoding Sony XDCAM EX MP4 to ProRes for FCP on Mac.&lt;br /&gt;
 &lt;br /&gt;
After conversion, you can import Sony XDCAM EX video files into Final Cut Pro without any trouble. &lt;br /&gt;
&lt;br /&gt;
Find the Source:&lt;br /&gt;
&lt;a href="http://www.brorsoft.com/how-to/import-mxf-from-sony-xdcam-xdcam-hd-xdcam-ex-to-fcp-mac.html"&gt;http://www.brorsoft.com/how-to/import-mxf-from-sony-xdcam-xdcam-hd-xdcam-ex-to-fcp-mac.html&lt;/a&gt;&lt;br /&gt;
or open here:&lt;br /&gt;
&lt;a href="http://lydia622520.soup.io/post/307436671/How-to-Import-and-Edit-Sony-XDCAM"&gt;http://lydia622520.soup.io/post/307436671/How-to-Import-and-Edit-Sony-XDCAM&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
product here:&lt;br /&gt;
&lt;a href="http://www.brorsoft.com/video-converter-mac/index.html"&gt;http://www.brorsoft.com/video-converter-mac/index.html&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.brorsoft.com/video-converter/index.html"&gt;http://www.brorsoft.com/video-converter/index.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/431837/431837/transcode-sony-xdcam-ex-mp4-to-prores-422-for-final-cut-pro-7x/</guid>
      <pubDate>Mon, 08 Apr 2013 02:14:51 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Transcode Sony XDCAM EX MP4 to ProRes 422 for Final Cut Pro 7/X</title>
      <link>http://www.programmersheaven.com/mb/perl/431836/431836/transcode-sony-xdcam-ex-mp4-to-prores-422-for-final-cut-pro-7x/</link>
      <description>Summary: Follow the guide below and you will know how to import Sony XDCAM EX MP4 to Final Cut Pro 7/X without rendering or any other problems on Mac OS X(Mountain Lion included).&lt;br /&gt;
 &lt;br /&gt;
Sony XDCAM EX camcorders like PMW-EX3, PMW-200, PMW-EX1, PMW 150, etc are great for us to take high quality full HD videos. If you have got one and often use it to record 1080p video, you may have the need to edit the generated XDCAM EX MP4 files in Final Cut Pro on Mac. While, it’s a common sense that FCP cannot natively support the raw XDCAM MP4 video, the best supported video format for FCP is Apple ProRes 422.&lt;br /&gt;
 &lt;br /&gt;
The best method to solve this problem is to convert Sony XDCAM EX MP4 to ProResfor for editing in Final Cut Pro 6/7 and FCP X. You can follow the steps below to complete your task. First of all, get Brorsoft Video Converter for Mac. It will help you convert Sony XDCAM .mp4 files to ProRes for FCP on Mac at fast speed without quality loss and more import and output formats are also supported.&lt;br /&gt;
 &lt;br /&gt;
[How-To] Transfer the raw Sony XDCAM EX footage in MP4 to Final Cut Pro &lt;br /&gt;
&lt;br /&gt;
1. Download, Install and launch this XDCAM EX to ProRes Converter. Then, import Sony XDCAM EX MP4 footages to the converter.&lt;br /&gt;
 &lt;br /&gt;
2. Click format bar to choose the output format. Click and choose Final Cut Pro -&amp;gt; Apple ProRes 422 (*.mov).&lt;br /&gt;
 &lt;br /&gt;
3. You can click "settings" to customize the output parameters, adjust the resolution, bitrate as you want.&lt;br /&gt;
 &lt;br /&gt;
4. Click convert button to start transcoding Sony XDCAM EX MP4 to ProRes for FCP on Mac.&lt;br /&gt;
 &lt;br /&gt;
After conversion, you can import Sony XDCAM EX video files into Final Cut Pro without any trouble. &lt;br /&gt;
&lt;br /&gt;
Find the Source:&lt;br /&gt;
&lt;a href="http://www.brorsoft.com/how-to/import-mxf-from-sony-xdcam-xdcam-hd-xdcam-ex-to-fcp-mac.html"&gt;http://www.brorsoft.com/how-to/import-mxf-from-sony-xdcam-xdcam-hd-xdcam-ex-to-fcp-mac.html&lt;/a&gt;&lt;br /&gt;
or open here:&lt;br /&gt;
&lt;a href="http://lydia622520.soup.io/post/307436671/How-to-Import-and-Edit-Sony-XDCAM"&gt;http://lydia622520.soup.io/post/307436671/How-to-Import-and-Edit-Sony-XDCAM&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
product here:&lt;br /&gt;
&lt;a href="http://www.brorsoft.com/video-converter-mac/index.html"&gt;http://www.brorsoft.com/video-converter-mac/index.html&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.brorsoft.com/video-converter/index.html"&gt;http://www.brorsoft.com/video-converter/index.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/431836/431836/transcode-sony-xdcam-ex-mp4-to-prores-422-for-final-cut-pro-7x/</guid>
      <pubDate>Mon, 08 Apr 2013 02:11:06 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>HTML to PDF  conversion</title>
      <link>http://www.programmersheaven.com/mb/perl/332828/431730/html-to-pdf--conversion/#431730</link>
      <description>Yep, there are such &lt;a href="http://www.rasteredge.com/how-to/csharp-imaging/pdf-convert-html/"&gt;html to pdf conversion application&lt;/a&gt;, and i've been using such pdf converter for a long time. but im not sure about"automatic conversion"?&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/332828/431730/html-to-pdf--conversion/#431730</guid>
      <pubDate>Thu, 28 Mar 2013 00:32:40 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>HTML to PDF conversion</title>
      <link>http://www.programmersheaven.com/mb/perl/332828/431729/html-to-pdf-conversion/#431729</link>
      <description>Yep, there are such &lt;a href="http://www.rasteredge.com/how-to/csharp-imaging/pdf-convert-html/"&gt;html to pdf conversion application&lt;/a&gt;, and i've been using such pdf converter for a long time. but im not sure about"automatic conversion"?&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/332828/431729/html-to-pdf-conversion/#431729</guid>
      <pubDate>Thu, 28 Mar 2013 00:27:21 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>HTML to PDF conversion</title>
      <link>http://www.programmersheaven.com/mb/perl/332828/431728/html-to-pdf-conversion/#431728</link>
      <description>Yep, there are such &lt;a href="http://www.rasteredge.com/how-to/csharp-imaging/pdf-convert-html/"&gt;html to pdf conversion application&lt;/a&gt;, and i've been using such pdf converter for a long time. but im not sure about"automatic conversion"?&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/332828/431728/html-to-pdf-conversion/#431728</guid>
      <pubDate>Thu, 28 Mar 2013 00:21:58 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Re: HTML to PDF automatic conversion</title>
      <link>http://www.programmersheaven.com/mb/perl/332828/431727/re-html-to-pdf-automatic-conversion/#431727</link>
      <description>Yep, there are such &lt;a href="http://www.rasteredge.com/how-to/csharp-imaging/pdf-convert-html/"&gt;html to pdf conversion application&lt;/a&gt;, and i've been using such pdf converter for a long time. but im not sure about"automatic conversion"?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/332828/431727/re-html-to-pdf-automatic-conversion/#431727</guid>
      <pubDate>Thu, 28 Mar 2013 00:15:04 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Re: HTML to PDF automatic conversion</title>
      <link>http://www.programmersheaven.com/mb/perl/332828/431726/re-html-to-pdf-automatic-conversion/#431726</link>
      <description>Yep, there are such html to &lt;a href="http://www.rasteredge.com/how-to/csharp-imaging/pdf-convert-html/"&gt;pdf conversion program&lt;/a&gt;, and i've been using such pdf converter for a long time, but im not understand the "automatic conversion".&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/332828/431726/re-html-to-pdf-automatic-conversion/#431726</guid>
      <pubDate>Thu, 28 Mar 2013 00:08:09 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Re: How to calculate the largest directory excluded subdirectories?</title>
      <link>http://www.programmersheaven.com/mb/perl/430242/431707/re-how-to-calculate-the-largest-directory-excluded-subdirectories/#431707</link>
      <description>&amp;lt;a href="http://www.sweetywedding.com/bridesmaid-dresses/silhouette/mermaid-trumpet.html"&amp;gt;Elegant Mermaid/Trumpet Bridesmaid Dresses&amp;lt;/a&amp;gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430242/431707/re-how-to-calculate-the-largest-directory-excluded-subdirectories/#431707</guid>
      <pubDate>Mon, 25 Mar 2013 23:14:39 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Re: How to calculate the largest directory excluded subdirectories?</title>
      <link>http://www.programmersheaven.com/mb/perl/430242/431706/re-how-to-calculate-the-largest-directory-excluded-subdirectories/#431706</link>
      <description>&amp;lt;a href="http://www.sweetywedding.com/bridesmaid-dresses/silhouette/mermaid-trumpet.html"&amp;gt;Elegant Mermaid/Trumpet Bridesmaid Dresses&amp;lt;/a&amp;gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430242/431706/re-how-to-calculate-the-largest-directory-excluded-subdirectories/#431706</guid>
      <pubDate>Mon, 25 Mar 2013 23:12:47 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Convert/Import Sony NEX-EA50EH to FCP 7 Mac</title>
      <link>http://www.programmersheaven.com/mb/perl/430933/430933/convertimport-sony-nex-ea50eh-to-fcp-7-mac/</link>
      <description>&lt;strong&gt;Summary:&lt;/strong&gt; Follow the guide below and you will know how to import Sony NEX-EA50EH AVCHD to Final Cut Pro 7/X without rendering on Mac.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Key features of Sony NEX-EA50EH:&lt;/strong&gt;&lt;br /&gt;
Full HD recording&lt;br /&gt;
Large Format Sensor for creative expression&lt;br /&gt;
Unique design for versatile shooting options&lt;br /&gt;
Interchangeable E-mount lens SystemNewly developed powered zoom lens&lt;br /&gt;
Part of the professional NXCAM camcorder range&lt;br /&gt;
16.1 megapixel still image captureA variety of recording media options&lt;br /&gt;
Video is recorded up to 60fps at 1080P in AVCHD 2.0&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/broken.gif" /&gt;http://www.brorsoft.com/images/how-to/mts-m2ts/sony-nex-ea50-avchd-to-fcp.gif[/img]&lt;br /&gt;
I've been importing some 24fps AVCHD footage into FCP 7 with no problem using the prescribed method (copying the entire contents of a card and then selecting "import from camera"), but when I do the same thing with Sony NEX-EA50EH 60fps AVCHD footage, I get error messages. So how to solve this kind of problem. Here I recommend the best &lt;strong&gt;[url=http://www.brorsoft.com/mts-converter-mac/index.html]Converter for Sony NEX-EA50EH AVCHD to FCP 7[/url]&lt;/strong&gt; on Mac OS X. &lt;br /&gt;
&lt;br /&gt;
For &lt;strong&gt;[url=http://www.brorsoft.com/how-to/transcode-sony-nex-ea50-avchd-to-fcp.html]making Sony NEX-EA50EH 1080p AVCHD footages editable in FCP 7 easily[/url]&lt;/strong&gt;, you need to find the outstanding AVCHD converter to install on your Mac OS X.&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/broken.gif" /&gt;http://www.brorsoft.com/images/how-to/mts-m2ts/steps-sony-nex-ea50-avchd-to-fcp.gif[/img]&lt;br /&gt;
&lt;br /&gt;
Step 1: Launch the &lt;strong&gt;[url=http://www.brorsoft.com/mts-converter-mac/index.html]AVCHD to FCP Converter for Mac[/url]&lt;/strong&gt; after the installation, and then load your .mts or .m2ts files to it to converting. &lt;br /&gt;
Tips: &lt;br /&gt;
1. If you want, you can merge several AVCHD clips by ticking “Merge into one” box.&lt;br /&gt;
2. Pls do not imput so many cilps to the software one time in that the software needs more space to run while converting. If the imputed file is 1GB, then memory space should be up to 40GB.&lt;br /&gt;
&lt;br /&gt;
Step 2: Click "Format" bar to choose the output format. Click and choose "Final Cut Pro-Apple ProRes 422(*.mov)" as the best output format for FCP.&lt;br /&gt;
&lt;br /&gt;
Tip: FCP 6 or ealier version only can support ProRes 422 or ProRes 422(HQ). FCP 7 or above can support Pro Res 422(LT), Pro Res 444Pro and Res 422(Proxy). &lt;br /&gt;
&lt;br /&gt;
Step 3: Tap "settings" icon to customize the output parameters, adjust the resolution, bitrate as you want. Set video size as 1920*1080. &lt;br /&gt;
Tip: Sony NEX-EA50EH is a professional camcorder that must have two version, NTSC or PAL. For NTSC users, frame rate 30fps is the best choice for them, while for PAL users 25fps is the best for them. &lt;br /&gt;
&lt;br /&gt;
Step 4: Click convert button and start to &lt;strong&gt;[url=http://hdcamcorderconverttips.altervista.org/blog/so
ny-nex-ea50ehavchd-compatability-issues-with-final-cut-pro-7x/]convert Sony NEX-EA50EH 60p AVCHD to FCP[/url]&lt;/strong&gt; compatible ProRes .mov on Mac OS X.&lt;br /&gt;
&lt;br /&gt;
Tip:&lt;br /&gt;
If you have 1080p MP4, MOV , MTS/M2TS recordings from any camcorder and met the same importing or editing issues no matter with FCP, FCE, iMovie or Avid Media Composer, you also can download a trial version of  [url=http://www.brorsoft.com/video-converter-mac/index.html]Sony NEX-EA50EH Video Converter for Mac[/url] to make them compatible for these editors.&lt;br /&gt;
&lt;br /&gt;
Related guides:&lt;br /&gt;
[url=http://www.brorsoft.com/how-to/edit-dsc-hx30v-avchd-fcp7.html]Edit Sony DSC-HX30V 1080p AVCHD Files in FCP 7 on Mac[/url]&lt;br /&gt;
[url=http://www.brorsoft.com/how-to/solution-to-editing-sony-hdr-xr260v-avchd-in-imovie-mac.html]Easy solution to editing Sony HDR-XR260V AVCHD in iMovie on Mac[/url]&lt;br /&gt;
[url=http://www.brorsoft.com/how-to/edit-sony-hdr-xr350v-avchd-in-imovie.html]Edit Sony HDR-XR350V AVCHD in iMovie &amp;amp; Export to iDVD for burning[/url]&lt;br /&gt;
[url=http://movies-videos-convert-tips.overblog.com/avchd-2-0-to-avid-mc-transcode-convert-sony-a77-1080p-avchd-to-dnxhd-for-editing-in-avid-media-composer]Converting Sony A77 AVCHD to DNxHD For Avid MC[/url]&lt;br /&gt;
[url=http://lydia622520.soup.io/post/296174208/Watch-and-Play-1080p-MTS-clips-on]Watch and Play 1080p MTS clips on Galaxy Note 2[/url]&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430933/430933/convertimport-sony-nex-ea50eh-to-fcp-7-mac/</guid>
      <pubDate>Wed, 16 Jan 2013 01:21:42 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Convert/Import Sony NEX-EA50EH to FCP 7 Mac</title>
      <link>http://www.programmersheaven.com/mb/perl/430932/430932/convertimport-sony-nex-ea50eh-to-fcp-7-mac/</link>
      <description>&lt;strong&gt;Summary:&lt;/strong&gt; Follow the guide below and you will know how to import Sony NEX-EA50EH AVCHD to Final Cut Pro 7/X without rendering on Mac.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Key features of Sony NEX-EA50EH:&lt;/strong&gt;&lt;br /&gt;
Full HD recording&lt;br /&gt;
Large Format Sensor for creative expression&lt;br /&gt;
Unique design for versatile shooting options&lt;br /&gt;
Interchangeable E-mount lens SystemNewly developed powered zoom lens&lt;br /&gt;
Part of the professional NXCAM camcorder range&lt;br /&gt;
16.1 megapixel still image captureA variety of recording media options&lt;br /&gt;
Video is recorded up to 60fps at 1080P in AVCHD 2.0&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/broken.gif" /&gt;http://www.brorsoft.com/images/how-to/mts-m2ts/sony-nex-ea50-avchd-to-fcp.gif[/img]&lt;br /&gt;
I've been importing some 24fps AVCHD footage into FCP 7 with no problem using the prescribed method (copying the entire contents of a card and then selecting "import from camera"), but when I do the same thing with Sony NEX-EA50EH 60fps AVCHD footage, I get error messages. So how to solve this kind of problem. Here I recommend the best &lt;strong&gt;[url=http://www.brorsoft.com/mts-converter-mac/index.html]Converter for Sony NEX-EA50EH AVCHD to FCP 7[/url]&lt;/strong&gt; on Mac OS X. &lt;br /&gt;
&lt;br /&gt;
For &lt;strong&gt;[url=http://www.brorsoft.com/how-to/transcode-sony-nex-ea50-avchd-to-fcp.html]making Sony NEX-EA50EH 1080p AVCHD footages editable in FCP 7 easily[/url]&lt;/strong&gt;, you need to find the outstanding AVCHD converter to install on your Mac OS X.&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/broken.gif" /&gt;http://www.brorsoft.com/images/how-to/mts-m2ts/steps-sony-nex-ea50-avchd-to-fcp.gif[/img]&lt;br /&gt;
&lt;br /&gt;
Step 1: Launch the &lt;strong&gt;[url=http://www.brorsoft.com/mts-converter-mac/index.html]AVCHD to FCP Converter for Mac[/url]&lt;/strong&gt; after the installation, and then load your .mts or .m2ts files to it to converting. &lt;br /&gt;
Tips: &lt;br /&gt;
1. If you want, you can merge several AVCHD clips by ticking “Merge into one” box.&lt;br /&gt;
2. Pls do not imput so many cilps to the software one time in that the software needs more space to run while converting. If the imputed file is 1GB, then memory space should be up to 40GB.&lt;br /&gt;
&lt;br /&gt;
Step 2: Click "Format" bar to choose the output format. Click and choose "Final Cut Pro-Apple ProRes 422(*.mov)" as the best output format for FCP.&lt;br /&gt;
&lt;br /&gt;
Tip: FCP 6 or ealier version only can support ProRes 422 or ProRes 422(HQ). FCP 7 or above can support Pro Res 422(LT), Pro Res 444Pro and Res 422(Proxy). &lt;br /&gt;
&lt;br /&gt;
Step 3: Tap "settings" icon to customize the output parameters, adjust the resolution, bitrate as you want. Set video size as 1920*1080. &lt;br /&gt;
Tip: Sony NEX-EA50EH is a professional camcorder that must have two version, NTSC or PAL. For NTSC users, frame rate 30fps is the best choice for them, while for PAL users 25fps is the best for them. &lt;br /&gt;
&lt;br /&gt;
Step 4: Click convert button and start to &lt;strong&gt;[url=http://hdcamcorderconverttips.altervista.org/blog/so
ny-nex-ea50ehavchd-compatability-issues-with-final-cut-pro-7x/]convert Sony NEX-EA50EH 60p AVCHD to FCP[/url]&lt;/strong&gt; compatible ProRes .mov on Mac OS X.&lt;br /&gt;
&lt;br /&gt;
Tip:&lt;br /&gt;
If you have 1080p MP4, MOV , MTS/M2TS recordings from any camcorder and met the same importing or editing issues no matter with FCP, FCE, iMovie or Avid Media Composer, you also can download a trial version of  [url=http://www.brorsoft.com/video-converter-mac/index.html]Sony NEX-EA50EH Video Converter for Mac[/url] to make them compatible for these editors.&lt;br /&gt;
&lt;br /&gt;
Related guides:&lt;br /&gt;
[url=http://www.brorsoft.com/how-to/edit-dsc-hx30v-avchd-fcp7.html]Edit Sony DSC-HX30V 1080p AVCHD Files in FCP 7 on Mac[/url]&lt;br /&gt;
[url=http://www.brorsoft.com/how-to/solution-to-editing-sony-hdr-xr260v-avchd-in-imovie-mac.html]Easy solution to editing Sony HDR-XR260V AVCHD in iMovie on Mac[/url]&lt;br /&gt;
[url=http://www.brorsoft.com/how-to/edit-sony-hdr-xr350v-avchd-in-imovie.html]Edit Sony HDR-XR350V AVCHD in iMovie &amp;amp; Export to iDVD for burning[/url]&lt;br /&gt;
[url=http://movies-videos-convert-tips.overblog.com/avchd-2-0-to-avid-mc-transcode-convert-sony-a77-1080p-avchd-to-dnxhd-for-editing-in-avid-media-composer]Converting Sony A77 AVCHD to DNxHD For Avid MC[/url]&lt;br /&gt;
[url=http://lydia622520.soup.io/post/296174208/Watch-and-Play-1080p-MTS-clips-on]Watch and Play 1080p MTS clips on Galaxy Note 2[/url]&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430932/430932/convertimport-sony-nex-ea50eh-to-fcp-7-mac/</guid>
      <pubDate>Wed, 16 Jan 2013 01:19:50 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>please help SNMP  dynamic configuration using perl</title>
      <link>http://www.programmersheaven.com/mb/perl/430747/430747/please-help-snmp--dynamic-configuration-using-perl/</link>
      <description>Hi there I new to perl and SNMP....I need to write a trap handler in Perl that handle traps in SNMP environment such as link up/down and also it must do some configuration as a respond/correct to what happen,in my case I look for linkdown status and it should turn the alternative port up,that's all&lt;br /&gt;
so fa r I got the:&lt;br /&gt;
1- snmptrapd.conf file&lt;br /&gt;
&lt;br /&gt;
authCommunity log,execute,net public&lt;br /&gt;
ignoreauthfailure  no&lt;br /&gt;
format1  %#02.2h:%#02.2j TRAP%w.%q (%W) from %A Event:%v\n&lt;br /&gt;
traphandle "{abc}" eq "IF-MIB::LinkUp" || "{def}" eq "IF-MIB::LinkDown" |   perl.exe traph.pl&lt;br /&gt;
&lt;br /&gt;
2-traph.pl file&lt;br /&gt;
&lt;br /&gt;
my $TRAP_FILE = "traps.all.log";	&lt;br /&gt;
print "Executing Trap Handler...";&lt;br /&gt;
&lt;br /&gt;
my $host = &amp;lt;STDIN&amp;gt;;	# Read the Hostname - First line of input from STDIN&lt;br /&gt;
my $ip = &amp;lt;STDIN&amp;gt;;	# Read the IP - Second line of input&lt;br /&gt;
&lt;br /&gt;
my $result = index($ip,"127.0.0.1");&lt;br /&gt;
&lt;br /&gt;
if ($result==-1) {&lt;br /&gt;
  while(&amp;lt;STDIN&amp;gt;) {&lt;br /&gt;
          push(@vars,$_);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  open(TRAPFILE, "&amp;gt;&amp;gt; $TRAP_FILE");&lt;br /&gt;
  print(TRAPFILE "New trap received: $OID\n\nHOST: $host\nIP: $ip\n");&lt;br /&gt;
  foreach(@vars) {&lt;br /&gt;
          print(TRAPFILE "TRAP: $_\n");&lt;br /&gt;
  }&lt;br /&gt;
  print(TRAPFILE "\n----------\n");&lt;br /&gt;
  close(TRAPFILE);&lt;br /&gt;
}&lt;br /&gt;
print "finished.\n";&lt;br /&gt;
&lt;br /&gt;
but I don't know how to write the piece of script that will do the configuration changes from linkdown to linkup...&lt;br /&gt;
&lt;br /&gt;
can somebody help please...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430747/430747/please-help-snmp--dynamic-configuration-using-perl/</guid>
      <pubDate>Wed, 26 Dec 2012 07:10:54 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>please help SNMP  dynamic configuration using perl</title>
      <link>http://www.programmersheaven.com/mb/perl/430746/430746/please-help-snmp--dynamic-configuration-using-perl/</link>
      <description>Hi there I new to perl and SNMP....I need to write a trap handler in Perl that handle traps in SNMP environment such as link up/down and also it must do some configuration as a respond/correct to what happen,in my case I look for linkdown status and it should turn the alternative port up,that's all&lt;br /&gt;
so fa r I got the:&lt;br /&gt;
1- snmptrapd.conf file&lt;br /&gt;
&lt;br /&gt;
authCommunity log,execute,net public&lt;br /&gt;
ignoreauthfailure  no&lt;br /&gt;
format1  %#02.2h:%#02.2j TRAP%w.%q (%W) from %A Event:%v\n&lt;br /&gt;
traphandle "{abc}" eq "IF-MIB::LinkUp" || "{def}" eq "IF-MIB::LinkDown" |   perl.exe traph.pl&lt;br /&gt;
&lt;br /&gt;
2-traph.pl file&lt;br /&gt;
&lt;br /&gt;
my $TRAP_FILE = "traps.all.log";	&lt;br /&gt;
print "Executing Trap Handler...";&lt;br /&gt;
&lt;br /&gt;
my $host = &amp;lt;STDIN&amp;gt;;	# Read the Hostname - First line of input from STDIN&lt;br /&gt;
my $ip = &amp;lt;STDIN&amp;gt;;	# Read the IP - Second line of input&lt;br /&gt;
&lt;br /&gt;
my $result = index($ip,"127.0.0.1");&lt;br /&gt;
&lt;br /&gt;
if ($result==-1) {&lt;br /&gt;
  while(&amp;lt;STDIN&amp;gt;) {&lt;br /&gt;
          push(@vars,$_);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  open(TRAPFILE, "&amp;gt;&amp;gt; $TRAP_FILE");&lt;br /&gt;
  print(TRAPFILE "New trap received: $OID\n\nHOST: $host\nIP: $ip\n");&lt;br /&gt;
  foreach(@vars) {&lt;br /&gt;
          print(TRAPFILE "TRAP: $_\n");&lt;br /&gt;
  }&lt;br /&gt;
  print(TRAPFILE "\n----------\n");&lt;br /&gt;
  close(TRAPFILE);&lt;br /&gt;
}&lt;br /&gt;
print "finished.\n";&lt;br /&gt;
&lt;br /&gt;
but I don't know how to write the piece of script that will do the configuration changes from linkdown to linkup...&lt;br /&gt;
&lt;br /&gt;
can somebody help please...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430746/430746/please-help-snmp--dynamic-configuration-using-perl/</guid>
      <pubDate>Wed, 26 Dec 2012 07:06:48 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Getting two columns that begin with the same letter</title>
      <link>http://www.programmersheaven.com/mb/perl/430688/430688/getting-two-columns-that-begin-with-the-same-letter/</link>
      <description>Hello all !&lt;br /&gt;
&lt;br /&gt;
I have a file that has a list of plant genes and it looks like this:&lt;br /&gt;
01-0223:	Os05g0168800	Sb09g005020	  0.650	speciation&lt;br /&gt;
01-0224:	Os01g0168200	Os05g0169000  1.083	WGD&lt;br /&gt;
01-0224:	Os05g0169000	Sb09g005030	   0.670	speciation&lt;br /&gt;
01-0225:	Os01g0168300	Sb03g004660	   0.522	speciation&lt;br /&gt;
&lt;br /&gt;
I want to get the lines where column 2 and column 3 both begin with "O" and to ignore the lines where either column 1 or 2 begins with an "S"&lt;br /&gt;
&lt;br /&gt;
I have tried this&lt;br /&gt;
&lt;br /&gt;
use warnings;&lt;br /&gt;
&lt;br /&gt;
open (FILE, "genes.txt");&lt;br /&gt;
while ( $line = &amp;lt;FILE&amp;gt;) {&lt;br /&gt;
chomp $line;&lt;br /&gt;
if ( [2,3] =~ "^O") {&lt;br /&gt;
print $line ;}&lt;br /&gt;
}&lt;br /&gt;
exit;&lt;br /&gt;
&lt;br /&gt;
but it doesn't work. &lt;br /&gt;
Any ideas? Thanks !&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430688/430688/getting-two-columns-that-begin-with-the-same-letter/</guid>
      <pubDate>Tue, 18 Dec 2012 09:04:51 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Getting two columns that begin with the same letter</title>
      <link>http://www.programmersheaven.com/mb/perl/430687/430687/getting-two-columns-that-begin-with-the-same-letter/</link>
      <description>Hello all !&lt;br /&gt;
&lt;br /&gt;
I have a file that has a list of plant genes and it looks like this:&lt;br /&gt;
01-0223:	Os05g0168800	Sb09g005020	  0.650	speciation&lt;br /&gt;
01-0224:	Os01g0168200	Os05g0169000  1.083	WGD&lt;br /&gt;
01-0224:	Os05g0169000	Sb09g005030	   0.670	speciation&lt;br /&gt;
01-0225:	Os01g0168300	Sb03g004660	   0.522	speciation&lt;br /&gt;
&lt;br /&gt;
I want to get the lines where column 2 and column 3 both begin with "O" and to ignore the lines where either column 1 or 2 begins with an "S"&lt;br /&gt;
&lt;br /&gt;
I have tried this&lt;br /&gt;
&lt;br /&gt;
use warnings;&lt;br /&gt;
&lt;br /&gt;
open (FILE, "genes.txt");&lt;br /&gt;
while ( $line = &amp;lt;FILE&amp;gt;) {&lt;br /&gt;
chomp $line;&lt;br /&gt;
if ( [2,3] =~ "^O") {&lt;br /&gt;
print $line ;}&lt;br /&gt;
}&lt;br /&gt;
exit;&lt;br /&gt;
&lt;br /&gt;
but it doesn't work. &lt;br /&gt;
Any ideas? Thanks !&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430687/430687/getting-two-columns-that-begin-with-the-same-letter/</guid>
      <pubDate>Tue, 18 Dec 2012 09:03:00 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Help with perl irc game please</title>
      <link>http://www.programmersheaven.com/mb/perl/430684/430684/help-with-perl-irc-game-please/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
Can you please help me with my perl irc game, when someone types !present in a channel on irc, it should give a user a present, but instead of doing that it says " stop hogging all the best pitches " How can I fix it so it gives the user a present please ?&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
#!/usr/bin/perl
#
# Flashy's bloodsports. &lt;a href="http://digdilem.org/"&gt;http://digdilem.org/&lt;/a&gt; - "Because thems trouts ain't gonna catch themselves!"
# (Credit to the original Eggdrop TCL script by Nerfbendr)
#
# Adds silly !hunt, !fish and !trophy and !present public triggers
# Also !newmonth will clean out the trophy cupboard. (Only if you do it, or the nick in $owner_nick)
#
# Optional Configuration (Will work fine without changing these, but you can if you like)
my $owner_nick='rainbowwarrior'; # Your nick - you can only reset the scores remotely if you use this nick.
my $scale = 'kg'; # Say here whether you want to measure weights in lb or kg.
my $catch_percent=90; # How often you catch or shoot something.
my $trophy_cabinet = Xchat::get_info( 'xchatdir' ) . "\\trophies.txt"; # File to keep the trophies in.
# End user configuration
use strict;
Xchat::register( "rainbowwarrrior's Huntin' 'n Fishin' and present unwrapping", 'v.004', "Hunting", "" );
Xchat::hook_print('Channel Message', "hunting");
Xchat::hook_print('Your Message', "hunting");
Xchat::hook_print('Private Message', "hunting");
Xchat::hook_print('Private Message to Dialog', "hunting");
my $bigfish=0,my $fishman='Nobody',my $bighunt=0,my $huntman='Nobody',my $bigpresent=0,my $presenthunt='Nobody',my $present_unwrapper;
my $fishtype='Trout',my $fishplace='Pool';
my $hunttype='bear', my $huntplace='Bushes';
my $presenttype='present', my $presentplaces='xmas';
my $last_hunter;
my $last_fisher;
my $last_presenthunter;
my @hunts = ( "bear","gopher","rabbit","hunter","deer","fox","du
ck","moose","pokemon named Pikachu","park ranger","Yogi Bear","Boo Boo Bear","dog named Benji","cow","raccoon","koala bear","camper","channel lamer");
my @fish = ( "Salmon","Herring","Yellowfin Tuna","Pink Salmon","Chub","Barbel","Perch","Northern Pike","Brown Trout","Arctic Char","Roach","Brayling","Bleak","Cat Fish","Sun Fish","Old Tire","Rusty Tin Can","Genie Lamp","Love Message In A Bottle","Old Log","Rubber Boot","Dead Body","Loch Ness Monster","Old Fishing Lure","Piece of the Titanic","Chunk of Atlantis","Squid","Whale","Dolphin","Porpoise","St
ingray","Submarine","Seal","Seahorse","Jellyfish",
"Starfish","Electric Eel","Great White Shark","Scuba Diver","X","Lag Monster","Virus","Soggy Pack of Smokes","Pile of Weed","Boat Anchor","Pair Of Floaties","Mermaid","Merman","Halibut","Tiddler","
Sock","Trout");
my @presents = ( "a new car","cake","guitar","dvd","xbox360","playstation3
","hairdryer","trampoline","dog","cat","electric shock game","a board game","a snake","tickets to a rock concert","a blowup doll","book");
my @huntplaces = ("in some bushes","in a hunting blind","in a hole","up in a tree","in a hiding place","out in the open","in the middle of a field","downtown","on a street corner","at the local mall");
my @fishplaces = ("Stream","Lake","River","Pond","Ocean","Bathtub",
"Kiddie's Swimming Pool","Toilet","Pile of Vomit","Pool of Urine","Kitchen Sink","Bathroom Sink","Mud Puddle","Pail of Water","Bowl of Jell-O (tm)","Wash Basin","Rain Barrel","Aquarium","SnowBank","WaterFall","Cup of Coffee","Glass of Milk");
my @presentplaces = ("in a cupboard","under a xmas tree","in the liverroom","up in a tree","in a hiding place","out in the open","upstairs","on a boat","on a street corner","at the local mall");



Xchat::print("Path=($trophy_cabinet");

if (open (DH,"&amp;lt;$trophy_cabinet&amp;gt;")) {
	($bigfish,$fishman,$fishtype,$fishplace) = split(/\|/,&amp;lt;DH&amp;gt;);
	chomp($fishplace);
	($bighunt,$huntman,$hunttype,$huntplace) = split(/\|/,&amp;lt;DH&amp;gt;);
        my ($bigpresent,$presenthunt,$presenttype,$present_un
wrapper,$presentplaces) = split(/\|/,&amp;lt;DH&amp;gt;);
	close (DH);
	Xchat::print("Peered in the trophy cabinet: ($bigfish$scale $fishtype by $fishman) ($bighunt$scale $hunttype by $huntman) ($bigpresent$scale $presenttype by $present_unwrapper");
	} else { 
	Xchat::print("\002Woo, looks like we've not gone hunting before. Let's make a trophy cabinet...");
	save_trophy();
	}
	
Xchat::print("\002Loaded Flash's Huntin' 'n Fishin'\002 (!hunt, !fish !present !trophy - Current records are $bigfish$scale and $bighunt$scale)");

sub hunting {
	my @pubwords = split(/ /,$_[0][1]);
	my $hunter = Xchat::strip_code($_[0][0]);
	my $channel = Xchat::get_info('channel');
	if (lc($pubwords[0]) eq '!hunt') {
		if ($hunter eq $last_hunter) { 
			Xchat::command("say Stop hogging all the best pitches $hunter, let someone else try first!");
			return Xchat::EAT_NONE;
			} else {
			$last_hunter = $hunter; 
			}
		my $huntplace = @huntplaces[rand(scalar @huntplaces)];
		my $hunt = @hunts[rand(scalar @hunts)];
		my $weight = 1+int(rand($bighunt+10));
		Xchat::command("msg $hunter You hide $huntplace and wait for something to wander by...");
		Xchat::command("msg $hunter .");
		Xchat::command("msg $hunter ..");
		Xchat::command("msg $hunter ...");
		Xchat::command("msg $hunter You think you hear something and fire wildly in that direction!");
		if (rand(100)&amp;lt;$catch_percent) {
			Xchat::command("msg $hunter Congratulations, $hunter! You just bagged yourself a $weight$scale $hunt!");
			Xchat::command("msg $channel $hunter just bagged a $weight$scale $hunt.");
			if ($weight &amp;gt; $bighunt) {
				Xchat::command("msg $hunter Wow!!! That's a new record! Way to go, $hunter! Type !trophy to see it!");
				Xchat::command("msg $channel Wow! That breaks the old record of a $bighunt$scale $hunttype! $hunter is amazing!");
				$bighunt=$weight;
				$huntman=$hunter;
				$hunttype=$hunt;
				save_trophy();
				}
		} else {
			Xchat::command("msg $hunter Rats...you missed it, $hunter! Better luck next time!");
			Xchat::command("msg $channel $hunter is useless, they missed by a mile!");
			}
		}	
	if (lc($pubwords[0]) eq '!fish') {
		$fishplace = @fishplaces[rand(scalar @fishplaces)];
		my $fishy = @fish[rand(scalar @fish)];
		my $weight = 1+int(rand($bigfish+10));
		if ($hunter eq $last_fisher) { 
			Xchat::command("say Stop hogging all the best pitches $hunter, let someone else try first!");
			return Xchat::EAT_NONE;
			} else {
			$last_fisher = $hunter; 
			}
		Xchat::command("msg $hunter You cast your line into a $fishplace and wait for a bite...");
		Xchat::command("msg $hunter .");
		Xchat::command("msg $hunter ..");
		Xchat::command("msg $hunter ...");
		Xchat::command("msg $hunter You feel a tug on your line and reel it in...");
		if (rand(100)&amp;lt;$catch_percent) {
			Xchat::command("msg $hunter Congratulations, $hunter! You just caught yourself a $weight$scale $fishy!");
			Xchat::command("msg $channel $hunter just caught a $weight$scale $fishy");
			if ($weight &amp;gt; $bigfish) {
				Xchat::command("msg $hunter Wow!!! That's a new record! Way to go, $hunter! Type !trophy to see it!");
				Xchat::command("msg $channel Brilliant! That breaks the old record of a $bigfish$scale $fishtype! $hunter is the world's best!");
				$fishman=$hunter;
				$bigfish=$weight;
				$fishtype=$fishy;
				save_trophy();
				}
		} else {
			Xchat::command("msg $hunter Rats...it got away, $hunter! Better luck next time!");
			Xchat::command("msg $channel $hunter is useless, they failed to catch anything!");
			}
		}
	if (lc($pubwords[0]) eq '!trophy') {
		Xchat::command("say $fishman holds the fishing record when they caught a $bigfish$scale $fishtype");
		Xchat::command("say $huntman holds the hunting record when they bagged a $bighunt$scale $hunttype");
                Xchat::command("say $presenthunt holds the present unwrapping record when they unwrapped a $bigpresent$scale $presenttype");
		}
if (lc($pubwords[0]) eq '!present') {
		my $presentplaces = @presentplaces[rand(scalar @presentplaces)];
		my $present = $presents[int rand @presents]; 
		my $weight = 1+int(rand($present+10));
		if ($present_unwrapper eq $last_presenthunter) { 
			Xchat::command("say Stop hogging all the best pitches $presenthunt, let someone else try first!");
			return Xchat::EAT_NONE;
			} else {
			"my \$last_present = " 
			}
		Xchat::command("msg $present_unwrapper You unwrap your present from $presentplaces and see what you get...");
		Xchat::command("msg $present_unwrapper .");
		Xchat::command("msg $present_unwrapper ..");
		Xchat::command("msg $present_unwrapper ...");
		Xchat::command("msg $present_unwrapper You unwrap and see ...");
		if (rand(100)&amp;lt;$catch_percent) {
			Xchat::command("msg $present_unwrapper Congratulations, $present_unwrapper! You just unwrapped a $weight$scale $present!");
			Xchat::command("msg $channel $present_unwrapper just got a  $weight$scale $present");
			if ($weight &amp;gt; $present) {
				Xchat::command("msg $present_unwrapper Wow!!! That's a new record! Way to go, $present_unwrapper! Type !trophy to see it!");
				Xchat::command("msg $channel Brilliant! That breaks the old record of a $present$scale $presenttype! $present_unwrapper is the world's best!");
				$present_unwrapper=$present_unwrapper;
				$present=$weight;
				$presenttype=$present;
				save_trophy();
				}
		} else {
			Xchat::command("msg $present_unwrapper Sorry no present this time $present_unwrapper! Better luck next time!");
			Xchat::command("msg $channel $present_unwrapper is useless, they failed to get a present!");
			}
		}
	if (lc($pubwords[0]) eq '!newmonth') {		
		my $curnick = Xchat::get_info('nick');
		if ((lc($hunter) eq lc($owner_nick)) or ($hunter eq Xchat::get_info('nick'))) {
			$bigfish=0; $fishman='Nobody'; $fishtype='Tiddler'; $fishplace='Toilet'; 
			$bighunt=0; $huntman='Nobody'; $hunttype='Haggis'; $huntplace='Bush';
                        $bigpresent=0; $present_unwrapper='Nobody'; $presenttype='xmas'; $presentplaces='everywhere';
			save_trophy();
			Xchat::command("say It's a new month, all existing huntin' 'n fishin' and present unwrapping records are reset!");
			} else { Xchat::command("say Who are you, $present_unwrapper to tell me to change the month?"); }
		} 
}

sub save_trophy {
	open (DH, "&amp;gt;$trophy_cabinet") or die("Bah! Can't open the trophy cabinet to push this 'ere trophy in!");
	print (DH "$bigfish|$fishman|$fishtype|$fishplace\n");
	print (DH "$bighunt|$huntman|$hunttype|$huntplace");
        print (DH "$bigpresent|$present_unwrapper|$presenttype|$pres
entplaces");
	close (DH);
	}
	
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430684/430684/help-with-perl-irc-game-please/</guid>
      <pubDate>Tue, 18 Dec 2012 05:25:27 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Help with perl irc game please</title>
      <link>http://www.programmersheaven.com/mb/perl/430683/430683/help-with-perl-irc-game-please/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
Can you please help me with my perl irc game, when someone types !present in a channel on irc, it should give a user a present, but instead of doing that it says " stop hogging all the best pitches " How can I fix it so it gives the user a present please ?&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
#!/usr/bin/perl
#
# Flashy's bloodsports. &lt;a href="http://digdilem.org/"&gt;http://digdilem.org/&lt;/a&gt; - "Because thems trouts ain't gonna catch themselves!"
# (Credit to the original Eggdrop TCL script by Nerfbendr)
#
# Adds silly !hunt, !fish and !trophy and !present public triggers
# Also !newmonth will clean out the trophy cupboard. (Only if you do it, or the nick in $owner_nick)
#
# Optional Configuration (Will work fine without changing these, but you can if you like)
my $owner_nick='rainbowwarrior'; # Your nick - you can only reset the scores remotely if you use this nick.
my $scale = 'kg'; # Say here whether you want to measure weights in lb or kg.
my $catch_percent=90; # How often you catch or shoot something.
my $trophy_cabinet = Xchat::get_info( 'xchatdir' ) . "\\trophies.txt"; # File to keep the trophies in.
# End user configuration
use strict;
Xchat::register( "rainbowwarrrior's Huntin' 'n Fishin' and present unwrapping", 'v.004', "Hunting", "" );
Xchat::hook_print('Channel Message', "hunting");
Xchat::hook_print('Your Message', "hunting");
Xchat::hook_print('Private Message', "hunting");
Xchat::hook_print('Private Message to Dialog', "hunting");
my $bigfish=0,my $fishman='Nobody',my $bighunt=0,my $huntman='Nobody',my $bigpresent=0,my $presenthunt='Nobody',my $present_unwrapper;
my $fishtype='Trout',my $fishplace='Pool';
my $hunttype='bear', my $huntplace='Bushes';
my $presenttype='present', my $presentplaces='xmas';
my $last_hunter;
my $last_fisher;
my $last_presenthunter;
my @hunts = ( "bear","gopher","rabbit","hunter","deer","fox","du
ck","moose","pokemon named Pikachu","park ranger","Yogi Bear","Boo Boo Bear","dog named Benji","cow","raccoon","koala bear","camper","channel lamer");
my @fish = ( "Salmon","Herring","Yellowfin Tuna","Pink Salmon","Chub","Barbel","Perch","Northern Pike","Brown Trout","Arctic Char","Roach","Brayling","Bleak","Cat Fish","Sun Fish","Old Tire","Rusty Tin Can","Genie Lamp","Love Message In A Bottle","Old Log","Rubber Boot","Dead Body","Loch Ness Monster","Old Fishing Lure","Piece of the Titanic","Chunk of Atlantis","Squid","Whale","Dolphin","Porpoise","St
ingray","Submarine","Seal","Seahorse","Jellyfish",
"Starfish","Electric Eel","Great White Shark","Scuba Diver","X","Lag Monster","Virus","Soggy Pack of Smokes","Pile of Weed","Boat Anchor","Pair Of Floaties","Mermaid","Merman","Halibut","Tiddler","
Sock","Trout");
my @presents = ( "a new car","cake","guitar","dvd","xbox360","playstation3
","hairdryer","trampoline","dog","cat","electric shock game","a board game","a snake","tickets to a rock concert","a blowup doll","book");
my @huntplaces = ("in some bushes","in a hunting blind","in a hole","up in a tree","in a hiding place","out in the open","in the middle of a field","downtown","on a street corner","at the local mall");
my @fishplaces = ("Stream","Lake","River","Pond","Ocean","Bathtub",
"Kiddie's Swimming Pool","Toilet","Pile of Vomit","Pool of Urine","Kitchen Sink","Bathroom Sink","Mud Puddle","Pail of Water","Bowl of Jell-O (tm)","Wash Basin","Rain Barrel","Aquarium","SnowBank","WaterFall","Cup of Coffee","Glass of Milk");
my @presentplaces = ("in a cupboard","under a xmas tree","in the liverroom","up in a tree","in a hiding place","out in the open","upstairs","on a boat","on a street corner","at the local mall");



Xchat::print("Path=($trophy_cabinet");

if (open (DH,"&amp;lt;$trophy_cabinet&amp;gt;")) {
	($bigfish,$fishman,$fishtype,$fishplace) = split(/\|/,&amp;lt;DH&amp;gt;);
	chomp($fishplace);
	($bighunt,$huntman,$hunttype,$huntplace) = split(/\|/,&amp;lt;DH&amp;gt;);
        my ($bigpresent,$presenthunt,$presenttype,$present_un
wrapper,$presentplaces) = split(/\|/,&amp;lt;DH&amp;gt;);
	close (DH);
	Xchat::print("Peered in the trophy cabinet: ($bigfish$scale $fishtype by $fishman) ($bighunt$scale $hunttype by $huntman) ($bigpresent$scale $presenttype by $present_unwrapper");
	} else { 
	Xchat::print("\002Woo, looks like we've not gone hunting before. Let's make a trophy cabinet...");
	save_trophy();
	}
	
Xchat::print("\002Loaded Flash's Huntin' 'n Fishin'\002 (!hunt, !fish !present !trophy - Current records are $bigfish$scale and $bighunt$scale)");

sub hunting {
	my @pubwords = split(/ /,$_[0][1]);
	my $hunter = Xchat::strip_code($_[0][0]);
	my $channel = Xchat::get_info('channel');
	if (lc($pubwords[0]) eq '!hunt') {
		if ($hunter eq $last_hunter) { 
			Xchat::command("say Stop hogging all the best pitches $hunter, let someone else try first!");
			return Xchat::EAT_NONE;
			} else {
			$last_hunter = $hunter; 
			}
		my $huntplace = @huntplaces[rand(scalar @huntplaces)];
		my $hunt = @hunts[rand(scalar @hunts)];
		my $weight = 1+int(rand($bighunt+10));
		Xchat::command("msg $hunter You hide $huntplace and wait for something to wander by...");
		Xchat::command("msg $hunter .");
		Xchat::command("msg $hunter ..");
		Xchat::command("msg $hunter ...");
		Xchat::command("msg $hunter You think you hear something and fire wildly in that direction!");
		if (rand(100)&amp;lt;$catch_percent) {
			Xchat::command("msg $hunter Congratulations, $hunter! You just bagged yourself a $weight$scale $hunt!");
			Xchat::command("msg $channel $hunter just bagged a $weight$scale $hunt.");
			if ($weight &amp;gt; $bighunt) {
				Xchat::command("msg $hunter Wow!!! That's a new record! Way to go, $hunter! Type !trophy to see it!");
				Xchat::command("msg $channel Wow! That breaks the old record of a $bighunt$scale $hunttype! $hunter is amazing!");
				$bighunt=$weight;
				$huntman=$hunter;
				$hunttype=$hunt;
				save_trophy();
				}
		} else {
			Xchat::command("msg $hunter Rats...you missed it, $hunter! Better luck next time!");
			Xchat::command("msg $channel $hunter is useless, they missed by a mile!");
			}
		}	
	if (lc($pubwords[0]) eq '!fish') {
		$fishplace = @fishplaces[rand(scalar @fishplaces)];
		my $fishy = @fish[rand(scalar @fish)];
		my $weight = 1+int(rand($bigfish+10));
		if ($hunter eq $last_fisher) { 
			Xchat::command("say Stop hogging all the best pitches $hunter, let someone else try first!");
			return Xchat::EAT_NONE;
			} else {
			$last_fisher = $hunter; 
			}
		Xchat::command("msg $hunter You cast your line into a $fishplace and wait for a bite...");
		Xchat::command("msg $hunter .");
		Xchat::command("msg $hunter ..");
		Xchat::command("msg $hunter ...");
		Xchat::command("msg $hunter You feel a tug on your line and reel it in...");
		if (rand(100)&amp;lt;$catch_percent) {
			Xchat::command("msg $hunter Congratulations, $hunter! You just caught yourself a $weight$scale $fishy!");
			Xchat::command("msg $channel $hunter just caught a $weight$scale $fishy");
			if ($weight &amp;gt; $bigfish) {
				Xchat::command("msg $hunter Wow!!! That's a new record! Way to go, $hunter! Type !trophy to see it!");
				Xchat::command("msg $channel Brilliant! That breaks the old record of a $bigfish$scale $fishtype! $hunter is the world's best!");
				$fishman=$hunter;
				$bigfish=$weight;
				$fishtype=$fishy;
				save_trophy();
				}
		} else {
			Xchat::command("msg $hunter Rats...it got away, $hunter! Better luck next time!");
			Xchat::command("msg $channel $hunter is useless, they failed to catch anything!");
			}
		}
	if (lc($pubwords[0]) eq '!trophy') {
		Xchat::command("say $fishman holds the fishing record when they caught a $bigfish$scale $fishtype");
		Xchat::command("say $huntman holds the hunting record when they bagged a $bighunt$scale $hunttype");
                Xchat::command("say $presenthunt holds the present unwrapping record when they unwrapped a $bigpresent$scale $presenttype");
		}
if (lc($pubwords[0]) eq '!present') {
		my $presentplaces = @presentplaces[rand(scalar @presentplaces)];
		my $present = $presents[int rand @presents]; 
		my $weight = 1+int(rand($present+10));
		if ($present_unwrapper eq $last_presenthunter) { 
			Xchat::command("say Stop hogging all the best pitches $presenthunt, let someone else try first!");
			return Xchat::EAT_NONE;
			} else {
			"my \$last_present = " 
			}
		Xchat::command("msg $present_unwrapper You unwrap your present from $presentplaces and see what you get...");
		Xchat::command("msg $present_unwrapper .");
		Xchat::command("msg $present_unwrapper ..");
		Xchat::command("msg $present_unwrapper ...");
		Xchat::command("msg $present_unwrapper You unwrap and see ...");
		if (rand(100)&amp;lt;$catch_percent) {
			Xchat::command("msg $present_unwrapper Congratulations, $present_unwrapper! You just unwrapped a $weight$scale $present!");
			Xchat::command("msg $channel $present_unwrapper just got a  $weight$scale $present");
			if ($weight &amp;gt; $present) {
				Xchat::command("msg $present_unwrapper Wow!!! That's a new record! Way to go, $present_unwrapper! Type !trophy to see it!");
				Xchat::command("msg $channel Brilliant! That breaks the old record of a $present$scale $presenttype! $present_unwrapper is the world's best!");
				$present_unwrapper=$present_unwrapper;
				$present=$weight;
				$presenttype=$present;
				save_trophy();
				}
		} else {
			Xchat::command("msg $present_unwrapper Sorry no present this time $present_unwrapper! Better luck next time!");
			Xchat::command("msg $channel $present_unwrapper is useless, they failed to get a present!");
			}
		}
	if (lc($pubwords[0]) eq '!newmonth') {		
		my $curnick = Xchat::get_info('nick');
		if ((lc($hunter) eq lc($owner_nick)) or ($hunter eq Xchat::get_info('nick'))) {
			$bigfish=0; $fishman='Nobody'; $fishtype='Tiddler'; $fishplace='Toilet'; 
			$bighunt=0; $huntman='Nobody'; $hunttype='Haggis'; $huntplace='Bush';
                        $bigpresent=0; $present_unwrapper='Nobody'; $presenttype='xmas'; $presentplaces='everywhere';
			save_trophy();
			Xchat::command("say It's a new month, all existing huntin' 'n fishin' and present unwrapping records are reset!");
			} else { Xchat::command("say Who are you, $present_unwrapper to tell me to change the month?"); }
		} 
}

sub save_trophy {
	open (DH, "&amp;gt;$trophy_cabinet") or die("Bah! Can't open the trophy cabinet to push this 'ere trophy in!");
	print (DH "$bigfish|$fishman|$fishtype|$fishplace\n");
	print (DH "$bighunt|$huntman|$hunttype|$huntplace");
        print (DH "$bigpresent|$present_unwrapper|$presenttype|$pres
entplaces");
	close (DH);
	}
	
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/430683/430683/help-with-perl-irc-game-please/</guid>
      <pubDate>Tue, 18 Dec 2012 05:23:37 -0700</pubDate>
      <category>Perl</category>
    </item>
  </channel>
</rss>