Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you open a file for writing?

Answer Posted / ankur

open FP,">","myfile.txt"
print FP "Hello World!!";
close FP;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between use and require, my and local, for and foreach and exec and system

839


“Perl regular expressions match the longest string possible”. What is the name of this match?

894


How to connect to SQL server through Perl?

979


In CPAN module, name an instance you use.

906


What are the advantages of c over Perl?

879


you are required to replace a char in a string and store the number of replacements. How would you do that?

859


What does last statement do in perl?

942


What exactly is grooving and shortening of the array?

957


How would you ensure the re-use and maximum readability of your perl code?

886


How to replace perl array elements?

895


Why do you use Perl?

917


Differentiate use and require?

881


Can inheritance be used in perl? Explain with the help of an example.

902


how to extract pin_code,phone_number,year from text file using regular expressions in perl

2186


What is q (single q) operator in perl?

1006