Skip to content

Tag Archives: Perl-File-Functions

The eof() function is used to check if the End Of File (EOF) is reached. It returns 1 if EOF is reached or if the… Read More
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… Read More
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… Read More
glob() function in Perl is used to print the files present in a directory passed to it as an argument. This function can print all… Read More
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… Read More
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… Read More
rename() function in Perl renames the old name of a file to a new name as given by the user. Syntax: rename(old_file_path, new_file_path) Parameters: old_file_path:… Read More