How do you open a file for writing?

Answer Posted / zech

open FILEHANDLE, ">$FILENAME"

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is stdin in perl?

556


Write a cgi program to show the header part?

536


How do you match one letter in the current locale?

567


Write an example explaining the use of symbol tables.

568


How to sort arrays in perl?

633






What is perl pop array function?

544


How to find the length of an array in perl?

573


What is the peculiarity of returning values by subroutines in perl?

496


How can information be put into hashes?

547


Why aren't Perl's patterns regular expressions?

603


If you want to empty an array then how would you do that?

585


How will you create a file in perl?

530


How to read from a pipeline with Perl

558


What does read () command do?

527


Explain different types of perl operators.

551