Is it possible to pass file handles to subroutines in Perl?

🎲 Try a Random Question  |  Total Questions in Quiz: 87  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Perl Programming Practice Test — practice the complete quiz, review flashcards, or try a random question.

Perl is a high-level, interpreted, general-purpose programming language originally developed for text manipulation. It borrows many features from C and Shell script and is used for system administration, networking, and other applications that involve user interfaces.

A major application of Perl language is processing of text files and analysis of the strings. Perl is also used for CGI( Common Gateway Interface) scripts. It is used in web development, GUI(Graphical User Interface) development. Perl's text-handling capabilities is also used for generating SQL queries.


Is it possible to pass file handles to subroutines in Perl?