<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>w3mentor &#187; Perl File Handling</title>
	<atom:link href="http://w3mentor.com/learn/category/perl/perl-file-handling/feed/" rel="self" type="application/rss+xml" />
	<link>http://w3mentor.com</link>
	<description>Learning web technologies simplified!</description>
	<lastBuildDate>Sat, 28 Jan 2012 20:16:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Check for Acceptable File Types during upload in Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-file-handling/check-for-acceptable-file-types-during-upload-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-file-handling/check-for-acceptable-file-types-during-upload-in-perl/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 16:54:55 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl File Handling]]></category>
		<category><![CDATA[file]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9902</guid>
		<description><![CDATA[When a file with a Content-Type that isn’t text/html is uploaded to this CGI script, its output indicates that only HTML types are allowed. #!/usr/bin/perl &#160; use strict; use CGI qw/:standard/; my $q = new CGI; &#160; my $filename = &#8230; <a href="http://w3mentor.com/learn/perl/perl-file-handling/check-for-acceptable-file-types-during-upload-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-file-handling/check-for-acceptable-file-types-during-upload-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display the Content-Type of an Uploaded File in Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-file-handling/display-the-content-type-of-an-uploaded-file-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-file-handling/display-the-content-type-of-an-uploaded-file-in-perl/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 16:49:42 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl File Handling]]></category>
		<category><![CDATA[file handling]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9900</guid>
		<description><![CDATA[#!/usr/bin/perl use strict; use CGI qw/:standard/; my $q = new CGI; my $filename = $q-&#62;param&#40;'uploaded_file'&#41;; my $contenttype = $q-&#62;uploadInfo&#40;$filename&#41;-&#62;&#123;'Content-Type'&#125;; print header; print start_html; print &#34;Type is $contenttype&#60;P&#62;&#34;; print end_html;]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-file-handling/display-the-content-type-of-an-uploaded-file-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Closing filehandles in Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-file-handling/closing-filehandles-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-file-handling/closing-filehandles-in-perl/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 16:39:50 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl File Handling]]></category>
		<category><![CDATA[file handling]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9898</guid>
		<description><![CDATA[Perl automatically closes the filehandle when the program exits or if the file is opened again. We can explicitly close it using close(). open &#40;NEWFILE, &#34;&#62;/tmp/thenewfile&#34;&#41; or die &#40;Cannot open file: $!&#34;); print NEWFILE &#34;Printing to the new file like &#8230; <a href="http://w3mentor.com/learn/perl/perl-file-handling/closing-filehandles-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-file-handling/closing-filehandles-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing to filehandles in PERL</title>
		<link>http://w3mentor.com/learn/perl/perl-file-handling/writing-to-filehandles-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-file-handling/writing-to-filehandles-in-perl/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 16:38:35 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl File Handling]]></category>
		<category><![CDATA[file handling]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9896</guid>
		<description><![CDATA[To write to a filehandle, place the filehandle after the print function call. open &#40;NEWFILE, &#34;&#62;/tmp/thenewfile&#34;&#41;; print NEWFILE &#34;Printing to the new file like this.\n&#34;;]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-file-handling/writing-to-filehandles-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using die() to trap errors in Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-file-handling/using-die-to-trap-errors-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-file-handling/using-die-to-trap-errors-in-perl/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 16:28:07 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl File Handling]]></category>
		<category><![CDATA[die]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9894</guid>
		<description><![CDATA[The easiest way to use the die() function is with a logical OR when opening a file. open &#40;MYFILE, &#34;&#62;thefilename&#34;&#41; or die &#34;Cannot open file 'thefilename': $!&#34;;]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-file-handling/using-die-to-trap-errors-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reading from Filehandles in Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-file-handling/reading-from-filehandles-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-file-handling/reading-from-filehandles-in-perl/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 16:27:15 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl File Handling]]></category>
		<category><![CDATA[file handling]]></category>
		<category><![CDATA[read]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=9892</guid>
		<description><![CDATA[open &#40;FILE, &#34;/tmp/file&#34;&#41; or die&#40;&#34;Cannot open file: $!&#34;&#41;; while &#40;&#60;FILE&#62;&#41; &#123; chomp; print &#34;The line just read was: $_\n&#34;; &#125;]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-file-handling/reading-from-filehandles-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FileHandles in Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-file-handling/filehandles-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-file-handling/filehandles-in-perl/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 20:39:56 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl File Handling]]></category>
		<category><![CDATA[file handling]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8533</guid>
		<description><![CDATA[There are three global filehandles that are already opened when a program starts in Perl. 1.STDIN 2.STDOUT 3.STDERR. STDIN (standard input) is the default source of input. STDOUT (standard output) is the default destination for output. STDERR (standard error) is &#8230; <a href="http://w3mentor.com/learn/perl/perl-file-handling/filehandles-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-file-handling/filehandles-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read file using IO::File module in Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-file-handling/read-file-using-iofile-module-in-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-file-handling/read-file-using-iofile-module-in-perl/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 20:37:27 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl File Handling]]></category>
		<category><![CDATA[file handling]]></category>
		<category><![CDATA[object oriented]]></category>
		<category><![CDATA[string match]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8531</guid>
		<description><![CDATA[Here&#8217;s how we would write a program to find specific words in a file using the IO::File module using purely object-oriented notation. use IO::File; &#160; $input = IO::File-&#62;new&#40;&#34;&#60; C:\\data\\test.txt&#34;&#41; or die &#34;Couldn't open C:\\data\\test.txt for reading: $!\n&#34;; &#160; while &#40;defined&#40;$line &#8230; <a href="http://w3mentor.com/learn/perl/perl-file-handling/read-file-using-iofile-module-in-perl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-file-handling/read-file-using-iofile-module-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find specific words in file using Perl</title>
		<link>http://w3mentor.com/learn/perl/perl-file-handling/find-specific-words-in-file-using-perl/</link>
		<comments>http://w3mentor.com/learn/perl/perl-file-handling/find-specific-words-in-file-using-perl/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 20:34:53 +0000</pubDate>
		<dc:creator>madhu</dc:creator>
				<category><![CDATA[Perl File Handling]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[string match]]></category>

		<guid isPermaLink="false">http://w3mentor.com/?p=8529</guid>
		<description><![CDATA[open &#40;INPUT, &#34;&#60; C:\\data\\test.txt&#34;&#41; or die &#34;Couldn't open C:\\data\\test.txt for reading: $!\n&#34;; $char = &#34;thisword&#34;; while &#40;&#60;INPUT&#62;&#41; &#123; print if /$char/; &#125; close&#40;INPUT&#41;;]]></description>
		<wfw:commentRss>http://w3mentor.com/learn/perl/perl-file-handling/find-specific-words-in-file-using-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: w3mentor.com @ 2012-02-07 23:14:33 -->
