Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Perl
258+ articles
Perl-function
59+ articles
Perl-File-Functions
6+ articles
Perl-files
15 posts
Recent Articles
Perl | File I/O Functions
Last Updated: 12 July 2025
File handling in Perl is used to read data from an external file or to write data into an external file. This is very useful as it provides a platform to permanently store...
read more
Perl
Picked
Perl-files
Display file contents based on line number
Last Updated: 28 August 2019
Write a Perl program to display contents of the file in sorted order(ascending) based on line numbers given via command-line arguments. Note that the line numbers can be i...
read more
Perl
Perl-files
Comparing content of files using Perl
Last Updated: 12 July 2025
In Perl, we can easily compare the content of two files by using the File::Compare module. This module provides a function called compare, which helps in comparing the con...
read more
Perl
Perl-files
Perl | Finding Files and Directories
Last Updated: 12 July 2025
For traversing a directory tree in Perl, there are several ways/methods. Traversing can be performed through function calls opendir and readdir which are a part of Perl pr...
read more
Perl
Perl-files
Perl | Useful File-handling functions
Last Updated: 12 July 2025
Perl was originally developed for the text processing like extracting the required information from a specified text file and for converting the text file into a different...
read more
Perl
Perl-files
Perl-File-Functions
Perl | Accessing a Directory using File Globbing
Last Updated: 12 July 2025
In Perl, a directory is used to store values in the form of lists. A directory is quite similar to a file. Just like a file, the directory also allows performing several o...
read more
Perl
Picked
Perl-files
Perl | Slurp Module
Last Updated: 17 February 2022
The File::Slurp module is used to read contents of a file and store it into a string. It is a simple and efficient way of Reading/Writing/Modifying complete files. Just li...
read more
Perl
Picked
Perl-files
Perl-File-Functions
Perl | tell() Function
Last Updated: 11 July 2025
tell() function in Perl is used to get the position of the read pointer in a File with the use of its FileHandle. If no FileHandle is passed then it returns the position w...
read more
Perl
Perl-files
Perl-function
Perl-File-Functions
Perl | getc Function
Last Updated: 11 July 2025
getc() function in Perl is used to read the next character from the file whose File Handle is passed to it as argument. If no FileHandle is passed then it takes one charac...
read more
Perl
Perl-files
Perl-function
Perl-File-Functions
Perl | Reading a CSV File
Last Updated: 11 July 2025
Perl was originally developed for the text processing like extracting the required information from a specified text file and for converting the text file into a different...
read more
Perl
Picked
Perl-files
Perl | Appending to a File
Last Updated: 05 March 2019
When a file is opened in write mode using “”, the content of the existing file is deleted and content added using the print statement is written to the file. In this mode,...
read more
Perl
Picked
Perl-files
Perl | Writing to a File
Last Updated: 07 March 2019
A filehandle is a variable that is used to read and write to a file. This filehandle gets associated with the file.In order to write to the file, it is opened in write mod...
read more
Perl
Picked
Perl-files
Perl | Creating Excel Files
Last Updated: 07 May 2019
Excel files are the most commonly used office application to communicate between computers. It is used to create rows and columns of text, numbers, and formulas for calcul...
read more
Perl
Picked
Perl-files
Perl | Opening and Reading a File
Last Updated: 26 February 2019
A filehandle is an internal Perl structure that associates a physical file with a name. All filehandles have read/write access, so once filehandle is attached to a file re...
read more
Perl
Picked
Perl-files
Perl | File Test Operators
Last Updated: 21 February 2019
File Test Operators in Perl are the logical operators which return True or False values. There are many operators in Perl that you can use to test various different aspect...
read more
Perl
Picked
Perl-files